[Fix] Slack Pick fails with out-of-date when structured prompts refresh#506
Draft
roomote-roomote[bot] wants to merge 1 commit into
Draft
[Fix] Slack Pick fails with out-of-date when structured prompts refresh#506roomote-roomote[bot] wants to merge 1 commit into
roomote-roomote[bot] wants to merge 1 commit into
Conversation
Contributor
Author
|
1 issue outstanding. See task
Reviewed c508906 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related issue
N/A — internal Roomote work requested by a maintainer after investigating live Slack “prompt is out of date” failures.
Why this PR exists
What changed
Slack structured prompts no longer mint dead Pick buttons during OpenCode’s placeholder→real question stream:
Provide the requested input./ idresponse/ no options) are not posted to Slack or Linear, and no pending integration state is written for them.requestIdenrich re-post cannot update the original card in place, the old message is neutralized (or deleted if that update fails).questionIdbut the same index and a still-valid answer for the current question, Slack accepts it under the current question id instead of rejecting as out of date.How it was tested
pnpm --filter @roomote/worker exec vitest runforslack-mention,linear-agent, andrequest-user-inputcallback testspnpm --filter @roomote/slack exec vitest run src/__tests__/handle-followup-answer.test.tsoxlint, residual lint,check-types:fast, knip)Checklist
[Fix],[Feat],[Improve],[Refactor],[Docs], or[Chore]followed by a user-facing descriptionpnpm lintandpnpm check-typespass locallypnpm changeset