Skip to content

[REQ-125][CODE] LocalPTY 同步 command/cwd 供终端脚条环境段 #579

Closed

Description

@jinjunnn

Parent requirement: #538

背景

REQ-125 #576 交付终端脚条时勘破:脚条「环境名」段真值 = 服务端 Pty.Info.command/cwd(packages/schema/src/pty.ts 的 Pty.Info),但客户端 LocalPTY(packages/app/src/context/terminal.tsx)只同步 title、丢弃 command/cwd —— 生产路径无法显示环境段。#576 已把环境段从其 AC 除名(见 #576 评论),深底 + 尺寸段 + .git 过滤已交付。

负责 AC

  • AC2 子项:终端脚条环境段与已批稿一致(SW §term:脚条 = 运行状态 · 环境 · 尺寸)。

边界

  • 上游 packages/app/src/context/terminal.tsx 的 LocalPTY + PTY 同步窄改:从服务端 Pty.Info 补 command/cwd(或其一)进 store,经 ADR-034 pin+patch 通道(SOT frontend/alpha-patches/alpha-frontend.patch)。
  • alpha 适配器 terminal-engine-adapter-core.ts 的 terminalFootStatus 投影该字段为 shell(缺数据不伪造);terminal-engine-adapter.tsx 经 TerminalEnginePTY 结构透传。
  • 窄面若需扩(surface 透出新类型)随 ADR-027 修订 + seam 契约测试同步。

out-of-scope

  • PTY 提示符主机名化妆(采集侧处理)。

退出条件

  • 终端脚条环境段在生产路径真实显示(非仅测试注入);双主题验证;既有终端测试全绿。

🤖 Generated with Claude Code

Activity

  1. added a commit that references this issue on Jul 24, 2026
  2. added a commit that references this issue on Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:featureNew user or system capability

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions