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 — perf(web): reasoning rows skip the tool-failure text scan by juliusmarminge · Pull Request #21146 · pingdotgg/t3code

Conversation

@juliusmarminge

@juliusmarminge juliusmarminge commented Oct 18, 2026

Copy link
Copy Markdown
Member

Every timeline derivation ran the tool-failure regexes over each reasoning row's detail, which is the model's own thinking text. A long thread holds thousands of reasoning rows averaging ~5 KB (up to 70 KB), and deriveTurnFolds and withoutSubagentDelegationRows both check every work entry. That scan was the single largest app-owned script cost in the long frames while a reply streams, and it also marked reasoning as a failed tool whenever the prose mentioned something like "that exit code 2 is expected" (35 of 8,438 reasoning rows in the test data).

Reasoning rows now skip the text scan. Real tool rows are unchanged: command rows still use the server's outputIndicatesFailure, and tool rows still scan their detail.

Measured on a production build (vp build --minify false), headless Chromium, seeded with the same migrate-dev-db snapshot (large thread: 2,637 messages, 1,739 reasoning items). CDP trace per window; long tasks are main-thread RunTask of 50 ms or more. Each row is the median of 3 runs, alternating the build order (main and this branch on the same machine).

Window Metric main this PR
Switch 3 threads x3 long-task ms (≥50 ms) 1,363 1,310
Switch 3 threads x3 toolOutputIndicatesFailure ms inside long tasks 83 0
Switch 3 threads x3 ScriptDuration ms 1,561 1,485
Open large thread (warm, n=6) long-task ms 519 490
Open large thread (warm, n=6) toolOutputIndicatesFailure ms 26 0
Open large thread (cold) long-task ms 510 466

Long-task counts do not change for open and switch: those frames are dominated by list measurement and React commit work, and this removes 5–10% of each frame. The bigger win is streaming, where the timeline re-derives on every delta. On main, three traced full Haiku turns in the large thread spent 1,263 / 749 / 336 ms inside this regex, 25%, 21% and 20% of all long-task time in those turns, and the largest single cost in each (CDP trace, attributed by stack). On this branch that cost is gone by construction. Streaming wasn't A/B'd because each turn depends on live provider pacing.

Tests: packages/client-runtime/src/work-log/presentation.test.ts (new case for reasoning prose), and apps/web/src/session-logic.test.ts plus MessagesTimeline.logic.test.ts still pass.

Claude Opus 5.5 via Claude Code.

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

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

All reactions
@juliusmarminge @claude
perf(web): reasoning rows skip the tool-failure text scan
95d9d68
Opening or streaming in a long thread rescanned every reasoning row's text
(often tens of KB each) with the tool-failure regexes on every timeline
derivation. Reasoning is model prose, not tool output, so the scan was both
the largest script cost in those frames and a source of false failure
marks ("that exit code 2 is expected").

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added the vouch:trusted Author is trusted by repo permissions or the VOUCHED list. label Oct 18, 2026
@juliusmarminge juliusmarminge added the macroscope-review Opt PRs made by unvouched contributors in for Macroscope review. Vouched contributors auto-reviews label Oct 18, 2026
@github-actions github-actions Bot added the size:XS 0-9 changed lines (additions + deletions). label Oct 18, 2026
macroscopeapp[bot]
macroscopeapp Bot approved these changes Oct 18, 2026
View reviewed changes
@macroscopeapp

macroscopeapp Bot commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 95d9d68

Macroscope's review found this PR approvable — This is a small, covered client-runtime fix that prevents model reasoning prose from being scanned as tool output while preserving explicit and real tool failure states. Its runtime impact is limited to more accurate reasoning-row status and reduced processing cost, with no defaults, schemas, infrastructure, or static-analysis overrides changed.

You can add or adjust custom eligibility rules. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

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

@coderabbitai

coderabbitai Bot commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Path: .coderabbit.config.ts
  • Review profile: CHILL
  • Plan: Team
  • Run ID: 7bd62dc4-d52c-46dc-970d-0c4825a9742a
📥 Commits

Reviewing files that changed from the base of the PR and between eb1d80c and 95d9d68.

📒 Files selected for processing: 2
  • packages/client-runtime/src/work-log/presentation.test.ts
  • packages/client-runtime/src/work-log/presentation.ts

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

📝 Walkthrough

The tool failure detection logic now excludes reasoning entries. A test confirms that failure-like phrases in completed reasoning text do not report a tool failure.

Changes: Tool failure detection

Layer / File(s) Summary
Exclude reasoning entries from failure detection
packages/client-runtime/src/work-log/presentation.ts, packages/client-runtime/src/work-log/presentation.test.ts
workEntryIndicatesToolFailureFromOutput returns false for reasoning entries. Tests cover reasoning text that mentions an exit code and a deleted directory.

Priority: ➖ Normal

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Bug fix

Suggested reviewers: t3dotgg

Merge Risk: ⚪ Minimal · up to 95d9d

Reasoning text will no longer be mistaken for tool failure, while command and tool failure detection remains unchanged. No material merge risk is indicated.

Pre-merge checks: Passed 3 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Description check Warning The description clearly explains the problem, implementation, performance measurements, tests, and agent attribution. It does not include the required Scope and approval information or explain why thi… Add the Scope and approval section. Link the triaged issue or maintainer approval with the approval comment, or explain why this focused fix qualifies as an obvious bug without prior approval.
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: reasoning rows skip the tool-failure text scan.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description clearly explains the problem, implementation, performance measurements, tests, and agent attribution. It does not include the required Scope and approval information or explain why this focused fix qualifies for an exemption.

Resolution

Add the Scope and approval section. Link the triaged issue or maintainer approval with the approval comment, or explain why this focused fix qualifies as an obvious bug without prior approval.

  • Fix all pre-merge checks with AI
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@juliusmarminge
juliusmarminge merged commit e0366ad into main Oct 18, 2026
33 checks passed

Uh oh!

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

@juliusmarminge
juliusmarminge deleted the perf/reasoning-skips-tool-failure-scan branch October 18, 2026 09:12
github-actions Bot added a commit to omarcresp/t3code-flake that referenced this pull request Oct 18, 2026
@github-actions
nightly: 0.1.1-nightly.20261018.3315
fd50660
## What's Changed
* perf(web): switching threads no longer re-renders the chat view for an unchanged preview list by @juliusmarminge in pingdotgg/t3code#21130
* fix(server): opening a large database no longer blocks startup for minutes by @t3dotgg in pingdotgg/t3code#21122
* perf(web): switching threads no longer re-renders the outgoing thread's rows by @juliusmarminge in pingdotgg/t3code#21123
* perf(web): reasoning rows skip the tool-failure text scan by @juliusmarminge in pingdotgg/t3code#21146
* perf(web): pull request chains parse each link's URL once by @juliusmarminge in pingdotgg/t3code#21147


**Full Changelog**: pingdotgg/t3code@v0.1.1-nightly.20261018.3302...v0.1.1-nightly.20261018.3315

Upstream release: https://github.com/pingdotgg/t3code/releases/tag/v0.1.1-nightly.20261018.3315
github-actions Bot added a commit to davidvanderklay/t3code-flake that referenced this pull request Oct 18, 2026
@github-actions
nightly: 0.1.1-nightly.20261018.3315
7d26ff0
## What's Changed
* perf(web): switching threads no longer re-renders the chat view for an unchanged preview list by @juliusmarminge in pingdotgg/t3code#21130
* fix(server): opening a large database no longer blocks startup for minutes by @t3dotgg in pingdotgg/t3code#21122
* perf(web): switching threads no longer re-renders the outgoing thread's rows by @juliusmarminge in pingdotgg/t3code#21123
* perf(web): reasoning rows skip the tool-failure text scan by @juliusmarminge in pingdotgg/t3code#21146
* perf(web): pull request chains parse each link's URL once by @juliusmarminge in pingdotgg/t3code#21147


**Full Changelog**: pingdotgg/t3code@v0.1.1-nightly.20261018.3302...v0.1.1-nightly.20261018.3315

Upstream release: https://github.com/pingdotgg/t3code/releases/tag/v0.1.1-nightly.20261018.3315
@filipgutica filipgutica mentioned this pull request Oct 18, 2026
chore(workbench): sync T3 Code upstream through e1f33e0 filipgutica/t3code#163
Merged
Pipyakas pushed a commit to Pipyakas/t3code that referenced this pull request Oct 18, 2026
@juliusmarminge @claude @Pipyakas
perf(web): reasoning rows skip the tool-failure text scan (pingdotgg#…
2ead68e
…21146)

Co-authored-by: Claude Opus 5.5 <[email protected]>
(cherry picked from commit e0366ad)
Pipyakas pushed a commit to Pipyakas/t3code that referenced this pull request Oct 19, 2026
@juliusmarminge @claude @Pipyakas
perf(web): reasoning rows skip the tool-failure text scan (pingdotgg#…
979b9ca
…21146)

Co-authored-by: Claude Opus 5.5 <[email protected]>
(cherry picked from commit e0366ad)
@only21mil only21mil mentioned this pull request Oct 22, 2026
fix(chat): commands that exit 0 no longer show as failed #23351
Merged
incognitojam pushed a commit to incognitojam/styal that referenced this pull request Oct 25, 2026
@juliusmarminge @claude @incognitojam
perf(web): reasoning rows skip the tool-failure text scan (pingdotgg#…
f58a31c
…21146)

Co-authored-by: Claude Opus 5.5 <[email protected]>
(cherry picked from commit e0366ad)
Upstream-PR: 21146
@hieu-lee hieu-lee mentioned this pull request Oct 29, 2026
perf(shared): command output failure scan rejects clean output in one pass #26935
Merged
ItzJsimp pushed a commit to ItzJsimp/leonidas-app that referenced this pull request Oct 30, 2026
@juliusmarminge @claude @ItzJsimp
perf(web): reasoning rows skip the tool-failure text scan (pingdotgg#…
247ae85
…21146)

Co-authored-by: Claude Opus 5.5 <[email protected]>
(cherry picked from commit e0366ad)
@olafura olafura mentioned this pull request Nov 7, 2026
test(features): ledger upstream T3 Code through 30d0138540 hal-c2/hal-c2#1125
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] approved these changes

Uh oh!

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

Assignees

No one assigned

Labels

macroscope-review Opt PRs made by unvouched contributors in for Macroscope review. Vouched contributors auto-reviews size:XS 0-9 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

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

1 participant

@juliusmarminge
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.