mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-11 01:01:13 +00:00
* 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
21 lines
627 B
TypeScript
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);
|
|
}
|
|
}
|