Skip to content

fix(connectors): Slack canvas/list unknown errors, scheduled post settlement, and Slack image asks (STA-16717, STA-16719, STA-16720) - #51597

Merged
nwparker merged 1 commit into
mainfrom
fix/release-scan-267delta-slice-b
Nov 28, 2026
Merged

nwparker merged 1 commit into
mainfrom
fix/release-scan-267delta-slice-b

Conversation

@nwparker

@nwparker nwparker commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Fixes three P2 issues from the 1.4.267 delta release scan (Slice B: Slack bot & notifications):

Summary

  • STA-16717 (F13): Report lost Orca Cloud responses for canvas and list actions with connector_post_unknown ("may have been created. Check … before trying again.") instead of "nothing was done. Try again in a moment.", matching ONCE_ONLY in postConnectorAction so bots do not blindly retry and create duplicates.
  • STA-16719 (F15): Exclude scheduled posts (verb === 'post' && args.postAt !== undefined) from intoThread post-attempt tracking and noteBotRequestPost in connector-act.ts, so orca slack post --at does not settle the bot request as already answered/delivered.
  • STA-16720 (F16):
    1. Allow image-ref blocks alongside the single text block in connectorMessageShown (src/shared/connector-asker-prompt.ts) so Slack image asks strip the generated prompt wrapper while preserving attached images and Slack markdown.
    2. Fetch images across both the head asker and carried later follow-up messages in connectorAskerImages / fetchAskerImages, using each message's own messageRef under the shared MAX_ASKER_IMAGES cap and timeout budget.
    3. Reuse detectImageFileSignature in connector-asker-images.ts (matching Pi's strict GIF/WEBP signature checks) and bound Pi auto-attached images by PI_UNSHRUNK_IMAGE_LIMITS (per-image and total bytes) so auto-attached images never reject the whole request on supported Pi.

Testing

  • Added focused real-code tests in src/shared/connector-asker-prompt.test.ts and src/main/external-conversations/connector-asker-images.test.ts (including verifying Pi auto-attached images against real preparePiRpcPrompt).
  • timeout 900 pnpm check:changed passes cleanly.

Performance

  • No new background timers, polling, or hot-path allocations.
  • connectorAskerImages shares a single ASKER_IMAGES_BUDGET_MS timeout and MAX_ASKER_IMAGES cap across the head message and carried follow-ups, and skips oversized Pi images before streaming when download.size exceeds the remaining limit.
Files Added Deleted Net
Test 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​180 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​180
Prod 5 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​98 $\color{#cf222e}{\Huge{\mathbf{−}}}$​47 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​51

…tlement, and Slack image asks (STA-16717, STA-16719, STA-16720)
@nwparker
nwparker merged commit 6fc8e9b into main Nov 28, 2026
58 of 59 checks passed
@nwparker
nwparker deleted the fix/release-scan-267delta-slice-b branch November 28, 2026 07:51
AmethystLiang added a commit that referenced this pull request Nov 28, 2026
…status-lines

Conflict in connector-act.ts: main (#51597) kept a scheduled post out of the chat's own answer
inline, where this branch calls the shared connectorActionIntoThread. The exclusion moves into
that helper, so both of its callers keep it; connector-act keeps its own `scheduled` for the
request-post note below.
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