Skip to content

feat(messages): keep only actionable issues in the inbox - #418

Merged
fcoury merged 3 commits into
mainfrom
fcoury/actionable-messages
Oct 23, 2026
Merged

fcoury merged 3 commits into
mainfrom
fcoury/actionable-messages

Conversation

@fcoury-oai

Copy link
Copy Markdown
Collaborator

Routine feedback such as search misses, clipboard delivery notices, and background LSP errors currently accumulates in Messages. That makes the inbox noisy and obscures problems the user still needs to address.

This change reserves :messages for unresolved actionable issues. Routine feedback expires in the status line, successful clipboard transport is silent, and background LSP diagnostics go to logs. Stable issue keys coalesce repeated failures; producers resolve issues when the condition clears, while Enter explicitly dismisses them. Reading an issue alone does not resolve it.

Shell and update output moves to :jobs, where users can inspect retained output and cancel running shell commands without creating inbox obligations. Plugins gain owner-scoped PublishIssue/ResolveIssue and RPC equivalents in the existing pending host API 0.21.0. Agent interruptions and durable save, configuration, recovery, and restart problems use the actionable path. See docs/MESSAGES.md for the behavior and plugin protocol docs for migration details.

How to Test

  1. Open a scratch file, search for a missing pattern, and enter an invalid command. Feedback should appear briefly; :messages should remain empty.
  2. Run :!printf job-output. Jobs should show the output. Close it, check that :messages remains empty, then reopen :jobs and confirm the output is retained.
  3. Modify the scratch file and run :saveas <an-existing-directory>. Open :messages: one save issue should explain how to recover. Repeat the failed save and confirm it updates the same issue. Reading it should not clear it. Save successfully with :w or :saveas <valid-file> and confirm the issue disappears.
  4. Run the focused tests with cargo test --lib editor::notifications and cargo test --lib ui::messages. These cover transient feedback, issue coalescing/resolution, Jobs isolation, and RPC ownership/remedy validation.

Validation

Formatting and diff checks passed. In an isolated compatibility build, notification tests (28), Messages UI tests (5), binary tests (23), all-target/all-feature Clippy, executable self-check, and the manual TUI scenarios above passed. The library run passed 2,750 tests; its one failing subprocess test and two filtered home-path tests passed individually with the required process/filesystem access (three other tests ignored).

Production-lock validation remains outstanding: the configured local registry lacks locked zip 9.0.4, blocking Clippy before compilation. Compatibility validation used zip 9.0.3, Wasmtime 48.0.5, and TLS patches only in an isolated source copy. This PR leaves the production manifests and lockfile unchanged; those local results do not establish a passing production-lock build.

@fcoury
fcoury merged commit 7776ac8 into main Oct 23, 2026
27 of 29 checks passed
@fcoury
fcoury deleted the fcoury/actionable-messages branch October 23, 2026 02:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants