-
Notifications
You must be signed in to change notification settings - Fork 1.1k
feat(agent-core-v2): include the prompt in turn.started for goal continuations #3077
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -42,6 +42,10 @@ export function turnPromptText( | |
|
|
||
| export function isDisplayablePromptOrigin(origin: PromptOrigin): boolean { | ||
| if (origin.kind === 'user') return true; | ||
| // Goal continuations surface as a visible prompt bubble in chat UIs (like a | ||
| // cron fire), so the prompt text must travel with turn.started for the live | ||
| // view to render it — history already carries it on the persisted message. | ||
| if (origin.kind === 'system_trigger') return origin.name === 'goal_continuation'; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When an automatic goal continuation occurs in a live session, this makes its long internal model instruction become Useful? React with 👍 / 👎. |
||
| return ( | ||
| (origin.kind === 'skill_activation' || origin.kind === 'plugin_command') && | ||
| origin.trigger === 'user-slash' | ||
|
|
||
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.
When the root
pnpm lintruns,scripts/check-no-comments.mjsscans bothpackages/agent-core-v2/srcandtestand rejects these ordinary comments; the second newly added comment block atloop.test.ts:802-803fails for the same reason. Remove both blocks or express the intent through naming.AGENTS.md reference: packages/agent-core-v2/AGENTS.md:L36-L39
Useful? React with 👍 / 👎.