Repository navigation
feat(core): make self-paced /loop lean on monitor/background-task notifications #5844
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
wenshao
merged 10 commits into
QwenLM:main
from
qqqys:feat/loop-monitor-fallback-heartbeat
Jun 25, 2026
+67
−10
Merged
Changes from 6 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
1f185e4
feat(core): make self-paced /loop lean on monitor/background-task not…
qqqys dae2e3c
Merge remote-tracking branch 'upstream/main' into automation/5844-loo…
qqqys 49091d8
fix(core): clarify loop task notifications
qqqys 1575172
fix(core): clarify loop notification wakeups
qqqys db93f36
fix(core): preserve loop restart count
qqqys 487cd55
fix(core): clarify monitor-owned loop notifications
qqqys 096021c
fix(core): persist loop restart count guidance
qqqys 9aec4ad
fix(core): include monitor command in notifications
qqqys 25bf763
fix(core): cap ambiguous loop follow-ups
qqqys 3433744
test(core): cover loop fallback cleanup guidance
qqqys File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Suggestion] The "restart it once" guidance assumes the model can (a) track that it already restarted across ticks 1200–1800s apart, and (b) reconstruct the original monitor command. Both are fragile:
reasonfield or the continuation prompt so it survives compaction.<task-notification>XML emitted bymonitorRegistry.ts(emitTerminalNotification) includes<task-id>,<status>,<event-count>, and<summary>— but not the originalcommand. The<summary>contains only the truncateddescription(≤80 chars), not a runnable command. After context compaction, the model may not be able to reconstruct the exact command to restart.Consider adding the original
commandto the terminal notification XML so the model has it available for restart without relying on conversation history.— qwen3.7-max via Qwen Code /review