Commit Graph

19 Commits

Author SHA1 Message Date
root ce83ffdf49 feat: make Kafka projector the Workbench realtime authority 2026-07-10 05:23:21 +02:00
Lyon d0a00abfce fix(workbench): 用 agent session 上下文补齐 durable 投影 sessionId (#2013)
* fix(workbench): pass projection context to message writer

* fix(workbench): resolve session id from agent session context
2026-06-24 05:02:06 +08:00
Lyon db6e889009 fix(workbench): pass projection context to message writer (#2012) 2026-06-24 04:38:15 +08:00
lyon cf13bf80a9 fix: contain postgres projection timeouts 2026-06-21 03:45:23 +08:00
lyon bcc8aa189b fix: stabilize workbench timing diagnostics 2026-06-21 02:56:19 +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 e79ea2cb42 feat: persist workbench projection facts 2026-06-20 08:57:21 +08:00
lyon 02989a8237 fix: preserve workbench message whitespace 2026-06-19 15:40:12 +08:00
lyon e1899dab91 fix: freeze terminal code agent traces 2026-06-17 21:18:55 +08:00
lyon 74f5f1773d feat: track agentrun event visible latency 2026-06-17 18:45:19 +08:00
lyon 4500fb6486 feat(workbench): 持久化 Code Agent trace 投影 2026-06-17 11:58:07 +08:00
lyon 06df7d17b0 fix: expose code agent prompt metadata 2026-06-15 16:14:01 +08:00
lyon f2614ad521 fix: align trace rendering stream 2026-06-15 15:41:47 +08:00
Codex 93b53e7d56 fix: expose AgentRun prompt assembly trace details 2026-06-02 21:11:27 +08:00
Codex 936884bdc1 fix: reduce AgentRun trace noise for HWLAB CLI 2026-06-02 00:48:38 +08:00
Codex 3d10fd275b feat: 接入 AgentRun v0.1 adapter 2026-06-01 17:06:11 +08:00
Codex bbc3f8dca8 fix: isolate codex stdio turn routing 2026-06-01 00:24:20 +08:00
Codex 6af815bda1 fix: 修复 v0.2 Device Pod 右栏与助手消息 2026-05-31 16:24:44 +08:00
Codex a0869c5afa refactor: migrate v02 cloud api to TypeScript 2026-05-29 00:33:22 +08:00