singularity-forge/packages/pi-coding-agent/src/modes/interactive
Jeremy 9ffde91020 test(tui): regression test for pinned latest-output duplication
Extract the post-tool text-block selection logic into a small pure
helper (`findLatestPinnableText`) so the regression scenario can be
covered without standing up the full interactive controller harness.
The new test pins the bug from #4120: when content blocks are
`[text1, tool1, text2_streaming]`, the helper must return `text1`
(not `text2`), because `text2` is still streaming live into the chat
container and mirroring it would render the same tokens twice.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-13 08:20:24 -05:00
..
components feat(tui): improve gsd overlays, shortcuts, and notification flows 2026-04-12 09:13:46 -05:00
controllers test(tui): regression test for pinned latest-output duplication 2026-04-13 08:20:24 -05:00
theme fix(tui): comprehensive TUI review — layout, flow, rendering, and state fixes 2026-03-29 09:04:56 -05:00
utils refactor: deduplicate toPosixPath, ZERO_USAGE, and shortenPath utilities 2026-03-19 14:55:30 -03:00
interactive-mode-state.ts fix(tui): restore pinned output above editor during tool execution 2026-04-11 15:53:29 -04:00
interactive-mode.ts feat(tui): improve gsd overlays, shortcuts, and notification flows 2026-04-12 09:13:46 -05:00
slash-command-handlers.ts feat(tui): improve gsd overlays, shortcuts, and notification flows 2026-04-12 09:13:46 -05:00