feat(tui): add custom tool and mcp call responses visible and collapsable#10649
Conversation
|
The following comment was made by an LLM, it may be inaccurate: No duplicate PRs found |
|
We may wanna play w/ the styling a bit, do you mind making this a togglable feature in the tui? By default: old behavior Ctrl+p -> palette -> expand tools (or some wording that implies it will expand the generic tools by default) And this selection can be persisted to the kv.json file like others are |
…and keep the toggle value in kv.json
|
Hey, yeah, that sound reasonable. I did a an updated implementation, but I wasn't sure if this need to go in a new sub-commands section called "Palette" or this is how you refer to the menu list (I'm not a native English speaker), so I've put it in the "Session" section. Also, naming things is not my strongest suit (feedback is welcomed on the "Show/Hide generic tool output"). I've recorded a video of the functionality and the persistence of the chosen state between runs: output.mp4 |
00637c0 to
71e0ba2
Compare
f1ae801 to
08fa7f7
Compare
|
Would be really useful to have this. |
|
what needs to be done so that this can be reviewed and accepted? |
* upstream/dev: (476 commits) release: v1.2.9 fix: issue from structuredClone addition by using unwrap (anomalyco#14359) tweak(ui): adjust session feed spacing tweak(ui): tone down reasoning emphasis tweak(ui): refine session feed spacing fix(desktop): restore settings header mask tweak(ui): nudge edited files chevron tweak(ui): stabilize collapsible chevron hover fix: add missing id/sessionID/messageID to MCP tool attachments (anomalyco#14345) Use structuredClone instead of remeda's clone (anomalyco#14351) remove unnecessary deep clones from session loop and LLM stream (anomalyco#14354) fix(web): correct config import path in Korean enterprise docs docs: update providers layout and Windows sidebar label core: remove User-Agent header assertion from LLM test to fix failing test release: v1.2.8 fix(app): black screen on launch with sidecar server chore: generate feat(opencode): support adaptive thinking for claude sonnet 4.6 (anomalyco#14283) feat(tui): add custom tool and mcp call responses visible and collapsable (anomalyco#10649) chore: cleanup ... # Conflicts: # bun.lock # packages/app/package.json # packages/console/app/package.json # packages/console/core/package.json # packages/console/function/package.json # packages/console/mail/package.json # packages/desktop/package.json # packages/enterprise/package.json # packages/extensions/zed/extension.toml # packages/function/package.json # packages/opencode/package.json # packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx # packages/opencode/src/cli/cmd/tui/routes/home.tsx # packages/opencode/src/config/config.ts # packages/opencode/src/tool/lsp.ts # packages/opencode/src/tool/read.ts # packages/plugin/package.json # packages/sdk/js/package.json # packages/slack/package.json # packages/ui/package.json # packages/util/package.json # packages/web/package.json # sdks/vscode/package.json
What does this PR do?
Adds collapsible display for custom tool and MCP call responses in the TUI.
Fixes #6604
Before:
before.mp4
After:
after.mp4
How did you verify your code works?
After applying the update, I've build the app with
bun packages/opencode/script/build.ts --singleand tested the output of one custom tool and one mcp call, to check that it is displayed correctly and checked the generated log in.local/share/opencode/logfor any errors.