Merge PR #5511: fix(tui): anchor Kitty images through tmux (@roboomp)

This commit is contained in:
can1357
2026-07-14 23:11:09 +02:00
10 changed files with 215 additions and 49 deletions
@@ -280,7 +280,7 @@ export class ChatTranscriptBuilder {
hideThinkingBlock,
() => this.deps.requestRender(),
this.deps.getMessageRenderer ? undefined : [], // placeholder for thinkingRenderers
undefined, // placeholder for imageBudget
this.deps.ui.imageBudget,
proseOnlyThinking,
);
this.container.addChild(assistantComponent);
@@ -352,8 +352,9 @@ export class ChatTranscriptBuilder {
content.name,
content.arguments,
{
// Images can't be sliced through the scroll viewport; keep them off.
showImages: false,
// Stable ids and Kitty placeholder cells keep images anchored
// while the transcript viewport scrolls and reflows.
showImages: settings.get("terminal.showImages"),
editFuzzyThreshold: settings.get("edit.fuzzyThreshold"),
editAllowFuzzy: settings.get("edit.fuzzyMatch"),
liveRegion: this.container,