Skip to content

fix(tui): resolve resume project root off the event loop - #565

Merged
emal-avala merged 1 commit into
mainfrom
fix/resume-project-root-off-event-loop
Jul 29, 2026
Merged

fix(tui): resolve resume project root off the event loop#565
emal-avala merged 1 commit into
mainfrom
fix/resume-project-root-off-event-loop

Conversation

@emal-avala

Copy link
Copy Markdown
Member

Summary

  • finish_cwd_adoption awaited project_root_for on the event-loop future after chdir, freezing redraw/Ctrl+C on slow mounts or large repos.
  • Resolve the root in the existing resume spawn_blocking preflight (with config load), using the one async detector via Handle::block_on — no sync twin.
  • finish_cwd_adoption is now sync and takes a precomputed root.

Fixes #551.

Test plan

  • Marker walk over a deep temp tree
  • Structural: finish_cwd_adoption does not call project_root_for / resolve_resume_project_root
  • Settings still win over markers
  • clippy / fmt clean
  • CI green

finish_cwd_adoption awaited project_root_for on the sole event-loop
future after chdir, so a slow git rev-parse or marker walk froze redraw
and Ctrl+C. Resolve the root in the existing resume spawn_blocking
preflight (same task as config load) and pass it in; adoption itself is
now synchronous and does no filesystem detection.
@emal-avala

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: 9c9c3c3090

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@emal-avala
emal-avala merged commit a5816ae into main Jul 29, 2026
15 checks passed
@emal-avala
emal-avala deleted the fix/resume-project-root-off-event-loop branch July 29, 2026 07:46
@emal-avala emal-avala mentioned this pull request Jul 29, 2026
7 tasks
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.

Project-root resolution blocks the TUI event loop during a cross-project resume

1 participant