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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user