Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: run pre-run actions sequentially instead of simultaneously#82

Merged
matt2e merged 1 commit intomainfrom
matt2e/pre-run-actions-sequential
Feb 12, 2026
Merged

fix: run pre-run actions sequentially instead of simultaneously#82
matt2e merged 1 commit intomainfrom
matt2e/pre-run-actions-sequential

Conversation

@matt2e
Copy link
Contributor

@matt2e matt2e commented Feb 12, 2026

Refactors the action executor to run pre-run actions sequentially, waiting for each to complete before starting the next one.

Changes:

  • Extract shared logic into execute_inner which returns a oneshot::Receiver for completion signaling
  • Add execute_and_wait method that awaits the completion signal before returning
  • Update run_prerun_actions to use execute_and_wait so actions run one at a time
  • Keep the existing execute method unchanged for fire-and-forget usage

The run_prerun_actions function was calling executor.execute() which spawns
each action in a background thread and returns immediately. This caused all
prerun actions to run simultaneously rather than sequentially.

Changes:
- Add tokio::sync::oneshot import to executor.rs
- Refactor execute() into a private execute_inner() that returns both the
  execution ID and a oneshot::Receiver<()> for completion signaling
- The background completion thread now sends on the oneshot channel when done
- Add public execute_and_wait() method that awaits the completion signal
- Keep existing execute() method unchanged (drops the receiver, fire-and-forget)
- Update run_prerun_actions to use execute_and_wait so each action completes
  before the next one starts
@matt2e matt2e merged commit 11c3671 into main Feb 12, 2026
3 checks passed
@matt2e matt2e deleted the matt2e/pre-run-actions-sequential branch February 12, 2026 21:28
loganj added a commit that referenced this pull request Feb 26, 2026
feat: native features (menu, window, title bar)

Add native macOS experience with:
- Overlay title bar with hidden title for clean appearance
- Traffic light (close/minimize/maximize) positioning via tauri-plugin-decorum
- Application menu: Penpal, Edit, View (reload, devtools, fullscreen), Window
- Custom menu event handlers for reload and toggle devtools
- Sidecar spawn: launches Go server on startup, waits for ready
- Go template adjustments: data-tauri-drag-region on topbar, padding for traffic lights,
  Tauri detection via __TAURI__ global

Co-Authored-By: Claude Opus 4.6 <[email protected]>

feat: browser-style tabs, multi-window support, and app icons

Add tab bar below topbar with cmd-click to open links in new tabs,
middle-click to close tabs, and cmd+shift+click to open in new Tauri
window. Add Liquid Glass macOS icon via compiled Assets.car with
CFBundleIconName, favicon for browser mode, and updated all platform
icon assets.

Co-Authored-By: Claude Opus 4.6 <[email protected]>

fix: eliminate tab title flicker when opening new tab

Navigate directly to first workspace instead of going through /
and waiting for async IndexRedirect, which caused a visible
"Home" → workspace name flicker.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
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