Skip to content

[FEATURE]:Prompt for pending todo updates when a session is about to finish #22059

@ahmedfe

Description

@ahmedfe

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Problem: When an agent finishes a session while there are still pending or in-progress todos, the todo list can be left in a stale state with items marked as pending or in_progress even though the work was completed.

Proposed behavior: Before finishing a session, the agent should check if there are any unfinished todos (pending or in_progress status) and, if found, inject a synthetic reminder prompting the agent to update the todo list to reflect the current state of the work.

Details:

After the agent produces a final response and before the session ends, the system should inspect the session's todo list
If unfinished todos exist, a synthetic user message should be appended listing them, asking the agent to reconcile the list
The reminder should be suppressed if a similar reminder was already the last user message (avoiding loops)
The agent should then continue processing to update the todo statuses before the session truly ends

Metadata

Metadata

Assignees

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)discussionUsed for feature requests, proposals, ideas, etc. Open discussion

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions