Skip to content

v2.2.4: cold-start file-open opens only the clicked file - #33

Merged
Silverfell merged 2 commits into
mainfrom
dev
Jun 29, 2026
Merged

v2.2.4: cold-start file-open opens only the clicked file#33
Silverfell merged 2 commits into
mainfrom
dev

Conversation

@Silverfell

Copy link
Copy Markdown
Owner

Bumps 2.2.3 -> 2.2.4.

Fix

resolve_startup_windows waits a 100ms grace after RunEvent::Ready, then returns early when startup_opened_file is set. A Launch Services / Finder file-open launch (had_cli_args=false) delivers its file via RunEvent::Opened, which can land just after Ready; observing it here lets the launch open ONLY the clicked file by skipping session restore and the welcome window.

  • App-icon launch (no Opened) → restores saved session (unchanged)
  • File double-click, app closed → only that file (was also restoring full session)
  • File double-click, app open → new window (unchanged)
  • CLI launch → skips via had_cli_args (unchanged)

Verify

cargo fmt && cargo check exit 0. Local unsigned 2.2.4 bundle built. Launch Services not unit-testable; manual smoke for the three cases.

🤖 Generated with Claude Code

Silverfell and others added 2 commits June 24, 2026 14:17
Real sha256 for both DMGs from the published Release; pushed to the tap
via update-cask.sh. Records the v2.2.3 release in CHANGES.md.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
resolve_startup_windows now waits a 100ms grace after RunEvent::Ready, then
returns early when startup_opened_file is set. A Launch Services / Finder
file-open launch (had_cli_args=false) delivers its file via RunEvent::Opened,
which can land just after Ready; observing it here lets the launch open ONLY
the clicked file by skipping session restore and the welcome window.

Plain app-icon launch (no Opened) still restores the saved session; CLI launch
still skips both via had_cli_args. Bump 2.2.3 -> 2.2.4.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Silverfell
Silverfell merged commit f992b36 into main Jun 29, 2026
6 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.

1 participant