Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@four-bytes/four-opencode-brain",
"version": "1.6.0",
"version": "1.6.1",
"description": "Unified brain plugin — single SQLite DB for RAG search, memory, and knowledge base",
"license": "Apache-2.0",
"type": "module",
Expand Down
12 changes: 12 additions & 0 deletions src/status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ export function updateStatus(state: StatusState, opts?: StatusOpts): void {
phase: "idle",
statusText: opts?.text ?? "",
busy: false,
scanning: false,
searching: false,
ingesting: false,
});
if (opts?.toast && _client) {
_client.tui.showToast({ body: { title: "Brain 🧠", message: opts.toast, variant: opts.toastVariant ?? "success", duration: 5000 } });
Expand All @@ -131,6 +134,9 @@ export function updateStatus(state: StatusState, opts?: StatusOpts): void {
phase: "idle",
statusText: opts?.text ?? "",
busy: false,
scanning: false,
searching: false,
ingesting: false,
});
if (opts?.toast && _client) {
_client.tui.showToast({ body: { title: "Brain 🧠", message: opts.toast, variant: opts.toastVariant ?? "warning", duration: 5000 } });
Expand All @@ -142,6 +148,9 @@ export function updateStatus(state: StatusState, opts?: StatusOpts): void {
phase: "idle",
statusText: opts?.text ?? "error occurred",
busy: false,
scanning: false,
searching: false,
ingesting: false,
});
if (opts?.toast && _client) {
_client.tui.showToast({ body: { title: "Brain 🧠", message: opts.toast, variant: "error", duration: 7000 } });
Expand All @@ -153,6 +162,9 @@ export function updateStatus(state: StatusState, opts?: StatusOpts): void {
phase: "idle",
statusText: "",
busy: false,
scanning: false,
searching: false,
ingesting: false,
});
break;
}
Expand Down
2 changes: 1 addition & 1 deletion src/tui.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ function BrainStatusBar(props: { centered?: boolean; api: TuiPluginApi }) {
<box flexDirection="row">
<text fg={theme().textMuted}>🧠 {version()} </text>
{busy() ? <Spinner fg={fg()} /> : <text fg={fg()}>{indicator()}</text>}
<text fg={busy() ? fg() : theme().textMuted}> {status()}</text>
<text fg={theme().textMuted}> {status()}</text>
</box>
);

Expand Down
Loading