Draft
Conversation
|
Hey! Your PR title Please update it to start with one of:
Where See CONTRIBUTING.md for details. |
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
Please edit this PR description to address the above within 2 hours, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know. |
Mark the skill template TextPart as synthetic so the full prompt is
sent to the model but hidden from the user. Add a short ignored
summary part ('Running skill: <command>') so the user still sees
confirmation that the skill was loaded.
Rebased from flexion/hide-skill-prompt-in-chat onto v1.4.0.
Gate tool resolution, LiteLLM noop injection, activeTools, tools, and toolChoice behind input.model.capabilities.toolcall. Without this fix, tool_call: false in opencode.json is parsed and stored but never checked, causing Bedrock models that don't support streaming + tool use to fail. Adds regression test verifying body.tools is not sent when toolcall: false. Cherry-picked from lgarceau768#1 and rebased onto v1.4.0.
Covers cloning, building with bun, AWS SSO profile config, opencode.json Bedrock provider setup, and the opencode-work shell alias. Notes the tool_call fix included in this branch.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DO NOT MERGE
This is a permanent tracking PR that shows all Flexion-specific customizations on top of upstream anomalyco/opencode.
It mirrors the pattern used in flexion/open-webui#14.
Branching Strategy
devanomalyco/opencode:devexactly — synced via force-push when upstream releasesflexdevafter each upstream syncKeeping in sync with upstream
Flexion Customizations (rebased onto v1.4.0)
1.
fix: hide skill prompt text from chat UIFile:
packages/opencode/src/session/prompt.tsMark the skill template
TextPartassynthetic: trueso the full prompt is sent to the model but hidden from the user. Adds a shortignored: truesummary part (Running skill: <command>) so the user still sees confirmation the skill was loaded.Originally merged as flexion/opencode#1.
2.
fix: respect tool_call: false capability flag at runtimeFiles:
packages/opencode/src/session/llm.ts,packages/opencode/test/session/llm.test.tsGates tool resolution, LiteLLM noop injection,
activeTools,tools, andtoolChoicebehindinput.model.capabilities.toolcall. Without this fix,tool_call: falseinopencode.jsonis parsed and stored but never checked — causing Bedrock models that don't support streaming + tool use to fail.Includes a regression test verifying
body.toolsis not sent whentoolcall: false.Originally from lgarceau768/opencode#1.
3.
docs: add local build and AWS Bedrock setup instructionsFile:
LOCAL_AWS_SETUP.mdCovers cloning, building with bun, AWS SSO profile config,
opencode.jsonBedrock provider setup, and theopencode-workshell alias.Originally from lgarceau768/opencode#1.
Local Development Setup
See
LOCAL_AWS_SETUP.mdfor full setup instructions including AWS Bedrock configuration.