You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/providers/opencode.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,10 @@ Per `<sessionId>:<messageId>`.
26
26
27
27
-**Schema validation is loud.** When a required table is missing, the parser logs an actionable warning telling the user which table is gone and what version of OpenCode it expects. This is the right behavior; do not silently swallow these.
28
28
- Source paths are encoded as `<dbPath>:<sessionId>`.
29
+
- Discovery only emits root sessions (`parent_id IS NULL`) to avoid double
30
+
counting. Parsing a root session walks the unarchived `session.parent_id`
31
+
subtree, so child and grandchild agent sessions contribute their message,
32
+
token, and tool usage back to the root session.
29
33
- Each message's `parts` are indexed; preserving the order matters for reasoning-token correctness.
30
34
- Tokens are reported across `input`, `output`, `reasoning`, `cache.read`, and `cache.write`. Anthropic semantics.
31
35
- External MCP tools are stored as `<server>_<tool>` names (for example
0 commit comments