Repository navigation
fix(web): Inbox replies lock and fail per ask, and pinned asks stop leaking to the composer - #1183
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reached
This review includes 12 billable files and costs up to $3.00.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Or wait 41 minutes for your next included review. View limit details
|
8 tasks done
Jacksondr5
added a commit
that referenced
this pull request
Nov 22, 2026
…ed asks stop leaking to the composer - Sending one answer locks only that ask; errors show under their ask, and Try again resends (or re-reads, once the server took the answer). - Reply boxes are read-only on a read-only connection or a closed ask. - Answers are trimmed, and words are still required. - A file dropped on a Captain's pinned ask no longer also lands in the Captain's composer (upstream seam in workspaceFileDrop.ts, FORK.md case 127), and Mod+S typed in it no longer stashes the Captain's prompt. Closes #1176 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…p target - Try again resends only while the ask can still take an answer; a closed (kept) ask is refused at the send itself. - A reply box is read-only whenever its ask cannot be answered now. - The pinned ask takes a dropped file anywhere on it while it can take files, and is marked as a drop target only then. - The pinned ask's error offers Try again. - FORK.md: this seam is case 128 (#1182 takes 127). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s case lands ahead of it Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…one is refused Per Inbox AC8 and the Captain's ruling: trimming decides whether an answer has words, never what is delivered. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…wer sends again Jackson's review: an outlined Try again beside the filled Answer button looked wrong. Upstream's composer shows a failed send as an error (its ThreadErrorBanner Alert) and keeps the words, and sending again is the retry; the Inbox and the pinned ask now do the same, with one action. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Jacksondr5
force-pushed
the
j5code/inbox-reply-fixes
branch
from
November 23, 2026 02:03
0cc8b03 to
3e71cf6
Compare
Jacksondr5
added a commit
that referenced
this pull request
Nov 23, 2026
Jacksondr5
added a commit
that referenced
this pull request
Nov 23, 2026
Jacksondr5
added a commit
that referenced
this pull request
Nov 23, 2026
Merged
8 tasks done
Jacksondr5
added a commit
that referenced
this pull request
Nov 23, 2026
Jacksondr5
added a commit
that referenced
this pull request
Nov 23, 2026
Jacksondr5
added a commit
that referenced
this pull request
Nov 23, 2026
Jacksondr5
added a commit
that referenced
this pull request
Nov 23, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
Answering on the web Inbox and on a Captain's pinned ask had rough edges. Closes #1176.
j5/main41f406f before this fix.What changed
useAnswerSendshook (apps/web/src/j5/a2a/answerSends.ts) keeps a set of asks being sent and an error per ask. Both the page and the dock use it, so two overlapping sends never unlock or overwrite each other. The dock's request ids are kept per exchange for the same reason.apps/web/src/components/chat/useComposerSend.ts:1487) and reports the error throughsetThreadError(:1507), whichThreadErrorBannerdraws as an errorAlert(apps/web/src/components/chat/ThreadErrorBanner.tsx:89); sending again is the retry, with no separate button.AnswerSendErrorAlertdraws the sameAlert, on the Inbox page and the pinned ask. If the server took the answer and only the re-read failed, the words were already cleared on acceptance, so Answer can't resend; the page's Refresh re-reads.readOnlywhen this connection may not answer or the ask has closed. The dock's box isreadOnlyonce its ask has closed.workspaceFileDrop.ts) still clears its overlay but no longer takes files dropped inside that element. AdefaultPreventedcheck would be smaller but isn't equivalent: ProseMirror prevents the default when it inserts a drop's text or HTML, and upstream still attaches the files then.composer.stashscope claims Mod+S and does nothing (claimedStashShortcut.ts). It hangs on the container's focus/blur, so it keeps working when Inbox: the reply box uses the composer's editor #1174 swaps the textarea for the composer editor.Tests (each fails without its fix):
answerFileDrop.browser.test.tsclaimedStashShortcut.browser.test.tsx, which also checks that Mod+S outside the ask still stashesanswerSends.browser.test.tsx, which covers a failed send staying with its ask while another sends, and exact deliveryUI changes
Base
j5/main41f406f vs head, same seed repo, ask text, reply text and files, Chrome light, 1280×800. Agent-written thread titles and narration differ between runs.Before: sending one answer locks the other ask; a failed send shows the page banner.
reply-delivery-and-error-base.mp4
After: the other ask stays usable and its file can be removed while the first sends; the failure shows under that ask. (Recorded before the separate Try again button was replaced by the error alert above; the lock it shows is unchanged.)
reply-delivery-and-error-head.mp4
Live testing
Verdict: pass on web (crew tester; report
artifacts/test-reports/inbox-reply-fixes/8f2a95d0d1.md). Real Haiku 5.5 Captains with approved one-seat Crews asked the questions on isolated test servers. Items 1–4 ran at c21db35; whitespace, the per-ask lock, errors and retry, and the read-only connection were re-run at 8f2a95d. The only change between those heads is exact delivery, which is why only those items were re-run.DragEvent/Fileevents, because the Browser panel has no OS drag.artifacts/test-reports/inbox-reply-fixes/3e71cf6c71.md)." yes "(Inbox) and" yes "(pinned ask) were stored exactly so in the delivered message events (seq 62 and 68).Not exercised: the packaged Electron app (desktop wraps web), a real OS drag, a real outage, or a failed re-read after a delivered answer, a separate Viewer person's box, and a closed pinned ask's retained draft.
Upstream impact
apps/web/src/components/chat/workspaceFileDrop.ts: one import and two lines. Recorded as FORK.md case 128 plus a path-table row (after feat(web): links in an Inbox ask open in the asking thread's panel #1182's case 127). Cleared by the Captain, and the file is unchanged between the advance pin and v0.1.11.Checklist
FORK.md(case text and file-table row) in this PRBuilt by Claude Opus 5.5 in Claude Code (J5 Code crew seat).
🤖 Generated with Claude Code