Skip to content

Commit 3497735

Browse files
author
Eva
committed
docs(plugins): align RFC F run-context sketch with packet shape
Per copilot review on plan-mode-plugin-host-hooks.md:389-390 — the index page sketch took an explicit `runId` parameter while the RFC packet itself (docs/plan/plan-mode-plugin-host-hooks-rfc.md:1022-1027) defines the contract as implicitly scoped to the current run via `set/get(key)`. Align the index page with the packet so readers don't see two different shapes for the same proposed contract.
1 parent 68b7ea4 commit 3497735

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/plugins/plan-mode-plugin-host-hooks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,8 +386,8 @@ Expose safe agent event subscriptions and run-context storage:
386386

387387
```ts
388388
api.onAgentEvent("tool_result", handler);
389-
ctx.runContext.set(runId, "example", value);
390-
ctx.runContext.get(runId, "example");
389+
ctx.runContext.set("example", value);
390+
ctx.runContext.get("example");
391391
```
392392

393393
Add scheduler lifecycle helpers tied to session extension state:

0 commit comments

Comments
 (0)