[PR #13806] core: add persisted task graph and runtime task metrics #14815

Closed
opened 2026-02-16 18:19:34 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/13806

State: closed
Merged: No


Summary

  • add persisted task-graph schema/tables (task_node, task_dependency, task_metrics, state_snapshot, dead_letter) and generated migration
  • shadow-write session todos into task graph, and expose read APIs for graph/metrics (GET /session/:sessionID/graph, GET /session/:sessionID/metrics)
  • persist runtime metrics from session processor for LLM steps and tool calls; add config flags for enable/disable and retention with scheduled cleanup

Verification

  • cd packages/opencode && bun test --timeout 30000
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/13806 **State:** closed **Merged:** No --- ## Summary - add persisted task-graph schema/tables (`task_node`, `task_dependency`, `task_metrics`, `state_snapshot`, `dead_letter`) and generated migration - shadow-write session todos into task graph, and expose read APIs for graph/metrics (`GET /session/:sessionID/graph`, `GET /session/:sessionID/metrics`) - persist runtime metrics from session processor for LLM steps and tool calls; add config flags for enable/disable and retention with scheduled cleanup ## Verification - `cd packages/opencode && bun test --timeout 30000`
yindo added the pull-request label 2026-02-16 18:19:34 -05:00
yindo closed this issue 2026-02-16 18:19:34 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14815