Skip to content

fix: pause blocked goal inspection loops - #48

Open
selimerunkut wants to merge 1 commit into
fitchmultz:mainfrom
selimerunkut:fix/pause-blocked-goal-inspection-loop
Open

fix: pause blocked goal inspection loops#48
selimerunkut wants to merge 1 commit into
fitchmultz:mainfrom
selimerunkut:fix/pause-blocked-goal-inspection-loop

Conversation

@selimerunkut

Copy link
Copy Markdown

Summary

Fixes #47.

An active goal can repeatedly requeue hidden continuations when the model is blocked and each run only calls get_goal before returning the same blocked summary. Because the goal remains active and incomplete, agent_end keeps calling maybeContinue(), creating an unbounded loop.

This change:

  • detects runs whose only tool calls are get_goal or namespaced pi__get_goal;
  • pauses the active goal with a clear user-attention reason instead of queuing another continuation;
  • leaves normal runs with actionable tool calls unchanged;
  • adds regression coverage and a changelog entry.

The goal remains incomplete and can be resumed explicitly after the user supplies the missing approval or decision.

Validation

  • npm run verify
    • TypeScript typecheck passed.
    • Platform-smoke checks passed: 6/6.
    • Full test suite passed: 330/330.
  • git diff --check passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pause blocked active goals that only re-inspect goal status

1 participant