Skip to content

Commit 6187fc9

Browse files
committed
fix(ui): align rebased chat render checks
1 parent f30f410 commit 6187fc9

3 files changed

Lines changed: 8 additions & 9 deletions

File tree

‎ui/src/pages/chat/chat-pane-layout-render.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ type ChatPaneLayoutRenderParams = {
3838
sessionWorkspace: SessionWorkspaceProps;
3939
backgroundTasks: BackgroundTasksProps;
4040
chatProps: ChatProps;
41-
fullMessageLoader: SidebarFullMessageLoader;
41+
fullMessageLoader: SidebarFullMessageLoader | null;
4242
observerDigest: SessionObserverDigest | null;
4343
observerRunId: string | null;
4444
catalog: boolean;

‎ui/src/pages/chat/chat-pane-task-suggestions.ts‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,10 @@ export abstract class ChatPaneTaskSuggestions extends ChatPaneSharing {
4747
return;
4848
}
4949
const offset = direction === "next" ? 1 : -1;
50-
const next = this.taskSuggestions[
51-
(current + offset + this.taskSuggestions.length) % this.taskSuggestions.length
52-
];
50+
const next =
51+
this.taskSuggestions[
52+
(current + offset + this.taskSuggestions.length) % this.taskSuggestions.length
53+
];
5354
if (!next) {
5455
return;
5556
}

‎ui/src/pages/chat/components/chat-task-suggestions.ts‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,7 @@ function renderChatTaskSuggestions(props: {
9494
? props.activeId
9595
: props.suggestions[0]?.id;
9696
return html`
97-
<div
98-
class="task-suggestions ${multiple ? "task-suggestions--stack" : ""}"
99-
aria-live="polite"
100-
>
97+
<div class="task-suggestions ${multiple ? "task-suggestions--stack" : ""}" aria-live="polite">
10198
${props.suggestions.map((suggestion, index) => {
10299
const busy = props.busyIds.has(suggestion.id);
103100
const title = sanitizeTaskSuggestionText(suggestion.title);
@@ -191,7 +188,8 @@ function renderChatTaskSuggestions(props: {
191188
requestAnimationFrame(() => updateTaskSuggestionPathFade(element));
192189
}
193190
})}
194-
@scroll=${(event: Event) => updateTaskSuggestionPathFade(event.currentTarget as Element)}
191+
@scroll=${(event: Event) =>
192+
updateTaskSuggestionPathFade(event.currentTarget as Element)}
195193
>${cwd}</code
196194
>
197195
<pre>${prompt}</pre>

0 commit comments

Comments
 (0)