Repository navigation
fix(workspace): /cd 后将会话归入目标工作区 - #25
Merged
Merged
Conversation
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.
/cd已将新会话的 cwd 切到目标目录,但 WorkspaceLinker 和两个消息入口仍只按默认目录挂接。真实 DSH 会拒绝 cwd 不匹配的显式归属,因此会话留在 Web 的「未分组」。本修复将 Bridge 按会话作用域解析的 cwd 同时用于创建会话和选择工作区。Fixes #14
/cd影响。attach(sessionId)仍使用默认目录。/cd reset、/new、/model use/reset、恢复、已加载补装、未注册目录、其他会话隔离和历史迁移。复现与验证
基线:
592f5dda6896b3d7d1aeacf5acf9cf58c55f707a(0.9.1)。本地 macOS,Node 26.4.0 / pnpm 11.7.0。corepack pnpm install --frozen-lockfilecorepack pnpm run ciscripts/check-pack.mjs均通过;tarball 247 files / 1,119,578 bytes unpacked9f7149173d6735bf1ce2e416da3ccfa5423b0897的第 2 次尝试全部 8 项检查成功;含真实工作区 smoke真实宿主 smoke 的安装和运行命令见 CONTRIBUTING.md。原工作区未提交改动已保留,修复在独立工作区完成。风险集中在工作区解析和挂接,默认调用保留;可通过回退本 PR 恢复原行为。
首次 GitHub CI 的 macOS 完整套件为 302 通过、1 失败:既有
digital-employee-a2ui-fallback.test.mjs的卡片审批用例期望allowed-once,实际unavailable,新增工作区用例全部通过。该既有用例在干净 main 和修复分支上各单独复跑 3 次均通过,未稳定复现,因此不将首次失败计作通过或直接归因于环境。本次未改该用例及其 A2UI 实现;同一提交的 macOS 完整任务重跑成功,首次失败记录保留。Ubuntu 完整套件 303/303、0 skip;Windows 266 通过、0 失败、34 项既有平台 skip(本次未新增 skip)。发布验证
已合入 main:
ada4d0ffcf6b7b94ce86805af59522de1f5d8c33,合并源码与已验证 PR 提交一致。main CI 全部成功。通过官方 OIDC workflow 发布 0.9.2;NPM latest、gitHead、repository、公开 CLI、tarball SHA-512 与导出入口、provenance 的产物摘要及仓库/工作流/提交来源均已独立读回验证。发布任务 第 2 次尝试成功;首次读回在 NPM 包处理期间超时,记录为失败,包公开后重跑通过。真实钉钉/Web GUI 端到端尚未验收。