Skip to content

refactor(effect): extract session run state service#21744

Merged
kitlangton merged 3 commits intodevfrom
session-run-state-main
Apr 9, 2026
Merged

refactor(effect): extract session run state service#21744
kitlangton merged 3 commits intodevfrom
session-run-state-main

Conversation

@kitlangton
Copy link
Copy Markdown
Contributor

Summary

  • extract a new SessionRunState service to own prompt runner state per instance
  • route SessionRevert through SessionRunState instead of calling back into SessionPrompt.assertNotBusy()
  • keep the existing SessionPrompt API while moving the shared execution-state ownership downward

Testing

  • bun typecheck

@kitlangton kitlangton marked this pull request as ready for review April 9, 2026 19:50
@kitlangton kitlangton enabled auto-merge (squash) April 9, 2026 19:50
@kitlangton kitlangton disabled auto-merge April 9, 2026 20:03
@kitlangton kitlangton merged commit 10441ef into dev Apr 9, 2026
9 of 10 checks passed
@kitlangton kitlangton deleted the session-run-state-main branch April 9, 2026 20:03
timrichardson pushed a commit to timrichardson/opencode that referenced this pull request Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant