Skip to content

fix(tui): clear graph spinner after spawn_graph_extraction#1926

Merged
bug-ops merged 1 commit intomainfrom
1924-graph-spinner-cleared
Mar 16, 2026
Merged

fix(tui): clear graph spinner after spawn_graph_extraction#1926
bug-ops merged 1 commit intomainfrom
1924-graph-spinner-cleared

Conversation

@bug-ops
Copy link
Copy Markdown
Owner

@bug-ops bug-ops commented Mar 16, 2026

Problem

The TUI status bar shows saving to graph... spinner indefinitely after each turn where graph extraction is triggered. The spinner was never cleared because spawn_graph_extraction() is fire-and-forget and returns immediately.

Fix

Add let _ = self.channel.send_status("").await; immediately after spawn_graph_extraction() in maybe_spawn_graph_extraction(). Also rename the status message from "extracting graph..." to "saving to graph..." to better reflect the async/background nature of the operation.

Changes

  • crates/zeph-core/src/agent/persistence.rs: +2 lines, 2-line diff

Test plan

  • cargo +nightly fmt --check — PASS
  • cargo clippy --workspace --features full -- -D warnings — PASS
  • cargo nextest run --workspace --features full --lib --bins — PASS (6053 passed)

Closes #1924

@bug-ops bug-ops enabled auto-merge (squash) March 16, 2026 18:36
@github-actions github-actions bot added documentation Improvements or additions to documentation rust Rust code changes core zeph-core crate bug Something isn't working size/XS Extra small PR (1-10 lines) labels Mar 16, 2026
The "saving to graph..." status was set before spawning the background
extraction task but never cleared, leaving the TUI spinner visible
indefinitely. Add send_status("") immediately after the fire-and-forget
spawn to reset the status bar.

Also rename the status message from "extracting graph..." to
"saving to graph..." to better reflect that the work is async.

Closes #1924
@bug-ops bug-ops force-pushed the 1924-graph-spinner-cleared branch from c0a9961 to 501e479 Compare March 16, 2026 18:46
@bug-ops bug-ops merged commit 4542703 into main Mar 16, 2026
20 checks passed
@bug-ops bug-ops deleted the 1924-graph-spinner-cleared branch March 16, 2026 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working core zeph-core crate documentation Improvements or additions to documentation rust Rust code changes size/XS Extra small PR (1-10 lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(tui): "extracting graph..." spinner never cleared after spawn_graph_extraction

1 participant