Files
openclaw/src/tui/components/markdown-message.ts
Vincent Koc 51d6d7013f fix(tui): preserve pending sends and busy-state visibility (#59800)
* fix(tui): preserve pending messages across refreshes

* fix(tui): keep fallback runs visibly active

* fix(tui): expose full verbose mode and reclaim width

* refactor(tui): drop stale optimistic-send state

* test(tui): drop unused state binding

* docs(changelog): add tui beta note

* fix(tui): bound fallback wait and dedupe pending restore

* fix(tui): preserve queued sends and busy-state visibility

* chore(changelog): align tui pending-send note

* chore(changelog): refine tui release note
2026-04-03 20:39:55 +09:00

21 lines
627 B
TypeScript

import { Container, Spacer } from "@mariozechner/pi-tui";
import { markdownTheme } from "../theme/theme.js";
import { HyperlinkMarkdown } from "./hyperlink-markdown.js";
type MarkdownOptions = ConstructorParameters<typeof HyperlinkMarkdown>[4];
export class MarkdownMessageComponent extends Container {
private body: HyperlinkMarkdown;
constructor(text: string, y: number, options?: MarkdownOptions) {
super();
this.body = new HyperlinkMarkdown(text, 0, y, markdownTheme, options);
this.addChild(new Spacer(1));
this.addChild(this.body);
}
setText(text: string) {
this.body.setText(text);
}
}