Skip to content

fix(timeline): make Agent-created timelines visible on the canvas - #699

Open
barkly1te wants to merge 2 commits into
ThinkFlowLab:mainfrom
barkly1te:codex/a3-timeline
Open

barkly1te wants to merge 2 commits into
ThinkFlowLab:mainfrom
barkly1te:codex/a3-timeline

Conversation

@barkly1te

@barkly1te barkly1te commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Why

Refs #632. A3 reproduces when an Agent runs editor.create with a timeline. The command saves the document and returns applied. The user opens the canvas and has no node to open.

What changed

  • Add timeline.create to the shared command catalog so the Agent and CLI can create a visible timeline in one call.

  • Commit the editor document and its canvas node together through the existing editor and canvas rules. The receipt identifies both objects, replay returns the original receipt, and a node ID collision rejects the write.

  • Point visible creation to timeline.create in command discovery and document the workflow in English and Chinese.

  • Register the two Agent test modules added by [perf] agent: gate wait snapshots, avoid job-show project reads, unify discovery, and surface wait outcomes (#449) #681 in the Python shard manifest. The same inventory assertion failed on the base and the previous PR head.

Tradeoffs

editor.create still serves document-only workflows. The canvas node has its own ID and points to the original editable document. Downgrading a project that recorded timeline.create requires a backup from before the command ran.

Verification

  • On 4cd524ce, all five new cases fail at command discovery or schema validation. On 2c946cfd, 249 related Python tests and 1,118 frontend tests pass. The production build, contract generation, import boundaries, i18n, and whole-diff pre-commit checks pass.
  • Playwright and Chrome exercised CLI creation, canvas open, edit and save, API restart, reopen, and a second save. Also verified the existing UI creation path and Chinese canvas open, save, and reopen. The full-creation journey uses a model double. No real provider calls were made.
  • Before screenshot · Fixed canvas · Reopened editor · Playable workflow MP4 · Inputs, receipts, and test commands
  • On 42b825d6, the shard inventory and related Python modules pass with 109 passed and 3 skipped on Windows. All 1,118 frontend tests, the production build, generated contracts, i18n, and whole-diff pre-commit hooks pass.
  • On 42b825d6, Chrome repeated CLI creation, the first save at 25 fps, API restart, reopen at 25 fps, and a second save at 30 fps. The linked recording and screenshots identify 2c946cfd. Only the shard manifest differs between those two commits.
  • Release checks, CodeQL, and DSH passed on 42b825d6. The Release checks aggregate passed the full Python shard audit.
  • Independent pre-review scored 93/100 with no blocking findings. Base 4cd524ce5ddcd331ea47dd5bf494230f17f64014. Head 42b825d6317e98259b39084b0bb0cb66d142b40a. The remaining validation gap was the pending hosted checks.
  • Independent re-review scored 100/100 and recorded a PASS on the same base and head after all 17 GitHub checks passed.

## summary

- Add timeline.create to commit the editor document and canvas node together.
- Expose the shared command through the Agent and CLI and cover replay,
  rollback, and browser editing after reopening.

Refs: ThinkFlowLab#632

@david6666666 david6666666 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WITHHOLD 2c946cf Refs #632

当前证据暂定 93/100,非批准分(范围 3、正确性 3、验证 2、主张证据 3、简洁度 3)。我下载并看了三张截图和 7.625 秒录像,核对了 7 个证据文件的 Git blob 和两个 JSON。旧版回执只有编辑文档,新版同时有画布节点;同一文档保存到 25 fps,重开仍是 25,再保存到 30。示例用合成素材,没有真实 provider 请求,也不是我在安装包里重跑。

timeline.create 把可见节点和可编辑文档一起提交,原 editor.create 保留为只建文档,符合 A3。对应测试覆盖重开后的 replay 和节点碰撞回滚。版本回退限制已写入 CLI 文档。同版 Release 的 core 仍因基线两项漏登记失败;不归因于时间线代码。等基线修复与当前候选 CI,不投票。Dot,代表 @david6666666。

## summary

Add the trace reconciliation and wait outcome modules to the Agent CLI
shard so the inventory includes every test module exactly once.

@david6666666 david6666666 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PASS 42b825d Refs #632

100/100,非表决(范围 3、正确性 3、验证 3、主张证据 3、简洁度 3)。未发现需要修改的问题。这版相对已看过演示的 2c946cfd 只改 shard manifest,timeline 行为文件未变。timeline.create 一次写入可见节点和可编辑文档;现有 editor.create 仍是 document-only。之前下载的七份材料对齐旧 head,实际看到了 25 fps 保存、重开后保持、再改到 30 fps;没有真实模型调用的主张。

同 SHA Release checks 12 项全绿,CodeQL / DSH 也通过。我核对了 #700 的 default core 改动:与本 PR 的显式 agent-cli 登记不冲突,GitHub 目前显示可合并;无须只为落后一提交追 main。没有独立重跑浏览器。

Dot,代表 @david6666666。Coordinator: 按仓库流程核对当前 main 和合入资格。

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants