GeezerVison is showing github.com — fix(client-runtime): feedback trace durations near 10 s no longer show 10.0 s by only21mil · Pull Request #42995 · pingdotgg/t3code
Conversation
Problem
When a tool call in an agent's feedback trace lasts between about 9.95 and 10 seconds, the feedback card's outline shows 10.0 s instead of 10 s. The seconds helper in packages/client-runtime/src/feedbackRequest.ts picks one decimal for anything under 10,000 ms, and toFixed(1) then rounds values such as 9,967 ms up to 10.0, while exactly 10,000 ms reads 10 s.
Change
seconds now rounds to one decimal first and drops the decimal once the rounded value reaches 10, the same order of rounding and choosing that formatBytes uses since #42682. The focused test in packages/client-runtime/src/feedbackRequest.test.ts covers 9,949, 9,960 and 10,000 ms.
Scope
Bug fix for wrong text on screen. A small fix of an obvious formatting bug with a one-line cause, so it needs no issue.
Verification
- Steps (Linux, web, real app): turn on feedback "When I ask" → new thread → send "Run the build." to an agent whose shell step takes about 9.97 s → send "Send feedback to the T3 team about this." → expand "Outline of 2 recent turns" on the card.
- An AI agent ran the focused test: it fails on the base source (
"Turn 1 · shell · ok · 10.0 s") and passes on this commit. On the newest green main, 3b827b4, it fails the same way, and it passes on a local merge of this commit into it.
- An AI agent ran
vp run check:changed; it passed.
- An AI agent checked the feedback card in the web UI before and after:
- Setup: isolated test server in fresh state on Linux, labelled "Test machine"; web client in the T3 Code Browser panel (Chromium) at 1280x800; the same server and the same card for both commits, only the web client changes. The agent is a scripted stand-in for a provider CLI: it runs a real
sleep 9.965 as its shell step and makes a real t3_feedback call; it is not a real model. The server recorded that step as 9,967 ms.
- Steps: as above, in the Browser panel.
| e36800e (before) |
ebdfe94 (after) |
 Web at e36800e: the outline says "Turn 1 · shell · ok · 10.0 s" for a 9,967 ms shell step. |
 Web at ebdfe94: the same card says "Turn 1 · shell · ok · 10 s"; the 54 ms step still says "0.1 s". |
Not shown
- Mobile:
FeedbackRequestCard.tsx there calls the same feedbackTraceLines helper.
- Desktop: wraps the web UI.
- A real provider: the 9.95–10 s window is too narrow to hit on demand with a model's own tool call.
- The UI run on 3b827b4: it adds one commit over e36800e, which changes only server attachment files.
Generated with Claude Opus 5.5 in T3 Code Nightly
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Nov 25, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review.
Walkthrough
-
The seconds formatter now selects display precision based on the duration rounded to tenths. A test checks displayed values just below and at the 10-second rounding boundary.
Changes: Duration formatting
| Layer / File(s) |
Summary |
Rounding and boundary test packages/client-runtime/src/feedbackRequest.ts, packages/client-runtime/src/feedbackRequest.test.ts |
The formatter displays tenths when the rounded duration is below 10 seconds and whole seconds when it is 10 seconds or greater. The test covers durations of 9,949 ms and 9,960 ms. |
Estimated code review effort: 1 (Trivial) | ~5 minutes
Change: Bug fix
Suggested reviewers: gabrielelpidio
Merge Risk: Minimal · up to 37fd5
-
This fixes feedback trace durations that near 10 seconds showed as "10.0 s". The change is small, localized, and covered by a focused test, so merge risk is minimal.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title names the change: feedback trace durations near 10 s no longer show 10.0 s. It matches the summary, which says the seconds formatter now rounds to one decimal before checking the 10-second c… |
| Description check |
 |
The description follows the template. It has Problem, Change, Scope and Verification sections, and each one has content. The problem and fix are explained clearly, with a link to the affected helper a… |
| Linked Issues check |
 |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
 |
Check skipped because no linked issues were found for this pull request. |
Full details: Title check
-
Explanation
The title names the change: feedback trace durations near 10 s no longer show 10.0 s. It matches the summary, which says the seconds formatter now rounds to one decimal before checking the 10-second cutoff, and the added test covering 9,949, 9,960 and 10,000 ms. It uses the conventional commit form and is specific, so it reads clearly in history.
Full details: Description check
-
Explanation
The description follows the template. It has Problem, Change, Scope and Verification sections, and each one has content. The problem and fix are explained clearly, with a link to the affected helper and the focused test. Scope explains why no issue is linked, which the template allows for a small obvious fix. Verification gives concrete steps, focused test results before and after, the check command result, and UI before/after evidence with a clear list of what was not checked. It also ends with the model and harness, as the template asks. Minor point: the Scope section does not link an issue or a maintainer request, but it gives a reason, which the template accepts.
Finishing Touches
-
Generate unit tests (beta)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info
-
Run configuration
-
Commits
-
Reviewing files that changed from the base of the PR and between ebdfe94 and 37fd51e.
Files selected for processing: 1
-
packages/client-runtime/src/feedbackRequest.test.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
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.
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.
|