功能:为关联对话提供可复制的 Codex 恢复命令 - #131
Open
MrMaii wants to merge 1 commit into
Open
Conversation
Contributor
Author
|
CI 复核完成:
Windows job 唯一 annotation 来自 main 当前仍使用的 upload-artifact v4 / Node.js 20;与本 PR 无关,独立 PR #129 已修复该项。 该 PR 已转为 Ready for review。 |
MrMaii
marked this pull request as ready for review
August 13, 2026 03:07
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
GitHub Issue #33 的最新评论提出:任务被 Agent 认领后,除跳转按钮外,还应展示可复制的会话标识;对 Codex 来说,完整的
codex resume <SESSION_ID>命令更便于 CLI、无侧边栏和跨窗口场景继续会话。当前任务详情已经显示完整
threadId,但用户只能点击跳转,不能直接取得可执行的恢复命令。Refs #33
真实操作路径
taskctl写操作把当前CODEX_THREAD_ID记录到任务或评论。threadId。codex resume <threadId>,并播报复制成功。改动
codex resume <threadId>,不缩短会话标识。onCopy/navigator.clipboard.writeText成功与错误处理。用户影响
验证
codex resume --help确认支持codex resume [SESSION_ID] [PROMPT]。threadId的任务详情,点击“复制命令”,捕获写入值为codex resume 019ff27c-67d5-7702-a1ae-81caf865e5da。npm run typecheck:通过。npm run build:web:通过。node --test test/board-interactions.test.mjs:15/15 通过。范围说明
本 PR 只交付 Issue #33 所述的 Codex 恢复命令第一阶段。当前任务数据没有 Agent 类型,无法可靠生成 Claude、Grok 或其他 Agent 的恢复命令,因此本 PR 不使用
Closes #33,总议题继续保持开放。