Skip to content

refactor(session): destroy SessionRunState facade#22064

Merged
kitlangton merged 12 commits intodevfrom
worktree-agent-a7cb5136
Apr 12, 2026
Merged

refactor(session): destroy SessionRunState facade#22064
kitlangton merged 12 commits intodevfrom
worktree-agent-a7cb5136

Conversation

@kitlangton
Copy link
Copy Markdown
Contributor

@kitlangton kitlangton commented Apr 11, 2026

Summary

  • Removed makeRuntime and assertNotBusy facade from SessionRunState
  • Converted the delete-message handler in server/routes/session.ts to wrap the entire body in Effect.gen, yielding both SessionRunState.Service and Session.Service from context
  • Updated session-actions.test.ts to make the session actually busy via ensureRunning instead of spying on the deleted facade

Verification

  • bun run typecheck — clean
  • bun run test test/server/session-actions.test.ts — 2/2

@kitlangton kitlangton force-pushed the worktree-agent-a7cb5136 branch from 5830aef to 5cda6cc Compare April 11, 2026 23:35
@kitlangton kitlangton merged commit 1a509d6 into dev Apr 12, 2026
7 of 9 checks passed
@kitlangton kitlangton deleted the worktree-agent-a7cb5136 branch April 12, 2026 00:01
mrsimpson pushed a commit to mrsimpson/opencode that referenced this pull request Apr 14, 2026
xywsxp pushed a commit to xywsxp/opencode that referenced this pull request Apr 24, 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