Repository navigation
fix(repo): 清理缺目录首条消息经文本 /repo 开工后的 workingDirRecovery 残留与裸 /repo 提示 (#2176) - #2188
Merged
deepcoldy merged 1 commit intoOct 23, 2026
Merged
Conversation
nengqi
requested review from
47seek,
LucasIcarus,
deepcoldy,
xiaoxueSunn and
xiongz-c
as code owners
October 23, 2026 04:48
Owner
|
感谢 @nengqi 的贡献!PR 已 squash 合入 master( 本次修复:
|
This was referenced Oct 23, 2026
|
🚀 Released in v3.51.0 |
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.
Summary
清理 #2168 合入后在「首条消息因默认目录缺失被拒」状态下通过文本
/repo处理时的两个收尾项(Fixes #2176):forkPendingCli成功提交后清理workingDirRecovery(src/core/command-handler.ts):commitRepoSelection(src/im/lark/card-handler.ts)对齐,在markRepoCardConsumed及清理current.repoCardMessageId = undefined时同步清理current.workingDirRecovery = undefined。/repo返回缺目录选仓提示而非 Codex App 未结算报错(src/core/command-handler.ts):ds && !ds.pendingRepo && !repoArg && onlyUnstartedOpeningHolds(ds))时,发送不带参数的裸/repo直接回复worker.working_dir_missing_opening_text引导使用/repo <路径|项目名>,不再落入hasProtectedSessionMutationOwnership(ds)误报「当前 Codex App 仍有未结算消息」。Test Plan
bun run test test/command-handler.test.ts test/card-handler-repo-select.test.ts test/test-hygiene.test.ts(628 passed)npx tsc --noEmit(0 errors)