Repository navigation
fix(bots): a helper answering a bot's question is no longer told to post in the asker's thread - #48630
Conversation
…ger owes the asker's thread a post Only a handoff passes its thread, issue or pull request on to the receiving turn. A question's answer and status mail go back by mail, so an item the helper adds no longer links that place and its worker's report no longer says to post there. Status mail beside a handoff no longer hides the handoff's place. Fixes STA-18016
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Ready for review. A request's thread, issue or pull request now carries over to the receiving bot's work only for handoffs. A bot answering a question, or reading status mail, no longer gets an item linked to the asker's thread or an instruction to post there; handoffs keep their thread as before. Checked with the origin test (it fails with the fix reverted) and the full CI run on this head. |
…ger owes the asker's thread a post (stablyai#48630) Only a handoff passes its thread, issue or pull request on to the receiving turn. A question's answer and status mail go back by mail, so an item the helper adds no longer links that place and its worker's report no longer says to post there. Status mail beside a handoff no longer hides the handoff's place. Fixes STA-18016 (cherry picked from commit fc630c5) (cherry picked from commit 4dc40fc8902fc6d9707a6946e1fd0e8b42206341)
ELI5
When a bot working on a Slack thread asks another bot a question, the answer is supposed to come back to the bot that asked. But the helper bot was also being told "post what you find in that Slack thread". Now only a bot that was handed the whole job is told to post in the thread; a bot that was asked a question, or just told something, is not.
What Changed
startedIn, and its worker's report no longer says to post there.Why
A request's record keeps the place its chain started in for every purpose, and the reader that turns a request into the receiving turn's origin used it for every purpose too. So a helper answering a question added an item that linked the asker's thread, and its worker's report said "post what this result settles there". That contradicts the question's own instructions, which say to answer by mail and that the job stays with the asker. Wrong delivery was not observed; the guidance conflicted.
Handoffs keep their thread, so the fix in #47789 (a handed-off job's result goes back to the thread it started in) still holds.
Linked Issue
Fixes STA-18016.
Visual Proof
N/A, no app screen changes. The only text change is guidance an agent reads: a question's or status's helper no longer gets the posting line.
Worker report guidance for a helper's item, before and after
Before, for a question:
After, for a question or status:
A handoff's is unchanged.
Testing
bot-request-origin-place.test.tsreads real request records through the real record reader into a turn: a handoff keeps its thread; a question or status gives none; status beside a handoff keeps it; a question, a handoff with no place, or a handoff from another thread beside it gives none. It fails with the change reverted.A throwaway script also ran the generated path (request record → helper turn → item
startedIn→ worker report line) for each purpose before and after, with no post to a real thread; no app run. A closed item's report already shows no item line.Performance
None. The same records are read; one field is checked.
Risk
Only external chains (Slack, GitHub, Linear) carry an origin, so Orca-only chats are unchanged. On external chains, items a helper adds while answering a question or reading status mail no longer link the asker's thread automatically. A turn that takes a handoff and a question together names no origin, so that handoff's item has no
startedIn; the handoff's own request view still names its thread and post command. Items added before this change keep the origin they stored. No stored data changes, so a plain revert backs it out.Level: Low
AI Disclosure
Review
Agent skill upstream boundary
Notes
No platform-specific code, no wire or storage format change (paired computers and SSH hosts read the same records), no new reads.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)