Skip to content

refactor(plugin): scope context hook to session#37175

Merged
thdxr merged 1 commit into
v2from
session-context-hook
Jul 15, 2026
Merged

refactor(plugin): scope context hook to session#37175
thdxr merged 1 commit into
v2from
session-context-hook

Conversation

@opencode-agent

Copy link
Copy Markdown
Contributor

Summary

  • move the mutable model context hook from ctx.ai to ctx.session
  • rename the hook from request to context
  • update Effect/Promise plugin APIs, built-ins, docs, and tests

Tests

  • bun test test/plugin-hooks.test.ts test/plugin/promise.test.ts test/session-runner.test.ts (packages/core)
  • bun test test/tool-patch.test.ts test/tool-subagent.test.ts (packages/core)
  • bun typecheck (packages/core)
  • bun typecheck && bun test (packages/plugin)

@thdxr thdxr merged commit f92d847 into v2 Jul 15, 2026
9 checks passed
@thdxr thdxr deleted the session-context-hook branch July 15, 2026 20:32
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