Skip to content

Commit edfe3be

Browse files
committed
chore(web): remove unused truncated recovery state
The 'truncated' kind in TerminalReplayUiState was declared in the union but never produced by any setReplayUiState call site, and the matching zh/en locale strings were dead. Now that 'snapshot success counts as success' is the intended semantic (no partial-history notice needed), drop the unreachable branch, type member, and locale entries to shrink the state space.
1 parent ecb28dd commit edfe3be

3 files changed

Lines changed: 2 additions & 7 deletions

File tree

packages/web/src/features/terminal-panel/replay-state.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ export type TerminalReplayUiState =
2626
| { kind: "closed" }
2727
| { kind: "unavailable" }
2828
| { kind: "recovery_check_failed" }
29-
| { kind: "truncated" }
3029
| { kind: "retryable_failure"; reason: "timeout" | "failed" }
3130
| { kind: "failed"; reason: "timeout" | "failed" }
3231
| { kind: "unrecoverable_history"; reason: "too_old_no_snapshot" };

packages/web/src/locales/en.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -356,9 +356,7 @@
356356
"unknown_body_with_provider": "This terminal session is no longer present on the server. Reopen a {provider} session to continue?",
357357
"closed_title": "This session has ended",
358358
"closed_body": "Reopen a new session to continue?",
359-
"closed_body_with_provider": "Reopen a {provider} session to continue?",
360-
"truncated_title": "Terminal history is partial",
361-
"truncated_body": "Older output has already fallen out of the replay buffer, but new output will continue to stream."
359+
"closed_body_with_provider": "Reopen a {provider} session to continue?"
362360
}
363361
},
364362
"file": {

packages/web/src/locales/zh.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -356,9 +356,7 @@
356356
"unknown_body_with_provider": "这个终端会话已经不在服务端。是否重新打开一个 {provider} 会话继续?",
357357
"closed_title": "当前会话已结束",
358358
"closed_body": "是否重新打开一个新会话继续。",
359-
"closed_body_with_provider": "是否重新打开一个 {provider} 会话继续。",
360-
"truncated_title": "历史内容不完整",
361-
"truncated_body": "较早的终端输出已被回放缓冲区淘汰,后续输出仍会继续显示。"
359+
"closed_body_with_provider": "是否重新打开一个 {provider} 会话继续。"
362360
}
363361
},
364362
"file": {

0 commit comments

Comments
 (0)