GeezerVison is showing github.com — fix(web): /clear no longer arms a fresh session during a queued-message edit by juliusmarminge · Pull Request #45021 · pingdotgg/t3code
Conversation
On web, picking /clear from the slash menu while editing a queued message turned on a fresh session for the thread's next message, while the queued message itself stayed unchanged. ChatView now withholds the fresh-session command while a queued message is being edited, as it already does for a pending approval or question and as the mobile app does, so /clear is not offered during the edit.
Fixes #45018
Reproduction on main
Commit 8844a69 (origin/main). Ran T3CODE_DEV_SEED=0 vp run dev in a fresh worktree, added a scratch project via t3 project add, and started a thread with t3 thread start --provider devReplay --model bench-stream <project> "first message" so a turn kept streaming (no approval or question pending). In T3's browser panel (web): opened the thread, typed second message, pressed Ctrl+Enter (queued row appeared with Send now / edit / remove), clicked "Edit queued message", replaced the composer text with /clear, and clicked the /clear — Start a fresh session; earlier messages stay visible suggestion. Observed: the composer emptied; the queued row still read second message with "Editing in the composer · Cancel"; the turn kept running; and the banner "Your next message starts a fresh session — The agent won't see earlier messages in this thread." appeared above the composer. This matches the report exactly. Also added a browser test (ChatView.browser.test.tsx) that builds a thread with a running run and a queued run, edits the queued message, picks /clear from the menu, and asserts the fresh-session banner is absent. It fails on main because the banner is shown.
Evidence
Real web app, Linux, 1280×800, light theme; fresh isolated data on each commit. Start devReplay bench-stream with first message, queue second message using Ctrl+Enter, edit the queued row, replace its text with /clear, and select the fresh-session suggestion when offered.
The base shows the fresh-session banner with an empty composer and unchanged queued edit. The fix shows “No matching command,” retains /clear in the composer, and never arms a fresh session. scenarios:prove exited 0: fails on base and passes on head.
Scenario script
Captures and recordings inspected; uploaded using the ghdrop skill.
Tests
vp test run src/components/ChatView.browser.test.tsx -t "clear" (apps/web): 3 passed
- Same test without the ChatView change: fails because the /clear option is offered, which confirms the test catches the bug
vp run typecheck (apps/web): no errors
vp run check:changed: pass
- CI on 62e153a: all 7 required checks passed
Not in this change
- When T3's fresh-session /clear is hidden (pending approval or question, and now a queued edit), a provider's own /clear slash command, if the provider advertises one, becomes visible in the menu; this was already the case before this change.
Who did the work
- Written by Claude Opus 5.5, in Claude Code
- Reviewed by GPT-6.1 Sol, in Codex, and by Claude Opus 5.5, each on its own
- Proof captured by GPT-6.1 Sol and checked by Claude Opus 5.5
Run by the t3code factory in T3 Code.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…ge edit
While a queued message is being edited, the composer belongs to that edit,
so ChatView now withholds the fresh-session command just as it does for a
pending approval or question, matching mobile.
Fixes #45018
Co-Authored-By: Claude Opus 5.5 <[email protected]>
coderabbitai
Bot
commented
Nov 28, 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 web composer now makes the fresh-session command unavailable during queued-message editing. A browser test verifies that /clear is not offered and that editing remains active.
Changes: Queued-message editing
| Layer / File(s) |
Summary |
Guard the fresh-session command during edits apps/web/src/components/ChatView.tsx, apps/web/src/components/ChatView.browser.test.tsx |
freshSessionCommandAvailable now checks for an active queued-run edit. The browser test verifies that /clear is unavailable, editing remains active, and no fresh-session notice appears. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix · Severity of issue fixed: Low
Suggested reviewers: yash-singh1, macroscopeapp
Merge Risk: Minimal · up to 62e15
-
This change stops the web composer from offering /clear while a queued message is being edited, matching mobile behavior. The change is small and covered by a browser test, and I found no merge-blocking risk.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title names the main change: /clear no longer arms a fresh session during a queued-message edit. It is a conventional commit title in plain language. It matches the changeset, which withholds the … |
| Linked Issues check |
 |
Issue #45018 requires that picking /clear during a queued-message edit on web not arm a fresh session, matching mobile's freshSessionAvailable check on props.queuedRunEdit === null. The reviewed… |
| Out of Scope Changes check |
 |
The PR changes two files: the ChatView gating of the fresh-session command during queued edits, and a browser regression test for that behavior. Both connect directly to #45018. The PR description als… |
| Description check |
 |
The description follows the repository template closely. It has a clear problem statement tied to issue #45018, a change summary explaining why ChatView now withholds the fresh-session command during … |
Full details: Title check
-
Explanation
The title names the main change: /clear no longer arms a fresh session during a queued-message edit. It is a conventional commit title in plain language. It matches the changeset, which withholds the fresh-session command while a queued edit is active in ChatView.tsx and adds a browser test for that case.
Full details: Linked Issues check
-
Explanation
Issue #45018 requires that picking /clear during a queued-message edit on web not arm a fresh session, matching mobile's freshSessionAvailable check on props.queuedRunEdit === null. The reviewed head changes apps/web/src/components/ChatView.tsx (+5/-2) so that an active queued-run edit makes the fresh-session command unavailable, alongside the existing checks for unsupported fresh sessions, pending approvals, and pending user inputs. ChatView.browser.test.tsx (+40) adds a regression test that starts a running thread with a queued run, edits the queued message, and asserts the /clear option and the fresh-session banner are absent. The PR reports that this test fails on the base commit and passes at head. I did not read the ChatView hunk directly: the diff read returned no content and the file read was truncated before the relevant lines. The conclusion rests on the change summary and the author's test results, which I did not re-run. The issue's other observations (Enter-key pick, save-as-text in useComposerSend.ts) are not changed by this PR. The issue lists them as code-reading details, not as expected behavior, so they are not treated as unmet requirements.
Full details: Out of Scope Changes check
-
Explanation
The PR changes two files: the ChatView gating of the fresh-session command during queued edits, and a browser regression test for that behavior. Both connect directly to #45018. The PR description also notes that a provider's own /clear may still appear when T3's fresh-session command is hidden. This behavior existed before the change and the PR does not alter it, so it is not an out-of-scope change. I did not confirm the exact hunk contents because the diff read failed and the file read was truncated.
Full details: Description check
-
Explanation
The description follows the repository template closely. It has a clear problem statement tied to issue #45018, a change summary explaining why ChatView now withholds the fresh-session command during queued edits, and scope justification via the linked issue. Verification is thorough: it gives a reproduction on main with exact steps and observed results, before/after screenshots and recordings, a named focused test with its pass/fail behavior, typecheck and check results, and CI status. It also lists a known out-of-scope limitation and the model and harness used, as the template requests.
Finishing Touches
-
Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
- 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 ed54785 and 62e153a.
Files selected for processing: 2
-
apps/web/src/components/ChatView.browser.test.tsx
apps/web/src/components/ChatView.tsx
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 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.
imetn
added a commit
to imetn/t4code
that referenced
this pull request
Nov 28, 2026
…rver)
Mobile (7 PRs):
- pingdotgg#44387 ProMotion 120Hz scroll stutter fix ([email protected] patch)
- pingdotgg#44161 iOS release status bar icons follow app theme
- pingdotgg#44939 Scroll to end no longer loses next tap
- pingdotgg#44937 image previews opened from composer chip stay closed
- pingdotgg#44660 center working glyph in Dynamic Island
- pingdotgg#44315 tapping image in html_render opens image viewer
- pingdotgg#30661 share a turn's final response from system share sheet (approved orthogonal graft in ThreadFeed.tsx)
Web & Desktop (17 PRs):
- pingdotgg#43101, pingdotgg#30027, pingdotgg#44935, pingdotgg#44900 Markdown code block & file tree preview, large preview Select-All Range copy, rendered table copy
- pingdotgg#44055, pingdotgg#44952, pingdotgg#44992 copy chat table as aligned text for chat apps (CJK & symbol width alignment)
- pingdotgg#33801 Mod+Alt+E maximizes right panel even when closed (T4 Tooltip preserved)
- pingdotgg#39122 snooze a thread indefinitely
- pingdotgg#44023 inline CLI update button in provider status section
- pingdotgg#33827 save files from preview panel to machine
- pingdotgg#44930, pingdotgg#44945, pingdotgg#44916, pingdotgg#44831, pingdotgg#44975, pingdotgg#45021 folder-add/draft/queue/HTML-reload/clear UX fixes
Server & Providers (18 PRs):
- pingdotgg#41726 Usage limits refresh skips full provider health checks (preserving T4 human-only manual Antigravity CLI probe and avoiding ACP health checks on limitsOnly)
- pingdotgg#32114, pingdotgg#43651 checkpoint capture baseline read & parallel source control discovery
- pingdotgg#44979 hung gh auth token no longer stalls MCP connect
- pingdotgg#44860, pingdotgg#44872 Claude main checkout settings/plugins & scratch folder cleanup
- pingdotgg#44902 send image attachments with actual byte magic MIME type (approved orthogonal graft in adapter.ts)
- pingdotgg#44994, pingdotgg#44399, pingdotgg#44406, pingdotgg#44418, pingdotgg#44448, pingdotgg#45014, pingdotgg#44827, pingdotgg#44913, pingdotgg#40454, pingdotgg#44863, pingdotgg#44926 terminal/git/Codex/ACP/CLI/desktop stability fixes
Verified:
- check:t4-locks main..HEAD: only the 2 user-approved orthogonal grafts (ThreadFeed.tsx, adapter.ts)
- Zero telemetry: 0 bytes changed in telemetry modules
- i18n:check pass across all 10 locales (0 untranslated zh.json keys)
- vp fmt --check pass across all 166 changed files
- Typecheck 0 new errors across all 13 touched packages
- Targeted unit tests + all 8 Web Chromium browser test suites (196/196) + independent GPT pre-merge review & fixes verified
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size:XS
0-9 changed lines (additions + deletions).
vouch:trusted
Author is trusted by repo permissions or the VOUCHED list.
Milestone
No milestone
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.
|