Repository navigation
启动期正常的 attach 跳过诊断默认只写日志文件,不再直写用户终端 - #3210
Conversation
…eractive terminal (#3200) Normal candidate filtering (probe drops, fingerprint/lane/port skips) is not user-actionable, but its default sink teed every line to stderr — on pi/omp/ dsh/opencode/kimi/zcode native lanes that stderr IS the TUI screen, and those host processes never call configureLogger, so the lines never reached bili.log either (terminal noise with no durable record). - launcher: new exported defaultAttachDiag(debug) — file-only via the shared host-safe channel (logHostEvent); explicit debug adds one controlled stderr copy for CLI contexts (all native lanes hard-code debug:false). Applied to both ensureProxyRunning and findLiveAttachableInstance (the latter was fully silent before — raw undefined sink). - host-log: empty origin allowed so the file line stays byte-identical to the legacy teeLog format (grep continuity, #1623 traceability). Message text unchanged everywhere. - User-actionable output untouched: gate refusals keep their console.error, spawn failures keep their visible channels; compatibility/lane/lifecycle logic unchanged. Tests: two hermetic XDG_STATE_HOME regressions pin 'reason in file + zero terminal bytes' (debug=false) and the single debug-gated stderr copy with the legacy head format; existing #1623 attach-diagnostic tests (injected sinks) unaffected and green. Closes #3200
📦 Built Package ArtifactBranch: Option A — Install this exact build (recommended)npm install -g billion-context@0.0.3688-pr.3210.e2d0262This exact version is immutable and reproducible. The rolling Option B — Download artifact
tar xzf billion-context-pr3210.tgz
npm install -g packageInstall instructions are refreshed on each push. |
[bot] 🏷 (ai: vllm-qwen/qwen3.8-27b) 查重: 不重复。 open+closed 全量检索(关键词 attach / diagnostic / native-attach skip / stderr):
这是 agent 自己开的 PR(带 |
(ai: vllm-qwen/qwen3.8-27b) 独立审完(diff 逐段 + 本地定向验证 + CI job 日志取证)。结论:代码本身可合并;CI 的 7 个红分片是 master 既有红风暴,与本 PR 无关(证据见末节)。 先交代一个补充动作:首轮 CI 时 结构化八问:
CI 状态(head fcd88e8):33 项绿(含全部 e2e lane:real codex/pi/opencode/dsh、registry、build-artifact、docs-sync、unused-exports、kernel/pi-subagents guard);7 个 test 分片红。逐 job 日志核对,红的只有两个固定签名:port-zone-live 判定:代码审查通过、可合;CI 红为 master 既有环境问题,等 #3212 收敛或自然绿轮即可(也可由你按上述证据裁决)。合并按规则由你执行:#3210 |
📦 Merged Build PublishedThis merge to master was published as npm install -g billion-context@0.0.439-master.0cd865b # this exact build
npm install -g billion-context@master # always the newest merged build
|
Closes #3200
做了什么
pi(及其他 native lane)启动时扫描实例注册表,正常筛选结果——指纹不匹配 / lane 不匹配 / 端口不匹配 / 进程已死候选——此前经默认
attachDiag = teeLog("info")直接写 stderr。宿主进程里 stderr 就是 TUI 屏幕,用户看到native-attach: skip ... incompatible (...)这类内部诊断,却没有任何需要处理的事项。本 PR 把这些诊断的默认输出去向改为只写日志文件(复用 #2841 的共享宿主安全渠道logHostEvent),显式 debug 时才追加一份受控 stderr 输出。行为变更(旧 → 新)
bili <client>)同上--debug/ACP_DEBUG=1时额外一行受控 stderr(行头格式与旧 teeLog 一致)findLiveAttachableInstance(zcode 退出交接 / watchdog 漂移修复)兼容性检查、lane 隔离、生命周期保护逻辑一律未动;诊断消息文本逐字节未变。
为什么这样修
logHostEvent(fix(#2831): route mid-session native-lane diagnostics to bili.log (shared host-safe helper) #2841)而非引入新回调:best-effort append、失败不炸宿主、按路径每次重开不受 rotation 影响;验证
config surface: 无。kernel: 无。