Skip to content

feat(view)!: run worktree-overview status providers off the main loop - #364

Merged
dlyongemallo merged 1 commit into
mainfrom
worktree_move_status_providers_off_main_loop
Oct 14, 2026
Merged

dlyongemallo merged 1 commit into
mainfrom
worktree_move_status_providers_off_main_loop

Conversation

@dlyongemallo

Copy link
Copy Markdown
Owner

Part of #334.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Async results can reorder unpredictably, and the primary delayed-callback behavior lacks coverage.

4 open findings
What changed in this PR

Moves worktree status collection to an asynchronous callback-based provider API.

Changes:

  • Adds concurrent provider collection, timeout handling, and stale-result guards.
  • Updates functional tests and provider documentation.
File Description
worktree_overview_view.lua Implements asynchronous status collection.
worktree_overview_hooks_spec.lua Adapts provider tests to callbacks.
doc/​diffview.txt Documents the new provider contract.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread lua/diffview/scene/views/worktree_overview/worktree_overview_view.lua Outdated
Comment thread doc/diffview.txt Outdated
Comment on lines +69 to +72
local provider = function(e, done)
calls[#calls + 1] = e.path
if e.path == linked then
return "working"
done("working")
Comment thread doc/diffview.txt Outdated
@dlyongemallo
dlyongemallo force-pushed the worktree_move_status_providers_off_main_loop branch from dbe546b to b86a32b Compare October 14, 2026 05:33
@dlyongemallo
dlyongemallo merged commit 5e9083a into main Oct 14, 2026
8 checks passed
@dlyongemallo
dlyongemallo deleted the worktree_move_status_providers_off_main_loop branch October 14, 2026 06:26
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