Skip to content

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

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

barkly1te wants to merge 3 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.

Tradeoffs

editor.create still creates a document on its own. The canvas node has a separate ID and links to the editable document. To open a project in an older version after it records timeline.create, use a backup from before the command ran.

Verification

  • All five A3 regression cases fail on 3d5a6e76 because CLI discovery and the command schema lack timeline.create. On 01339fc4, 114 related Python tests passed and 3 were skipped on Windows. The shard inventory accounts for all 173 modules exactly once.
  • All 1,136 frontend tests and the production build passed on 01339fc4. Generated contracts, i18n, and whole-diff pre-commit checks passed.
  • Chrome on 01339fc4 verified CLI creation, the canvas node, saving at 25 fps, API restart, reopening at 25 fps, and a second save at 30 fps. The linked browser recording predates the merge. It uses synthetic media and makes no provider calls.
  • Before screenshot · Fixed canvas · Reopened editor · Browser recording · Inputs, receipts, and reproduction steps
  • The merge uses the Python shard manifest from main after [bugfix] ci: route unlisted python test modules to default core shard #700 and [feat] audio: add Volcengine Ark Seed Audio 1.5 text-to-audio adapter #661. The manifest assigns trace queries to media and wait outcomes to agent-cli.
  • Release checks, CodeQL, and DSH passed on 01339fc4. The Release checks aggregate passed the full Python shard audit.
  • Independent pre-review scored 93/100 with no blocking findings. Base 3d5a6e76953c8d153d2fe5110af39c3a93bc2c76. Head 01339fc4e16cde5417efddb3e3b8d6884dd73739. 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 和合入资格。

@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 42b825d Refs #632

当前证据暂定 93/100,非批准分(范围 3、正确性 3、验证 2、主张证据 3、简洁度 3)。上一轮的 timeline 行为审查和同 SHA 的 green CI 都不变;新变化是 #661 合入后 GitHub 对当前 main 报实际冲突。三方文本核对确认冲突在 scripts/ci/python_shards.json,不是 timeline 代码,也不是单纯落后 main。保留 main 的默认 core、trace 在 media、wait 在 agent-cli 的单一归属;按解决后实际 head 核对 CI。

Dot,代表 @david6666666。

Comment thread scripts/ci/python_shards.json Outdated
"tests/test_pi_runtime.py",
"tests/test_skill_snapshot.py"
"tests/test_skill_snapshot.py",
"tests/test_trace_job_queries.py",

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.

同一文件在 #661 已把 trace 分给 media、wait 分给 agent-cli。当前 GitHub 报冲突;三方文本核对也确认是这里。建议保留 main 的两个明确归属,不重复登记 trace。timeline 产品改动本身不需要为这件事改逻辑。

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks, resolved.

## summary

Use main's Python shard manifest with the default core shard, trace
queries in media, and wait outcomes in agent-cli.

@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 01339fc Refs #632

Dot,代表 @david6666666。

100/100,非表决(范围 3、正确性 3、验证 3、主张证据 3、简洁度 3)。上轮的实际冲突已修复:我核对了新 head,python_shards.json 与当前 main 字节一致,trace 留在 media,wait 留在 agent-cli。合并后 timeline.create 仍在一次提交里创建画布节点和可编辑文档,editor.create 仍只建文档。无需要修改的发现。

Ran: 核对该 SHA 的 Release checks 12/12、CodeQL 和 DSH,全绿。作者另提供该 SHA 的 Chrome 创建、保存和重开结果;我此前下载并看过合并前的录像和回执,没有把它们当成这次的独立重跑。
Not run: 本地浏览器、桌面安装包或真实 provider 重跑。

Conflict resolved; exact-head Release, CodeQL and DSH are green. This is a non-voting review.

Coordinator: 待仓库 Coordinator 接手;本评审不提交正式批准或合并。

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