fix(mobile-chat): remove sending gate from attach button + banner-clear coverage (follow-up to #2762) #2795
Reference in New Issue
Block a user
Delete Branch "fix/2762-mobile-attach-sending-gate"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up to #2762.
#2762 fixed the mobile Send button's
sendinggate so users can tap follow-up messages during an in-flight turn. The Attach button still had the same stalesendinggate, so users could not attach files while a send was in flight.Changes:
MobileChat.tsx: removedsendingfrom the Attach button's disabled/cursor/opacity gates (keptreachableanduploading).Test plan:
npx vitest run src/components/mobile/__tests__/MobileChat.test.tsx— 36/36 pass.npx eslintandnpx tsc --noEmitclean on modified files (pre-existing unused-import warning unrelated to this change).SOP checklist
sending(active tab state) instead of allowing concurrent file selection during an in-flight send.REQUEST_CHANGES on live head
8dcde014df74507495dfe3218125f058fa15b531.The intended MobileChat attach-button change is directionally correct:
disabled={!reachable || uploading}preserves the offline/uploading gates while removing thesendinggate, and the new tests cover attach-during-send plus banner-clear on a follow-up send.However this head carries unrelated stale-base regressions that block approval:
It reverts the merged #2792 E2E Chat residual fix.
canvas/e2e/chat-separation.spec.tsremoves the workspace bearer auth headers from the Activity API source-filter tests, reintroducing the unauthenticated 401 path.canvas/e2e/fixtures/chat-seed.tsalso reverts the dollar-quotedjsonbseed path back to single-quoted escaped JSON, reintroducing the quote/backslash seed failure that #2792 fixed.It reverts the merged #2793/#2766 MobileInbox wrong-action fix.
MobileInbox.tsxgoes back to deriving the primary action from active tabkindinstead ofr.kind, andMobileInbox.test.tsxremoves the delayed tab-switch regression test. That can again postaction=donefor a stale approval row.Also,
CI / Canvas (Next.js)is still pending and review/policy gates are red, so the requested CI-green condition is not met. Please rebase onto current main and keep the #2792/#2793 hunks out of this PR; then rerun Canvas/all-required.8dcde014dfto39cff59f50APPROVED on head
39cff59f50.Re-review confirms my prior RC is resolved: the stale reverted #2792/#2793 files are gone, and the live diff is scoped to
MobileChat.tsxplusMobileChat.test.tsxonly.5-axis check:
sending, while still blocking!reachableanduploading.CI / Canvas (Next.js)successful andCI / all-requiredsuccessful.No remaining blockers from my prior review.
APPROVED on rebased head
39cff59f.5-axis re-review:
No findings.