Skip to content

[P0][hang] vscode 主题 source 后交互会话失去执行能力(输入回显但不再执行)+ prompt-machinery eval 报语法错 #425

Closed

Description

@caomengxuan666

Found by wt92/harvest smoke run (oh-my-bash themes/vscode/vscode.theme.sh, artifact E:/eco-harvest/tmp/vscode-theme.sh). Owner-adjacent: 同类卡死报告第二例(codeword/gitline 见 #182,已修;本单是不同根因的第三例)。

Repro(ConPTY -i):source 该主题 → prompt 退化为 '~ $'、输入回显但永远不再执行;GNU bash source rc=0 正常。分片 bisect:主题两半各自都让 prompt-machinery 的 eval 报 syntax error near unexpected token '&&'——主题的 PROMPT_COMMAND 片段经引擎的 prompt-machinery eval 路径时被拒。

双层问题:①prompt-machinery eval 对该主题片段的解析分歧(GNU eval 接受);②解析失败后输入执行管线进入不可恢复态(回显在、执行死)——②即使①修了也要防其他主题触发。

Activity

  1. caomengxuan666 commented on Oct 5, 2026

    @caomengxuan666
    MemberAuthor

    wt97b/hres re-verified on FRESH master (niu 1.3.4 @ 04d7b7f, debug build 2026-10-05): still reproduces. ConPTY -i, source oh-my-bash themes/vscode/vscode.theme.sh -> niu: line 1: syntax error near unexpected token '&&' at source, prompt renders degraded as <cwd> $ (theme PS1 partially applied), then input echo-only. GNU bash 5.3.0 renders the same theme's prompt fully (colors + ➜, commands execute).

    Also from the same triage: layer-② (回显在、执行死) is reachable WITHOUT any PROMPT_COMMAND/PS1 involvement — a 3-line eval -- "$( … $( … | sed … ) … )" file (argcomplete nox.bash shape) wedges the session deterministically on fresh master. Filed as #436 so layer-② can be fixed independently of the theme fragment parse.

  2. added
    P0-critical
    on Oct 9, 2026
  3. caomengxuan666 commented on Oct 9, 2026

    @caomengxuan666
    MemberAuthor

    wt98b/goldtri fresh-master retest (branch wt98b/goldtri @ a157656, release build): ohmybash/oh-my-bash/themes/vscode/vscode.theme.sh now passes the full ConPTY journey (source wall + prompt + ENTER + ENTER; verdict OK). The wt97b wedge (syntax error near '&&' in the PS1 backtick command substitution during PS1 eval) no longer reproduces on master — the theme sources and renders clean. Evidence: D:/repo/rubash-wt-goldtri/target/goldtri/retest-results.jsonl (triage lane wt98b/goldtri). Candidate for closure.

  4. caomengxuan666 commented on Oct 9, 2026

    @caomengxuan666
    MemberAuthor

    Confirmed no longer reproduces on fresh master (fa87622+): wt98b/goldtri retest passed the vscode theme end-to-end; evidence comment from wt97b + this retest together close it. The layer-2 unrecoverable-state class is tracked by #436 (fixed 567acfd).

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

    P0-critical

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions