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(web): /feedback no longer drops a pending reply by viktorce · Pull Request #44541 · pingdotgg/t3code

Conversation

@viktorce

@viktorce viktorce commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Problem

On a Codex thread, sending /feedback with a pending reply clears the "Replying to" bar along with the composer text, so the next message goes out without the reply. While a turn runs, that same draft also shows the "Steer message" icon instead of the plain "Submit message" arrow, even though pressing the button runs feedback.

Closes #44539

Change

In apps/web/src/components/chat/useComposerSend.ts, the /feedback branch still clears the draft with the draft store's clearComposerContent and then puts the pending reply straight back with setReplyTo on the same draft. Because submitCodexFeedback runs clearDraft before the upload starts, the reply stays whether the upload succeeds, fails, or is interrupted.

In apps/web/src/components/chat/ChatComposer.tsx, web shows the plain send arrow for commands it runs itself, such as /feedback, and decides that with composerRunsDraftLocally. I added a separate /feedback check beside that call for drafts with a pending reply, using the same Codex, single-model, and no-other-context conditions as the send path. During a running turn, the send button now shows "Submit message" for /feedback with a pending reply.

Drafts without a reply, other providers, multi-model drafts, /side, and the context kinds that stop /feedback stay unchanged. Because composerRunsDraftLocally and its inputs do not change, /clear and /usage-limits with a pending reply keep showing the steer or queue button during a running turn. No user-facing text changes, so no translations change.

Desktop uses the web client and picks up the fix. Mobile has no "Reply to this response" on main, so it needs no change. The server, contracts, and wire format do not change.

Scope

This fixes a bug in the existing web /feedback and reply flow rather than adding a feature. A pending reply does not stop /feedback from running today. Nothing in the /feedback path uses the reply, and the user gets no notice that it is gone. Both edits address sending /feedback with a pending reply in the web composer, keeping the reply on send and showing the right button beforehand. One browser test covers both.

Before and after

Row one shows the composer after sending /feedback demo test with a pending reply, and row two shows the send button during a running turn.

Before After
Before fix, composer empty and Replying to bar gone after sending /feedback demo test After fix, composer empty and Replying to bar still visible after sending /feedback demo test
Before fix, send button shows Steer message for /feedback demo test with a pending reply during a running turn After fix, send button shows Submit message for /feedback demo test with a pending reply during a running turn
After the fix, the next message carries the reply After the fix, /feedback during a running turn keeps the reply
After fix, next message Use it in the parser too sent with the reply quoted above it and the Replying to bar gone After fix, feedback card shown while the turn keeps running and the Replying to bar stays

Before the fix, sending /feedback demo test with a pending reply drops the "Replying to" bar.

before-flow.mp4

After the fix, sending /feedback demo test keeps the "Replying to" bar so the next message carries the reply.

after-flow.mp4

Verification

I found the bug while building "Reply to this response" for the mobile app, work that is not on main, and comparing its composer with web's.

I added one browser test to apps/web/src/components/ChatView.browser.test.tsx, named "/feedback with a pending reply runs as feedback and keeps the reply when the upload fails". It renders the app on a fake environment with a Codex thread, clicks "Reply to this response", starts a running turn, types /feedback slow, and checks that the send button reads "Submit message". It then presses Enter, makes the feedback upload fail, and checks that the failure notice shows, the "Replying to" bar stays, and the composer is empty.

On main at c203d93314, removing either half of the fix on its own makes the test fail. Without the ChatComposer.tsx change, it times out waiting for "Submit message". Without the useComposerSend.ts change, it fails waiting for the "Replying to" bar after the failure notice. With both changes in place, it passes.

vp run check:changed passes on this branch, covering formatting, linting, knip, typecheck, all 23 tests in ChatView.browser.test.tsx, and the React Compiler check on both changed files.

I recorded the captures above in T3 Code's built-in browser on Replay using a temporary local patch not in this PR. It routed a Replay thread into the Codex /feedback path and made the server answer the upload with the fake ID demo-only-not-sent, so nothing went to OpenAI. The code after the provider check is the same for a real Codex thread. I recorded those captures on main at 4bc38b1c5e. None of the 89 commits since then touch the three changed files.

I did not run a real Codex upload because that would send real feedback to OpenAI, and I did not test the desktop app shell.

Known limits

The /feedback with a reply check for the send button sits beside composerRunsDraftLocally in ChatComposer.tsx instead of inside packages/client-runtime. Mobile calls the same helper, and moving the rule into it would change what holdsOnlyText means for mobile, so leaving the helper unchanged keeps this fix web-only.

The send button reads raw composer text, while sending removes inline context references first. A draft whose text starts with such a reference can show the steer look and still run /feedback. That behavior predates this PR and also affects drafts without a reply as well as /clear and /usage-limits, so it belongs in a separate fix.

Claude Opus 5.5 wrote the change using the Claude Code harness inside T3 Code. Claude Opus 5.5, Gemini 4 Neon and GPT-6.1 Sol reviewed it, GPT-6.2 Sol drove the browser for the captures, and Gemini 4 Neon wrote this description.

Sorry, something went wrong.

Uh oh!

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

All reactions
@viktorce
fix(web): /feedback keeps a pending reply for the next message
ab9ffaf
With a reply pending, /feedback ran feedback and the draft clear dropped the
reply with the text, without saying so. The reply now goes back into the bar
right after the clear, before the upload starts, so it waits for the next
message whatever the upload does. During a running turn the send button now
shows the send look for /feedback with a reply, since pressing it runs
feedback instead of steering. /clear and /usage-limits with a reply keep their look.
@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 Nov 27, 2026
@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The composer routes eligible Codex feedback commands locally when a reply is pending. Clearing the feedback draft preserves the reply reference. A browser test covers feedback upload failure and the resulting composer state.

Changes: Codex feedback with pending replies

Layer / File(s) Summary
Route feedback locally and retain pending replies
apps/web/src/components/chat/ChatComposer.tsx, apps/web/src/components/chat/useComposerSend.ts, apps/web/src/components/ChatView.browser.test.tsx
Recognized Codex feedback commands can run locally when the draft contains only text or a reply. Clearing the draft preserves its reply reference. The browser test checks the feedback reason, failure message, retained reply bar, and empty editor.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix · Severity of issue fixed: Low

Suggested reviewers: juliusmarminge, yash-singh1

Merge Risk: Minimal · up to fc26c

This change keeps a pending reply after /feedback runs in Codex web threads and shows the correct submit button while a turn is running. The scope is small and the browser test covers the failure case. No merge-blocking risk was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "fix(web): /feedback no longer drops a pending reply" is a conventional commit title that names the primary change: the web /feedback flow kept clearing the pending reply. The changeset rest…
Description check Passed The description follows the repository template closely. It has Problem, Change, Scope, and Verification sections, and it uses a conventional-style title. The Problem section states the bug and expect…
Linked Issues check Passed [#44539] Both reported bugs have a matching change at the reviewed head. (1) Reply loss: in apps/web/src/components/chat/useComposerSend.ts, the /feedback clearDraft callback calls setReplyTo(composer…
Out of Scope Changes check Passed The whole-PR diff touches three files. useComposerSend.ts adds two lines that restore replyTo in the /feedback clearDraft path. ChatComposer.tsx adds a holdsNoAttachedContext refactor, a codexFeedback…
Full details: Title check

Explanation

The title "fix(web): /feedback no longer drops a pending reply" is a conventional commit title that names the primary change: the web /feedback flow kept clearing the pending reply. The changeset restores the reply in useComposerSend.ts and adjusts the send-button state in ChatComposer.tsx, both of which the title covers. It is specific and matches the linked issue's core bug.

Full details: Description check

Explanation

The description follows the repository template closely. It has Problem, Change, Scope, and Verification sections, and it uses a conventional-style title. The Problem section states the bug and expected behavior. The Change section explains both edits and why they are needed. The Scope section explains why this is a bug fix and links issue #44539. The Verification section gives the browser test name, the before-and-after results with the fix removed, the repo check command, and the limits of what was not tested. Before and after screenshots and recordings are included, as the template requires for UI changes. The model and harness attribution is present at the end. The description is thorough and specific, so it meets the template without gaps.

Full details: Linked Issues check

Explanation

[#44539] Both reported bugs have a matching change at the reviewed head. (1) Reply loss: in apps/web/src/components/chat/useComposerSend.ts, the /feedback clearDraft callback calls setReplyTo(composerDraftTarget, replyTo) after clearComposerDraftContent. The reply therefore stays in the draft after the composer clears, whatever the upload outcome. (2) Wrong button: in apps/web/src/components/chat/ChatComposer.tsx, feedbackRunsLocally adds a /feedback check for drafts with a pending reply. It uses the same Codex, single-model, and no-attached-context conditions as the send path. composerRunsDraftLocally keeps its replyTo === null input, so /clear and /usage-limits behave as before. The send button therefore shows the plain send arrow for /feedback with a pending reply during a running turn. The browser test in ChatView.browser.test.tsx covers both behaviors. I read the changed hunks directly. I did not run the test. The result relies on the author's reported check results.

Full details: Out of Scope Changes check

Explanation

The whole-PR diff touches three files. useComposerSend.ts adds two lines that restore replyTo in the /feedback clearDraft path. ChatComposer.tsx adds a holdsNoAttachedContext refactor, a codexFeedbackOffered flag, and a feedbackRunsLocally check that uses parseCodexFeedbackCommand. ChatView.browser.test.tsx adds one browser test for the same flow. Each hunk connects directly to #44539. The change does not alter composerRunsDraftLocally, its inputs for other commands, server code, contracts, or user-facing text. No unrelated hunk appears in the diff. The summary states that mobile, server, and contracts are unchanged, and the diff is consistent with that.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: main
  • File: .coderabbit.config.ts
  • Commit: 1356a26
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: daf4c7e8-f876-4726-b7d4-d2e5015c6d54
Commits

Reviewing files that changed from the base of the PR and between ab9ffaf and fc26c13.

Files selected for processing: 1

  • apps/web/src/components/chat/ChatComposer.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.

All reactions

Sorry, something went wrong.

Uh oh!

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

@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Nov 27, 2026
juliusmarminge and others added 2 commits November 27, 2026 23:58
@juliusmarminge @claude
Merge origin/main into fix/web-feedback-keeps-pending-reply
0422365
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@juliusmarminge @claude
refactor(web): name the composer's no-context check for what it tests
fc26c13
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@juliusmarminge

juliusmarminge commented Nov 28, 2026

Copy link
Copy Markdown
Member

Evidence

Environment: real web app in Chromium, 1280×800, light theme, fresh isolated data, real Codex CLI 0.172.0 with gpt-6-luna.

Steps on both commits: open a completed Codex response, click Reply to this response, enter /feedback testing without attachments or other context, and send. Then start another turn, select the completed response for reply, enter /feedback running testing, inspect the send button, and send again. Both uploads succeeded on each side.

The scenario runner exited 0: base failed and head passed. Base dropped the reply after both submissions and showed Steer message during the running turn. Head retained the reply and showed the plain arrow labeled Submit message. Command text cleared on both sides.

Capture Before After
Commit 1356a26eba fc26c13975
Feedback draft Before: pending reply and feedback draft After: pending reply and feedback draft
After idle submission Before: pending reply removed After: pending reply retained
Running-turn button Before: steer icon and tooltip After: plain arrow and Submit message tooltip
After running submission Before: pending reply removed After: pending reply retained
Recording Before interaction After interaction

Scenario source · Sanitized runner output

Failed-upload behavior was not exercised: all uploads in this comparison succeeded.

Not shown:

  • Pending-reply retention after a failed feedback upload was not exercised because all four uploads in the final comparison succeeded.
All reactions

Sorry, something went wrong.

Uh oh!

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

@juliusmarminge juliusmarminge added takeover:ready Takeover done; auto-lands when gates pass and removed takeover:in-progress A takeover lead is working on this PR labels Nov 28, 2026
@juliusmarminge
juliusmarminge merged commit cf4a35f into pingdotgg:main Nov 28, 2026
56 checks passed

Uh oh!

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

@juliusmarminge juliusmarminge removed the takeover:ready Takeover done; auto-lands when gates pass label Nov 28, 2026
@omegent-app omegent-app Bot mentioned this pull request Nov 28, 2026
Merge upstream main through 0f78747290a1 patroza/t3code#688
Merged
This was referenced Nov 28, 2026
fix(web): send button now shows the right action for local commands #44971
Closed
refactor(client-runtime): move web's /feedback reply rule to the helper #44991
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

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]: Sending /feedback on web drops a pending reply

Uh oh!

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

2 participants

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