[Feat] Add merged and closed PR status to task history#243
Merged
Conversation
Write terminal PR status changes into linked task history as out-of-band messages so agents get the same context path used for review notifications.
Contributor
Author
|
No new code issues found. Both earlier findings are resolved in
Reviewed 9ad7420 |
Contributor
Author
|
Fixed both open review findings in
Tests updated/passed for the recorder. |
Use Date.now() for status-history timestamps so concurrent terminal events do not share a second, and format GitLab/ADO PR references with provider- native shorthand instead of always using #.
8 tasks
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
Internal work from Slack (no tracked issue).
Why this PR exists
What changed
When a linked pull request is merged or closed, Roomote now writes that terminal status into the owning task's transcript history as an out-of-band assistant message — the same resurfacing mechanism already used for PR review-feedback notifications.
PR_STATUS_NOTIFICATION_TASK_MESSAGE_SOURCEto the out-of-band message sources so the next agent turn can re-surface the change.recordPrStatusChangeInTaskHistoryin the SDK with Redis per-task dedup against webhook retries.!n) and Azure DevOps (PR n) references with provider-native shorthand.Existing platform merge chat notifications are unchanged; this path only fills the agent-context gap for status in task history.
How it was tested
record-pr-status-change.test.ts), including provider reference formatting and wall-clock timestampslint:fast,check-types:fast, andknippassed on pushChecklist
[Fix],[Feat],[Improve],[Refactor],[Docs], or[Chore]followed by a user-facing descriptionpnpm lintandpnpm check-typespass locallypnpm changeset