You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AI chat: two messages sent while a new conversation is being created, then a failed create, give back only the second message (the first is dropped) #33562
Filing gate: ① a user-visible defect with a named producer, measured by the developer of PR #33561 (#33420) with a rendered probe (report 6886717406, Acceptance notes "Two sends, then a failed create"). Reader: domain:ui (ui/packages/plugin-chatbot + ui/packages/app-shell). Grade p3, self-graded by the lane seat under the maintainer's 「定级你可以自己决定」: a narrow path (two sends inside one held create, then the create fails) that drops typed text.
Dedupe: is:issue is:open ChatbotEnhanced restore and is:issue is:open first message create failed find nothing open.
What the user sees
On a new AI chat conversation, the user sends a message, then a second one while POST /conversations is still running. The create then fails. The "Couldn't send your message" notice shows and the message box gets back only the second message. The first one is gone: it is neither in the box nor sent on the retry.
ui/packages/app-shell/src/console/ai/AiChatPage.tsxuseDeferredFirstSend joins the two sends into one held message and, on the host's createError, drops it from the stash (so a retry does not send it twice).
ui/packages/plugin-chatbotChatbotEnhanced's not-sent rollback restores its OWN last-submitted text, so only the second part comes back.
Acceptance
ChatbotEnhanced can take the text to restore from the host (an optional prop; Clause-② yes (widening) on @object-ui/plugin-chatbot, record owed), and ChatPane hands it the joined held text on a failed create.
Claim: PM loop round 1 · 2026-11-15T04:16Z
Session: session_01FEkQ5mV4rtksbPPvwm9w8L (card thread, dev) · seat session_01FEkQ5oF8GgTHN2jBZoDwz8
Account: os-project-manager
Branch: claude/project-thread-snu787
Worktree: objectstack-issue-33562
Domain: domain:ui
Seat: domain:ui#2
File surface: ui/packages/app-shell/src/console/ai/AiChatPage.tsx, ui/packages/app-shell/src/hooks/useChatConversation.ts, ui/packages/plugin-chatbot/src/** (ChatbotEnhanced and its not-sent restore), their tests, root .changeset/. ⛔ No server, spec or cloud edit.
Container & model: M, mode:thread, model: default tier, effort: default
Clause-②: yes (widening) — ChatbotEnhanced (@object-ui/plugin-chatbot) takes an optional restore text from the host; contract record owed
Metadata-protocol: none
Responsibility: two sends during one held conversation create, then a failed create, give back only the second part | ChatbotEnhanced restores its own last-submitted text | a user who sends twice while a new AI conversation is created and the create fails
Thread-read: none
Premise: holds: measured by #33561's dev with a rendered probe (#33561 Acceptance notes; ACCEPT 6887211818)
Serial constraints cleared: no other pm:dispatcheddomain:ui card claims a file in this surface (live label read; ui seat 1's live files #33317#33063#33061#33103#33377 are disjoint); no other ui seat holds a Claim: on these files
Scope: shared card thread with #33567 (one dev, one PR). p3. Order: /mnt/project-files/pm-orders/ui/order-33562.md. Summons: the maintainer's 「同意 给队列最深的 ui 和 spec 各再开一个座位」 (this project, 2026-11-14T22:46Z) and 「开放 p3卡认领」 (2026-11-14T21:21Z).
domain:ui#2 · os-project-manager · session_01FEkQ5mV4rtksbPPvwm9w8L
os-dev-report
{
"issue": 33562,
"status": "done",
"branch": "claude/project-thread-snu787",
"pr": "#33673",
"session": "session_01FEkQ5mV4rtksbPPvwm9w8L",
"premise_still_valid": true,
"summary": "#33562: ChatbotEnhanced (@object-ui/plugin-chatbot) takes an optional unsentText (Clause-2 yes, widening; contract record owed by the seat); its not-sent restore reads unsentText ?? its own last-submitted text. ChatPane passes the joined held first message (heldFirstMessage, still set in the render the create error arrives in) as unsentText on a failed create, so two sends then a failed create give back both parts, first part first, and the retry sends the joined text once; all three hosts render ChatPane. #33567 measured first on origin/main d95ddeb: does NOT reproduce. A send before the linked conversation's GET answers is held, drawn, and sent once into conv-7 when the GET answers; the #33561 observation was the harness typing into a detached textarea (findByRole resolved on the pending pane, which the at-once GET then remounted; isConnected false before the change event). No line drops a send; the PR adds the pin only (Refs #33567). Head d32d4df, one commit, 5 files.",
"tests": "Rendered pins in AiChatPage.firstMessageDrawnAtOnce-33420.test.tsx (real AiChatPage/ChatDockConversation, ChatPane, useChatConversation, useObjectChat, ChatbotEnhanced, through the composer): #33562 on both hosts (503 after two held sends -> box 'first part\n\nsecond part', notice, nothing sent; retry sends the joined text once); #33567 (GET held, send -> drawn, not sent, no create; GET answers -> sent once, no create). Unit pin in ChatbotEnhanced.sendError.test.tsx (host unsentText restored). Red first with base sources: 3 failed / 15 passed (expected 'second part' to be 'first part\n\nsecond part'); #33567 pin green on base as the reading predicts. Ablations via scripts/ablation-replace.mjs (ui vitest aliases plugin-chatbot to src, no rebuild), each restored blob == HEAD and git diff HEAD empty: ChatPane unsentText={undefined} -> 2 failed / 16 passed; composer ignores unsentText -> 3 failed / 15 passed; pending-pane send not held -> 9 failed / 9 passed incl. the #33567 pin, existing-conversation CONTROL green. Suites under the lock (hooks useChatConversation, console/ai, layout, studio-design, plugin-chatbot): 627 files, 4821 tests passed, VERDICT command-exit 0, head d32d4df.",
"gates": "dispatch-gates --commands derived 37 families at d32d4df; all 37 exit 0 (after the @object-ui/app-shell^... closure build, lock VERDICT 0); --ran: 37 derived, 37 run, 0 NOT-MEASURED, 0 UNRUN. Extras: app-shell type-check exit 0, plugin-chatbot type-check exit 0, eslint --no-inline-config on the 4 changed files exit 0, ui check:new-line-citations exit 0 (first attempt from the repo root answered 254 'command not found': the script lives in ui/package.json; rerun from ui/). CI check-runs: in_progress at report time (PR just opened); the seat reads them.",
"dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
"mcp_calls": "9 — all reads: issue_read get x2 (#33562, #33567), issue_read get_comments x1 (#33562 claim), pull_request_read get x1 (#33561), pull_request_read get_files x4 (ui seat 1 PRs #33485#33493#33575#33585, file-surface check); no MCP write",
"api_writes": "3 — git push (claude/project-thread-snu787); relay pr_create (fleet-write run 43681792969, PR #33673, body read back identical, no labels, no assignees); this os-dev-report comment on #33562 via post-stamped.mjs",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"class: a · reach: rendered probe through the real AiChatPage on origin/main d95ddeb (the #33420 harness): on /ai/build/conv-7 with GET /conversations/conv-7 held, text typed but not sent is gone when the GET answers (new composer value ''); on /ai/build after a first send, a second message typed but not sent is gone when POST /conversations answers (new composer value '', only the first part sent) · evidence: ChatPane is keyed on chatApi + (conversationId or 'pending') in AiChatPage.tsx and the composer's text lives in the pane, so the id-keyed remount discards an unsent draft; a submitted message is never lost on either path · dedupe words: AI chat draft lost remount, composer text cleared conversation opens, ChatPane key pending draft",
"carrier: seat (ui#2) · noted, not filed: #33567 card premise does not reproduce; the PR says Refs #33567 and the seat records the reading on the card"
]
}
Seat review: PR #33673 ACCEPT on head 7725b791 (2026-11-15T06:44Z). K = 44, base-synced through the relay and CI green on the synced head; ready + auto-merge set in the same stroke. Contract records PASS 6889891363 (d32d4df0) and delta 6890359236 (07caf19a). #33567 is answered by the reading 6889876159 and the pin. Findings for triage: #33674 (now p2, dispatched to seat 2), #33685.
MERGED as 030ce02a on main (closes this card via Fixes #33562)
State: pm:dispatched removed, assignee cleared; card closed by the merge. Contract records PASS 6889891363 + delta 6890359236. Findings from the same PR, both now p2 and dispatched to seat 2: #33674, #33685.
Activity
objectstack-fleet commentedon Nov 15, 2026
domain:ui#2 · os-project-manager · session_01FEkQ5oF8GgTHN2jBZoDwz8
Claim: PM loop round 1 · 2026-11-15T04:16Z
Session:
session_01FEkQ5mV4rtksbPPvwm9w8L(card thread, dev) · seatsession_01FEkQ5oF8GgTHN2jBZoDwz8Account:
os-project-managerBranch:
claude/project-thread-snu787Worktree:
objectstack-issue-33562Domain:
domain:uiSeat:
domain:ui#2File surface:
ui/packages/app-shell/src/console/ai/AiChatPage.tsx,ui/packages/app-shell/src/hooks/useChatConversation.ts,ui/packages/plugin-chatbot/src/**(ChatbotEnhancedand its not-sent restore), their tests, root.changeset/. ⛔ No server, spec or cloud edit.Container & model: M,
mode:thread,model: default tier,effort: defaultClause-②: yes (widening) —
ChatbotEnhanced(@object-ui/plugin-chatbot) takes an optional restore text from the host; contract record owedMetadata-protocol: none
Responsibility: two sends during one held conversation create, then a failed create, give back only the second part |
ChatbotEnhancedrestores its own last-submitted text | a user who sends twice while a new AI conversation is created and the create failsThread-read: none
Premise: holds: measured by #33561's dev with a rendered probe (#33561 Acceptance notes; ACCEPT 6887211818)
Serial constraints cleared: no other
pm:dispatcheddomain:uicard claims a file in this surface (live label read; ui seat 1's live files #33317 #33063 #33061 #33103 #33377 are disjoint); no other ui seat holds aClaim:on these filesScope: shared card thread with #33567 (one dev, one PR). p3. Order:
/mnt/project-files/pm-orders/ui/order-33562.md. Summons: the maintainer's 「同意 给队列最深的 ui 和 spec 各再开一个座位」 (this project, 2026-11-14T22:46Z) and 「开放 p3卡认领」 (2026-11-14T21:21Z).objectstack-fleet commentedon Nov 15, 2026
domain:ui#2 · os-project-manager · session_01FEkQ5oF8GgTHN2jBZoDwz8
Unblocked · 2026-11-15T04:16Z: PR #33561 merged (
b654135d). Back topm:queue.objectstack-fleet commentedon Nov 15, 2026
domain:ui#2 · os-project-manager · session_01FEkQ5mV4rtksbPPvwm9w8L
os-dev-report
{
"issue": 33562,
"status": "done",
"branch": "claude/project-thread-snu787",
"pr": "#33673",
"session": "session_01FEkQ5mV4rtksbPPvwm9w8L",
"premise_still_valid": true,
"summary": "#33562: ChatbotEnhanced (@object-ui/plugin-chatbot) takes an optional unsentText (Clause-2 yes, widening; contract record owed by the seat); its not-sent restore reads unsentText ?? its own last-submitted text. ChatPane passes the joined held first message (heldFirstMessage, still set in the render the create error arrives in) as unsentText on a failed create, so two sends then a failed create give back both parts, first part first, and the retry sends the joined text once; all three hosts render ChatPane. #33567 measured first on origin/main d95ddeb: does NOT reproduce. A send before the linked conversation's GET answers is held, drawn, and sent once into conv-7 when the GET answers; the #33561 observation was the harness typing into a detached textarea (findByRole resolved on the pending pane, which the at-once GET then remounted; isConnected false before the change event). No line drops a send; the PR adds the pin only (Refs #33567). Head d32d4df, one commit, 5 files.",
"tests": "Rendered pins in AiChatPage.firstMessageDrawnAtOnce-33420.test.tsx (real AiChatPage/ChatDockConversation, ChatPane, useChatConversation, useObjectChat, ChatbotEnhanced, through the composer): #33562 on both hosts (503 after two held sends -> box 'first part\n\nsecond part', notice, nothing sent; retry sends the joined text once); #33567 (GET held, send -> drawn, not sent, no create; GET answers -> sent once, no create). Unit pin in ChatbotEnhanced.sendError.test.tsx (host unsentText restored). Red first with base sources: 3 failed / 15 passed (expected 'second part' to be 'first part\n\nsecond part'); #33567 pin green on base as the reading predicts. Ablations via scripts/ablation-replace.mjs (ui vitest aliases plugin-chatbot to src, no rebuild), each restored blob == HEAD and git diff HEAD empty: ChatPane unsentText={undefined} -> 2 failed / 16 passed; composer ignores unsentText -> 3 failed / 15 passed; pending-pane send not held -> 9 failed / 9 passed incl. the #33567 pin, existing-conversation CONTROL green. Suites under the lock (hooks useChatConversation, console/ai, layout, studio-design, plugin-chatbot): 627 files, 4821 tests passed, VERDICT command-exit 0, head d32d4df.",
"gates": "dispatch-gates --commands derived 37 families at d32d4df; all 37 exit 0 (after the @object-ui/app-shell^... closure build, lock VERDICT 0); --ran: 37 derived, 37 run, 0 NOT-MEASURED, 0 UNRUN. Extras: app-shell type-check exit 0, plugin-chatbot type-check exit 0, eslint --no-inline-config on the 4 changed files exit 0, ui check:new-line-citations exit 0 (first attempt from the repo root answered 254 'command not found': the script lives in ui/package.json; rerun from ui/). CI check-runs: in_progress at report time (PR just opened); the seat reads them.",
"dogfood_battery": "n/a — no
!in the PR title and no (narrowing) arm","mcp_calls": "9 — all reads: issue_read get x2 (#33562, #33567), issue_read get_comments x1 (#33562 claim), pull_request_read get x1 (#33561), pull_request_read get_files x4 (ui seat 1 PRs #33485 #33493 #33575 #33585, file-surface check); no MCP write",
"api_writes": "3 — git push (claude/project-thread-snu787); relay pr_create (fleet-write run 43681792969, PR #33673, body read back identical, no labels, no assignees); this os-dev-report comment on #33562 via post-stamped.mjs",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"class: a · reach: rendered probe through the real AiChatPage on origin/main d95ddeb (the #33420 harness): on /ai/build/conv-7 with GET /conversations/conv-7 held, text typed but not sent is gone when the GET answers (new composer value ''); on /ai/build after a first send, a second message typed but not sent is gone when POST /conversations answers (new composer value '', only the first part sent) · evidence: ChatPane is keyed on chatApi + (conversationId or 'pending') in AiChatPage.tsx and the composer's text lives in the pane, so the id-keyed remount discards an unsent draft; a submitted message is never lost on either path · dedupe words: AI chat draft lost remount, composer text cleared conversation opens, ChatPane key pending draft",
"carrier: seat (ui#2) · noted, not filed: #33567 card premise does not reproduce; the PR says Refs #33567 and the seat records the reading on the card"
]
}
Generated by Claude Code
objectstack-fleet commentedon Nov 15, 2026
domain:ui#2 · os-project-manager · session_01FEkQ5oF8GgTHN2jBZoDwz8
Seat review: PR #33673 ACCEPT on head
7725b791(2026-11-15T06:44Z). K = 44, base-synced through the relay and CI green on the synced head; ready + auto-merge set in the same stroke. Contract records PASS 6889891363 (d32d4df0) and delta 6890359236 (07caf19a). #33567 is answered by the reading 6889876159 and the pin. Findings for triage: #33674 (now p2, dispatched to seat 2), #33685.objectstack-fleet commentedon Nov 15, 2026
domain:ui#2 · os-project-manager · session_01FEkQ5oF8GgTHN2jBZoDwz8
Landed · 2026-11-15T07:20Z
030ce02aonmain(closes this card viaFixes #33562)State:
pm:dispatchedremoved, assignee cleared; card closed by the merge. Contract records PASS 6889891363 + delta 6890359236. Findings from the same PR, both now p2 and dispatched to seat 2: #33674, #33685.fix(console): a failed AI chat create gives back every message sent w…
fix(console): AI chat keeps a draft typed before the conversation is …