Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(web): a Labs setting hides tool calls so threads read like a chat #30000

Mergedflamboh(GitHub profile, opens in a new tab)merged 17 commits intomain fromrefs/pull/30000/headmerged by maria-rcks View on GitHub

Note

🤖 Claude Opus 5.5 on behalf of Oliver

Problem

While an agent works, and whenever you open a "Worked for …" fold, the chat fills with commands, reads, and searches. Often you only care about what the agent said, or only about its final answer.

Fix

A new Labs setting, Settings → Labs → Beta → Tool calls in chat, with four levels:

  • Show all (default): unchanged.
  • Hide successful: a call shows while it runs and stays only if it fails.
  • Hide all: no tool calls. The agent's in-between messages stay and fold under "Worked for" as usual.
  • Zen: each turn shows your messages and the agent's last reply, nothing else. If you steer while it is answering, the answer it finished before reading the steer stays too. While the agent works, Working for … sits above one live line with the agent's latest step, replaced in place. When the turn ends, both give way to the reply.

"Tool calls" are commands, file edits, file and web searches, and MCP tools. In every mode, approvals, questions, errors, and provider retries still show, and undo targets come from the full history, not the visible rows. Zen also keeps compaction dividers, plans, and HTML/MCP app output. Find shows the in-between messages while it is open, since those are what it searches, and a citation reveals the message it points to. The setting is per device, like the boring sidebar.

The timeline drops hidden entries before it builds rows and "Worked for" folds, so everything downstream just sees fewer entries. When nothing is left to fold, the "Worked for" row goes away too. Find and citations use the same filtered folds, so they still open the fold that holds their message.

Labs row with the Tool calls in chat select open

The same finished turn in each mode, with its fold opened. Show all matches main.

The same turn in Show all, Hide successful, Hide all, and Zen

A live turn in Zen:

https://gh-file-drop-api-prod-galwoqjslzlnws6s.oliver-boorstein.workers.dev/f/aa79f2e19205b2c0/zen-r2.mp4

Approvals, questions, and errors in Zen, next to Show all. Pending approvals and questions stay usable, answered questions stay, and errors stay after the turn stops. The red banner in the error shots is the existing error banner and shows in both modes.

Show allZen
Approval waitingShow all: command waiting for approvalZen: the command and its Approve and Decline controls still show
Approval, turn doneShow all: the finished turn with its workZen: only the prompt and the final answer
Question waitingShow all: multiple-choice question waitingZen: the question and the live step line
Question, turn doneShow all: answered question and the replyZen: the answered question and the final answer
Provider errorShow all: provider error after reads and a searchZen: the agent's last message and the provider error, no spinner

Mobile gets the same Labs setting, saved per device. Its feed is built separately (apps/mobile/src/lib/threadActivity.ts), so the timeline rules are ported; the per-call hiding rule moved to packages/client-runtime and both clients use it. Mobile already shows Working in its floating control, so Zen only swaps the feed's Thinking row for the live line. Mobile has no Find, so that part is web and desktop only.

LabsShow allZenZen, liveZen, approval
iOSiOS Labs with Zen selectediOS finished turns in Show all with Worked for foldsiOS same turns in Zen: prompts and final answers onlyiOS live Zen turn: one live line above Working 6siOS pending approval card in Zen
AndroidAndroid Labs with Zen selectedAndroid finished turns in Show all with Worked for rowsAndroid same thread in Zen: prompts and final answers onlyAndroid live Zen turn: one live line above Working 23sAndroid pending approval card in Zen

Related: #18993 compacts tool activity instead of hiding it.

Validation

  • One case in MessagesTimeline.logic.test.ts covers Hide successful keeping a failed call, Hide all dropping an empty fold, and Zen on a finished turn, while the agent works, as the answer lands, with a follow-up queued behind a finishing run, and after a wake card, and the answer an agent finished before reading a steer. A matching case in threadActivity.test.ts covers mobile.
  • vp run check:changed passes.
  • Checked in the real web app with the Replay (dev) provider: all four modes on a finished turn, live turns in Hide successful, Hide all, and Zen, Find in Zen, and approvals, questions, and a provider error in Zen.
  • Checked on an iOS 27 simulator and an Android 16 emulator with Replay turns: the Labs picker, Show all vs Zen on finished turns, a live Zen turn, and a pending approval in Zen.

Made with Claude Opus 5.5 in Claude Code (T3 Code), with review from GPT-6.1 Sol (Codex) and Claude Opus 5.5.

current takeover verification

verified head e38d81ffde5134ed479128a94393ad04231d8790. merged current main without rebasing and included the contributor's preferences fix; no extra product changes. the original native-storage import failure reproduced before that fix, and the unchanged file-preview suite now passes.

all 31 hosted checks pass, git.cafe reports mergeable, and no review threads remain unresolved. two independent code reviews approve this head. blacksmith passed vp run check:changed github/main and 137 mobile tests. chrome with replay verified all four modes, a pending approval through completion, and the final answer.

native desktop/mobile runtime, find/citations, and failed-tool/retry scenarios were not rerun in this pass. current screenshots and an 18-second recording are in the pr body.

same replay turn in show all

same replay turn in zen

switching from show all to zen through labs

    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted

    2. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Approvability

      Verdict: Approved at 0a4a881

      Macroscope's review found this PR approvable — Adds optional web and mobile Labs settings to hide tool activity and intermediate replies. Existing visibility remains the default, and the change filters presentation without altering agent execution or stored conversation data.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    3. coderabbitai[bot](GitHub profile, opens in a new tab)commented
      Review in Change Stack →

      Note

      Reviews paused

      It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

      • Last reviewed commit: 8a2fafd9125ac2697eeb95340d20caa358e90c2f
      • Latest commit, not reviewed: e38d81ffde5134ed479128a94393ad04231d8790

      Use the following commands to manage reviews:

      • @coderabbitai resume to resume automatic reviews.
      • @coderabbitai review to trigger a single review.

      Use the checkboxes below for quick actions:

      • Resume reviews
      • Trigger review
      Walkthrough

      The change adds four tool-call visibility modes to client settings. The Labs panel exposes the modes. Timeline filtering, turn-fold lookup, and Find position reading apply the selected mode. Zen mode can also display a live answer preview while a run is active.

      Changes: Chat tool-call visibility

      Layer / File(s)Summary
      Define and expose visibility setting
      packages/contracts/src/settings.ts, apps/web/src/components/settings/LabsSettingsPanel.tsx, apps/web/src/components/settings/settingsSearch.ts, docs/user/activity-log.md
      The settings contract defines showAll, hideSuccessful, hideAll, and zen, with showAll as the default. The Labs panel and settings search expose the setting. The activity log describes its modes and scope.
      Filter timeline entries and derive folds
      apps/web/src/components/chat/MessagesTimeline.logic.ts, apps/web/src/components/chat/MessagesTimeline.logic.test.ts
      Timeline filtering applies the selected mode before row and fold derivation. It preserves selected entries, derives live answer previews, and uses original timeline entries for revert counts. Tests cover visibility modes, running and ended turns, and live answer previews.
      Pass visibility through timeline and Find
      apps/web/src/components/chat/MessagesTimeline.tsx, apps/web/src/components/chat/useThreadFindPositionReader.ts, apps/web/src/components/chat/TimelineWorkGroupRows.tsx, apps/web/src/components/chat/timelineRowContext.ts
      MessagesTimeline passes effective visibility and the revealed message ID to row construction and fold lookup. When Find is active and the preference is zen, it uses hideAll. The position reader receives the effective visibility. The Thinking row displays the live answer preview when available.

      Estimated code review effort: 3 (Moderate) | ~20 minutes

      Change: Feature

      Sequence Diagram(s)

      sequenceDiagram
        participant MessagesTimeline
        participant ClientSettings
        participant MessagesTimelineLogic
        MessagesTimeline->>ClientSettings: Read toolCallVisibility preference
        MessagesTimeline->>MessagesTimelineLogic: Derive rows and folds with resolved visibility and revealed message ID

      Possibly related issues

      • pingdotgg/t3code#8879 — The change affects timeline filtering and fold inputs that determine which assistant messages remain visible, but does not select substantive messages by content.
      • pingdotgg/t3code#17382 — The change affects which timeline entries enter folds and final-answer views, but does not establish that expanded folds restore hidden text.
      • pingdotgg/t3code#28775 — The change affects visibility of in-turn assistant messages while preserving questions, but does not establish the reported popup cause.

      Suggested reviewers: juliusmarminge, t3dotgg

      Merge Risk: Low · up to 8a2fa

      Final answers only can hide completed approvals and recovered retries. The change is mergeable with that limitation acknowledged.

      Pre-merge checks: Passed 3 · Failed 1
      Failed Failed checks: 1 warning
      Check nameStatusExplanationResolution
      Description checkWarningThe description clearly explains the problem, the implementation, the affected behavior, and verification results. It includes UI evidence and test details. However, it does not provide the required s…Add the required Scope and approval section. Link the triaged issue or approval discussion and include the explicit maintainer approval comment. If this is configuration of an established capability, explain that capability, the setting it …
      Passed Passed checks: 3 passed
      Check nameStatusExplanation
      Title checkPassedThe title is concise, uses the repository's conventional format, and clearly describes the new Labs setting that hides tool calls in web chat.
      Linked Issues checkPassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes checkPassedCheck skipped because no linked issues were found for this pull request.
      Full details: Description check

      Explanation

      The description clearly explains the problem, the implementation, the affected behavior, and verification results. It includes UI evidence and test details. However, it does not provide the required scope and approval evidence: no triaged issue or discussion with explicit maintainer approval is linked, and the later code-review approvals do not establish approval of the feature direction and scope.

      Resolution

      Add the required Scope and approval section. Link the triaged issue or approval discussion and include the explicit maintainer approval comment. If this is configuration of an established capability, explain that capability, the setting it controls, and why the effects remain within its existing scope.

      Finishing Touches
      Generate unit tests (beta)
      • Create a new PR
      • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

      Tip

      🎯 Customize your risk assessments

      Guide how CodeRabbit assesses merge risk and security architecture risk. Highlight sensitive changes and explain your security boundaries using Merge Risk Instructions and Security Risk Instructions in your review settings. Security architecture risk assessments require the Advanced plan or above.

      ✅ Automatic approvals, with your rules

      Let CodeRabbit approve pull requests once required threads are resolved, pre-merge checks pass, and your risk limits are met. Enable Automatic approvals in review settings, with overrides for teams or file paths.

      Recent review info
      Run configuration
      Commits

      Reviewing files that changed from the base of the PR and between c30ffbd728a4e0c6bd93a1b60d9d63dfb49c966f and 8a2fafd9125ac2697eeb95340d20caa358e90c2f.

      Files selected for processing: 6
      • apps/web/src/components/chat/MessagesTimeline.logic.test.ts
      • apps/web/src/components/chat/MessagesTimeline.logic.ts
      • apps/web/src/components/chat/MessagesTimeline.tsx
      • apps/web/src/components/settings/LabsSettingsPanel.tsx
      • docs/user/activity-log.md
      • packages/contracts/src/settings.ts
      Files skipped from review as they are similar to previous changes: 1
      • docs/user/activity-log.md

      Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

      • Fix comments: Fix CodeRabbit comments on this PR
      • Fix comments: Fix CodeRabbit comments on this PR
      • Fix comments: Fix CodeRabbit comments on this PR
    4. maria-rckscommented

      Note

      Written by gpt-6.1-sol on behalf of Maria

      Verified in a real dev environment

      verified exact head e38d81ffde5134ed479128a94393ad04231d8790 on a disposable linux vm. no source changes were needed.

      reproduced the missing control on github/main (a185dd9248) in a separate worktree: labs had no tool-call visibility setting, and the expanded turn showed commentary and commands. stopped that server before starting the pr server. both used vp i and background vp run dev, with isolated state and no seeded data.

      used playwright from the repo with /usr/bin/google-chrome. created the project and thread through the web app and ran real codex gpt-6.1-sol turns through the local proxy, with no replay, mocks, or fixtures. preserved the app-created main thread for matching-data comparisons, then ran another real turn on the pr.

      • show all retains the original commentary and command rows.
      • hide successful removes successful commands but keeps the intentional exit-7 command; expanding it shows its stderr and exit code.
      • hide all removes command rows and keeps commentary.
      • zen keeps the final reply, removes tool rows and intermediate replies, and persists across reload.
      • a live zen turn showed Working plus the latest commentary line; completion replaced them with the final reply.
      • find in zen revealed the hidden commentary and opened its fold. closing find hid it again.
      • switching back to show all restored the stored successful and failed commands.

      runtime transcript:

      main: commentary alpha -> pwd -> intentional exit 7 -> commentary beta
            -> git status --short -> final reply (37s)
      pr, hide successful: exit 7 and stderr visible; successful commands absent
      pr, zen: prompt + final reply; no Worked for fold
      pr, live zen: Working for 6s + live visibility alpha -> live visibility complete
      pr, find: match 2/2 reveals alpha -> close find hides alpha

      140 existing timeline tests passed on blacksmith: vp test run apps/web/src/components/chat/MessagesTimeline.logic.test.ts apps/mobile/src/lib/threadActivity.test.ts. all 31 hosted checks were successful on this head. the uploaded recording was inspected, played to completion, and sought in the browser player.

      before: main shows commentary and command groups from the real codex turn

      after: zen shows only the final reply for the exact same turn

      hide successful retains the expandable failed command and exit 7 output

      a real codex turn in zen shows Working and one live step line

      switch to zen, find hidden commentary, and close find

      Not verified

      native ios/android and electron clients were not run on this linux vm. other providers, pending approval/question interactions, citation navigation, compaction, plans, html/mcp app output, steering boundaries, rollback execution, and remote/relay connections were not exercised in this pass. no performance claim is made. the focused mobile tests do not establish native runtime behavior.

      • Fix comments: Fix CodeRabbit comments on this PR
      • Fix comments: Fix CodeRabbit comments on this PR
    5. maria-rcks merged this3d78e91

    6. maria-rcks closed this

Sign in to join this conversation.