refactor: remove unused internal helpers and state (#5667)
* refactor: remove unused internal helpers and state * test(tui): await deferred submissions before reconnect attach
This commit is contained in:
1 parent
f37ba60ed4
commit
63cc5f270d
11 files changed
+12
-118
No files matched your search
@@ -104,18 +104,6 @@ function projectUserMessage(media: readonly UserMessageMedia[]): UserMessageProj
|
||||
return { imageLabels, attachmentNames }
|
||||
}
|
||||
|
||||
export function userMessageText(
|
||||
content: string,
|
||||
media: readonly UserMessageMedia[] = [],
|
||||
displayContent?: string,
|
||||
): string {
|
||||
const { imageLabels, attachmentNames } = projectUserMessage(media)
|
||||
return [
|
||||
displayContent ?? [content, imageLabels.join(" ")].filter(Boolean).join(" "),
|
||||
attachmentNames.length ? `Attachments: ${attachmentNames.join(", ")}` : "",
|
||||
].filter(Boolean).join("\n")
|
||||
}
|
||||
|
||||
/** Projects gateway events into retained, reflowable conversation cells. */
|
||||
export class Transcript {
|
||||
readonly root: ScrollBoxRenderable
|
||||
|
||||
Reference in new issue
Block a user