Skip to content

perf: defer update notice version lookup - #179

Merged
jiminu merged 2 commits into
mainfrom
codex/lazy-update-notice
Aug 29, 2026
Merged

perf: defer update notice version lookup#179
jiminu merged 2 commits into
mainfrom
codex/lazy-update-notice

Conversation

@jiminu

@jiminu jiminu commented Aug 29, 2026

Copy link
Copy Markdown
Owner

Summary

  • defer current-version lookup until a non-empty update cache is present
  • preserve update notices, stale-cache cleanup, and background refresh scheduling
  • cover cache-absent, cache-empty, newer, and stale cached-version paths

Verification

  • bash tests/common_zsh_test.bash
  • zsh -n config/shared/zsh/update-notice.zsh
  • shfmt -d -i 2 -ci tests/common_zsh_test.bash
  • git diff --check
  • base benchmark, 30 iterations; cached interactive p50/p95 were lower in this local run (informational only)

Note

bash scripts/check.sh was attempted, but local test_editor_workflow_options_and_keymaps failed due an untrusted user Mise config (~/.config/mise/conf.d/selfishell.toml). The update-notice suite passed.

@jiminu
jiminu merged commit 70f81fd into main Aug 29, 2026
7 checks passed
@jiminu
jiminu deleted the codex/lazy-update-notice branch August 29, 2026 08:56
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.

1 participant