Skip to content

fix: deliver nested background reports to their Slack thread - #118

Closed
makeitfutureDev wants to merge 0 commit into
betafrom
fix/nested-background-thread-delivery
Closed

makeitfutureDev wants to merge 0 commit into
betafrom
fix/nested-background-thread-delivery

Conversation

@makeitfutureDev

Copy link
Copy Markdown
Owner

Cause

Nested background agent session keys append ::agent-<id> to the Slack root timestamp. The unattended result path passed the whole session key as thread_ts, so Slack rejected completed reports with invalid_thread_ts.

Change

Resolve the real Slack timestamp before posting the report, menu, and image files. Synthetic scheduled keys produce channel-level posts. Keep the synthetic key for the agent's engine session.

Checks

  • node --test test/deliver.test.js test/util.test.js test/durable-delivery.test.js — 63 passed
  • npm run check:static — passed
  • git diff --check — passed

Live acceptance

Claude and Codex nested-agent cases and the scheduled-report case are specified in TEST-PLAN.md. Private QA registry cases and live runs are pending. After the fix is deployed, a safe gateway restart will retry the preserved completed reports.

@makeitfutureDev
makeitfutureDev force-pushed the fix/nested-background-thread-delivery branch from 4bc4121 to 7d3abfb Compare September 29, 2026 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant