GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(opencode): show bash commands instead of repeating their output by brynne8 · Pull Request #7989 · pingdotgg/t3code

Conversation

@brynne8

@brynne8 brynne8 commented Aug 23, 2026 •
edited by macroscopeapp Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Fixes #7307

Problem

With the OpenCode provider, bash tool calls showed the command output as the collapsed row title and the same output again inside the expanded body — the actual command being run was never visible (see screenshot in #7307). Claude and Codex users were not affected.

Root cause

The OpenCode adapter emitted item.completed with detail set to the command's output (part.state.output) while never reading the real invocation at part.state.input.command. For command_execution items, clients fall back to treating detail as the command when no structured command field is present, so:

  • collapsed title := command fallback = output
  • expanded body := command block + detail block = output twice
  • the actual command was dropped entirely

Fix

Adapter-side, one place fixes web/desktop/mobile. The message.part.updated handler now projects command tools into the payload shape clients already render for Claude/Codex:

  • detail / data.command carry the command (state.input.command)
  • on completion the output moves to data.rawOutput.content, which clients render once in the expanded view
  • the unread raw data.state blob is no longer sent (nothing consumed it; it duplicated the whole output over the websocket)

Error states keep surfacing state.error; non-command tools are unchanged.

Testing

  • Added an adapter test asserting running/completed projections (OpenCodeAdapter.test.ts)
  • Added a client-shape test asserting the OpenCode payload renders as command + single output (session-logic.command-output.test.ts)

Worked on by ox-alpha via opencode.


Note

Medium Risk
Changes provider event payloads for command tools, including dropping data.state. Low blast radius but it is a wire-format change for OpenCode tool items.

Overview
Fixes OpenCode bash rows showing stdout as the collapsed title (and again in the expanded body) instead of the actual command (#7307).

OpenCodeAdapter now reads state.input.command for command_execution items. detail/data.command carry the invocation; completed output moves to data.rawOutput.content. Failures still use state.error as detail while keeping data.command. The unused data.state blob is no longer sent.

A client work-log test confirms the new payload renders as command + a single output block.

Reviewed by Cursor Bugbot for commit e343705. Bugbot is set up for automated code reviews on this repo. Configure here.

Note

Fix OpenCodeAdapter to show bash commands instead of repeating output

  • Modifies tool-part event projection in OpenCodeAdapter.ts to set payload.detail to the command string for command_execution items, and to payload.data.rawOutput for the tool output on completion
  • Adds commandFromToolInput helper to extract a trimmed command from a tool part's state.input.command
  • For error states, payload.detail shows the failure reason while payload.data.command preserves the original command
  • Behavioral Change: removes the entire state object from payload.data; consumers expecting data.state must use data.command and data.rawOutput instead

Macroscope summarized e343705.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@brynne8
fix(opencode): show bash commands instead of repeating their output
f08593b
OpenCode bash tool calls rendered the command output as the collapsed
row title and again inside the expanded body while the actual command
was never visible (#7307). The adapter dropped `state.input.command`
and stuffed the output into `detail`, so clients fell back to reading
`detail` as the command.

Project the invocation into the shape clients already render for
Claude/Codex: `detail`/`data.command` carry the command and the output
moves to `data.rawOutput.content`. The unread raw `state` blob is no
longer duplicated over the wire.

Worked on by ox-alpha via opencode.
@coderabbitai

coderabbitai Bot commented Aug 23, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 1ba432d1-846c-4f54-aedd-7e7fc861e8bb

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
  • X
  • Mastodon
  • Reddit
  • LinkedIn

Comment @coderabbitai help to get the list of available commands.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:S 10-29 changed lines (additions + deletions). labels Aug 23, 2026
macroscopeapp[bot]
macroscopeapp Bot reviewed Aug 23, 2026
View reviewed changes
Comment thread apps/server/src/provider/Layers/OpenCodeAdapter.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

cursor[bot]
cursor Bot reviewed Aug 23, 2026
View reviewed changes

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want fixes drafted automatically? Bugbot Autofix can create code changes for findings. A team admin can enable Autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit f08593b. Configure here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread apps/server/src/provider/Layers/OpenCodeAdapter.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@macroscopeapp

macroscopeapp Bot commented Aug 23, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Skipped

Macroscope did not run approvability analysis for this PR. Macroscope could not determine whether this PR modifies its approvability configuration, so the PR was not approved automatically. A PR that may change the rules that govern approval is never approved automatically.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@brynne8
fix(opencode): keep failure reason on failed bash tool rows
e343705
The command-as-detail preference also applied to errored parts, and
with data.state gone the error text was dropped entirely. Errored
command parts now keep state.error as detail while the invocation
stays in data.command.

Worked on by ox-alpha via opencode.
@t3dotgg t3dotgg mentioned this pull request Aug 28, 2026
fix(web): stop repeating Bash commands in tool rows #7713
Closed
4 tasks done
@t3dotgg

t3dotgg commented Sep 4, 2026

Copy link
Copy Markdown
Member

Note

🤖 GPT-6 Astra (preview) responding on behalf of Theo

This was closed as part of an automated cleanup pass. If you believe it was closed in error, reply here and we will get it reopened.

Closing as superseded by merged #9120. Current main extracts OpenCode's state.input.command and renders command output separately on web and mobile. This patch's removal of data.state would also discard file-path data still used for other tools.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@t3dotgg t3dotgg closed this Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] left review comments
@cursor cursor[bot] cursor[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:S 10-29 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[Bug]: Bash toolcall does not show the command being ran, just the output twice.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@brynne8 @t3dotgg
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.