Commit Graph

11 Commits

Author SHA1 Message Date
Lyon b0f36a3789 feat: persist workbench session inputs (#2175) 2026-06-26 05:10:24 +08:00
Lyon e98b3e2f17 fix: add workbench aggregate event stream (#2064) 2026-06-24 20:04:21 +08:00
Lyon b254c1875e feat: PJ2026-0104010803 P1 durable projection outbox + DB constraints + error visibility (#1754)
DB migration (0001_cloud_core_skeleton.sql):
- Add (trace_id, source_event_id) unique index on workbench_trace_events
- Add (trace_id, projected_seq) unique index on workbench_trace_events
- Add workbench_projection_outbox table with BIGSERIAL outbox_seq

Schema (schema.ts):
- Bump CLOUD_RUNTIME_DURABLE_ADAPTER_SCHEMA_VERSION to v5
- Add workbench_projection_outbox to CLOUD_RUNTIME_DURABLE_TABLE_COLUMNS

Runtime store (runtime-store.ts):
- Add persistWorkbenchProjectionOutbox method
- Add readWorkbenchProjectionOutbox method for SSE cursor replay
- Write outbox rows in writeWorkbenchFacts for trace events and terminal turns
- Outbox write errors are logged, not silently swallowed

Trace store (code-agent-trace-store.ts):
- persistTraceEvent no longer uses .catch(() => {}) to swallow errors
- Projection write errors are logged with traceId/sourceEventId for diagnostics
- Sync errors also logged instead of empty catch block

SPEC headers updated to draft-2026-06-20-p1-zero-split-durable-realtime

Closes #1747
Refs #1742
2026-06-20 19:29:44 +08:00
lyon 6dd02cabc7 feat: add durable workbench facts store 2026-06-20 08:45:51 +08:00
lyon 3f83852f60 fix: persist workbench projection cursor 2026-06-19 21:20:11 +08:00
lyon 4500fb6486 feat(workbench): 持久化 Code Agent trace 投影 2026-06-17 11:58:07 +08:00
Codex Agent 3e7131f6ab refactor: converge hwpod node-ops channel 2026-06-05 17:23:56 +08:00
Lyon 48e3d24ad6 fix: converge v02 authorization on OpenFGA (#899)
Co-authored-by: Codex Agent <codex@hwlab.local>
2026-06-05 11:11:15 +08:00
Codex b7285b30b1 feat(workbench): share account workspace across web and cli 2026-06-01 21:31:26 +08:00
Codex 671303d2b9 feat: add v02 access device pod authority 2026-05-29 02:15:55 +08:00
Codex a0869c5afa refactor: migrate v02 cloud api to TypeScript 2026-05-29 00:33:22 +08:00