Repository navigation
fix(tmux): 按启动目录定位诊断会话的服务端 - #4116
Open
Han-wangyu wants to merge 1 commit into
Open
Han-wangyu wants to merge 1 commit into
Han-wangyu wants to merge 1 commit into
Conversation
Han-wangyu
requested review from
47seek,
LucasIcarus,
deepcoldy,
xiaoxueSunn and
xiongz-c
as code owners
November 30, 2026 18:12
Owner
|
你好,这个 PR 的自动评审群已建,麻烦点击链接加入群聊、查看评审意见并跟进后续修改: 另外你暂时不在自动拉群名单里,也可以把 GitHub 账号和飞书信息补进名单文档,补好后后续评审会自动拉你进群:https://bytedance.larkoffice.com/wiki/WJ1nwWbtxi89erkNGNbcgkt9nUe (本条为自动流程发出的提示消息) |
This branch has not been deployed
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.
Closes #3604
命令行启动失败时,Botmux 会把错误留在 tmux 的诊断终端里。如果
TMUX_TMPDIR是相对路径,工作进程和 CLI 的启动目录可能各有一个同名 tmux server。原来清理旧诊断会话和配置新会话时沿用了工作进程的目录,导致错误终端留不下来,还可能关闭另一个 server 上的同名会话。现在诊断会话的预检和创建使用同一启动目录;清理旧会话时使用按这个目录解析的 socket,配置鼠标、状态栏等选项也沿用创建时的目录。
验证
bun scripts/fenced-run.ts -- bun x vitest run test/tmux-strict-rel-root.test.ts test/tmux-backend-input.test.ts test/tmux-socket-root.test.ts test/tmux-anti-fork.test.ts,26 项通过。bun run build通过。