feat: standardized elision markers and improve transcript viewer robustness

- Standardized elision markers across all tool outputs and filters to use cohesive `[...N [type] elided...]`, `[...Nln elided...]`, and `[...xB elided...]` syntax.
- Updated documentation, prompts, and test expectations to reflect the unified elision format.
- Improved transcript viewer robustness by preventing content aliasing through path-inclusive signature hashing.
- Added logic to clear stale transcript content when associated session files are deleted, accompanied by verifying test cases.
This commit is contained in:
can1357
2026-06-19 04:35:18 +02:00
parent b6c099275d
commit c224ef4df5
50 changed files with 328 additions and 262 deletions
+1 -1
View File
@@ -90,7 +90,7 @@ export function truncateToWidth(
const safeWidth = Number.isFinite(maxWidth) ? Math.max(0, Math.trunc(maxWidth)) : 0;
// Fast path: every UTF-16 unit is at most 3 cells wide, so a string whose
// `length * 3` already fits within `safeWidth` cannot need truncation.
if (!pad && text.length * 3<= safeWidth) {
if (!pad && text.length * 3 <= safeWidth) {
return text;
}
let resolvedEllipsis: Ellipsis | null | undefined | string = ellipsisKind;