DashboardopencodeLLM session boundary

LLM session boundary

Category: architecture
Confidence: 1.00
ID: 01a0b36d-cc68-75bb-87d7-79364678b45d
Project ID: c0425955-02bc-4c17-9af2-b114c00077e7
Cross-project: No
Recalled in other projects: 0
Source session: 0EioAV9gm2frcmoFX
Created: 2026-09-18 07:31:52
Updated: 2026-09-18 07:31:52

Content

Chose a session-independent packages/llm over embedding session policy in provider or transport code because the LLM package must remain reusable and protocol-focused. Session auth, permissions, plugins, telemetry headers, and runtime selection belong in packages/opencode/src/session/llm.ts and local adapters; pushing them into packages/llm looks convenient but reverses ownership and couples transport to orchestration.

Move to: