feat(plugins): propagate session context to plugin hooks - #65188
feat(plugins): propagate session context to plugin hooks#65188Gerkinfeltser wants to merge 4 commits into
Conversation
84c0e4a to
57d486b
Compare
57d486b to
bf4877a
Compare
|
Thanks for porting this across the current lifecycle boundaries. The premise is confirmed on current main: Problems
Suggested changes
This is an automated hermes-sweeper review. |
|
Addressed in fcbb165.\n\n- Documented optional keyword-only |
SummarySix PRs address adjacent gaps in the plugin extension surface: #38548 and #38645 add API-server route/capability hooks, #40839 adds executable plugin-command discovery and dispatch on that stack, #58538 consolidates plugin documentation, #61127 exposes opted-in plugin tools across messaging toolsets, and #65188 propagates live and stable session context through hooks and commands. Related pull requests
Duplicates#38548 and #38645 substantially implement the same plugin API-server route/capability extension; leave closed #38548 as the narrower duplicate of #38645. #40839 includes #38645 because it is stacked, but its executable-command delta is distinct; #58538, #61127, and #65188 are not duplicates. Suggested consolidationKeep #38645, #58538, #61127, and #65188 open with the concrete salvage paths represented by their current diffs and visible keep_open reviews; leave #38548 closed as a duplicate of #38645. Author action for #40839: rebase onto main, or split out the executable-command registry and POST /v1/commands/{name} delta from its #38645 foundation; no merge recommendation is supported by the recorded n/a verdicts. Cross-PR triage: Reviewed 6 pull requests and 0 issues in this complex. Each diff was read against this issue; Assessment working set: 287 kB of PR diffs, 16 kB of issue/PR text, 12 kB of discussion (13 comments), 0 verify verdicts. verdicts reflect diff content, not PR titles. Part of an automated triage batch. |
|
Closing this. The gap it originally targeted is largely gone and what remains is being carried by other PRs.
This branch is also 4.9k commits behind main with merge conflicts, and half its diff now duplicates shipped behavior. If the generic capability is wanted later it can be rebuilt on current main from the salvageable parts (command-handler session kwargs, hook gateway key). |
Supersedes
Supersedes #42416, which targeted obsolete lifecycle boundaries and is being closed in favor of this current-main port.
Implementation
gateway_session_keythrough the currentturn_context.pyandresolve_pre_tool_block()paths.session_idseparately from the stable gateway key across CLI, gateway, and both TUI command routes.asyncio.Future, in native gateway plugin dispatch.Local verification
tool-slimmer.git diff --check, compilation, and Ruff pass.Draft status
Kept as a draft while CI and independent final review complete. The repository canonical test wrapper cannot start locally because this worktree has no required local
.venvorvenv.