Skip to content

fix: keep pending-input runs alive until callbacks settle#97

Closed
kesslerio wants to merge 2 commits into
pwrdrvr:mainfrom
kesslerio:fix/plan-pending-input-lifecycle
Closed

fix: keep pending-input runs alive until callbacks settle#97
kesslerio wants to merge 2 commits into
pwrdrvr:mainfrom
kesslerio:fix/plan-pending-input-lifecycle

Conversation

@kesslerio
Copy link
Copy Markdown

What

  • keeps active runs registered while pending input still exists
  • restores an active run if questionnaire input arrives after the original settle path
  • adds lifecycle logs for deferred cleanup and callback misses

Why
The first questionnaire prompt could be shown to the user, then fail on submission because the run had already been cleaned up. This branch fixes that race, but the work was later folded into #95 with broader follow-up coverage.

Tests

  • pnpm test src/controller.test.ts
  • pnpm typecheck
  • pnpm test

AI Assistance

  • Codex used for implementation and testing.

@kesslerio
Copy link
Copy Markdown
Author

Superseded by #95. The follow-up lifecycle fixes and the broader regression coverage were moved there so the questionnaire/run-cleanup work stays in one PR.

@kesslerio kesslerio closed this Apr 12, 2026
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.

1 participant