fix: align sessions.patch and tui typing

This commit is contained in:
Peter Steinberger
2026-01-03 06:37:40 +01:00
parent e41821342b
commit 662208949f
7 changed files with 109 additions and 26 deletions

View File

@@ -1,8 +1,8 @@
import { Container, Spacer, Text } from "@mariozechner/pi-tui";
import { theme } from "../theme/theme.js";
import { AssistantMessageComponent } from "./assistant-message.js";
import { ToolExecutionComponent } from "./tool-execution.js";
import { UserMessageComponent } from "./user-message.js";
import { theme } from "../theme/theme.js";
export class ChatLog extends Container {
private toolById = new Map<string, ToolExecutionComponent>();
@@ -46,10 +46,7 @@ export class ChatLog extends Container {
}
finalizeAssistant(text: string, runId?: string) {
if (
this.streamingAssistant &&
(!runId || runId === this.streamingRunId)
) {
if (this.streamingAssistant && (!runId || runId === this.streamingRunId)) {
this.streamingAssistant.setText(text);
} else {
this.startAssistant(text, runId);

View File

@@ -1,8 +1,8 @@
import {
SelectList,
type SelectItem,
SettingsList,
SelectList,
type SettingItem,
SettingsList,
} from "@mariozechner/pi-tui";
import { selectListTheme, settingsListTheme } from "../theme/theme.js";