Skip to content

Improve @ attachments perf #1611

Merged
dgageot merged 1 commit intodocker:mainfrom
krissetto:fast-at-attach
Feb 5, 2026
Merged

Improve @ attachments perf #1611
dgageot merged 1 commit intodocker:mainfrom
krissetto:fast-at-attach

Conversation

@krissetto
Copy link
Contributor

And get fs browsing off the render thread, so we don't hang the TUI in large or deeply nested dirs

When running the TUI in my home ~/ dir, cpu would get pinned, ram would be eaten up and the whole TUI would lock up

Screencasts

before:

Screencast.From.2026-02-05.14-32-10.mp4

after:

Screencast.From.2026-02-05.14-34-04.mp4

@krissetto krissetto requested a review from a team as a code owner February 5, 2026 13:37
rumpl
rumpl previously approved these changes Feb 5, 2026
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Review Summary

Found 1 issue that should be addressed:

Medium Severity

  • Context cancellation error handling doesn't reset loading state, which can leave the UI stuck showing "Loading…" when file loading is cancelled

The rest of the code looks good! The async loading implementation is well-structured with proper context handling and goroutine cleanup.

…dirs

Signed-off-by: Christopher Petito <chrisjpetito@gmail.com>
@dgageot dgageot merged commit 2b886d3 into docker:main Feb 5, 2026
7 of 8 checks passed
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.

3 participants