fix(web): label only the first prompt row with the working directory

A multi-line command repeated the cwd label on every prompt row, which
states something the view does not know: it carries ONE working directory —
where the call started — and a `cd` in the command moves later lines
elsewhere. `cd ~` then `ls` rendered both rows labelled with the session
workspace while `ls` actually listed the home directory.

The label now appears on the first row only, and later rows keep a bare `$`
so they still read as prompts. Same reasoning as the run-state dot: neither
a per-line directory nor a per-line exit status exists to report.

The built-bundle snapshot records the effect on fixture turn 60's two-line
command (`fixture echo done` becomes `$ echo done`).
This commit is contained in:
Chinesezjc
2026-07-29 12:10:34 +08:00
parent eba81fe1f2
commit 0f70886e0c
9 changed files with 26 additions and 10 deletions

View File

@@ -264,7 +264,7 @@ it('the fallback row reaches the same card through its expand control', async ()
],
"prompt": [
"fixture ls -la",
"fixture echo done",
"$ echo done",
],
"runState": "done",
"runStateLabel": "已完成",