Skip to content

feat: add ExecuteOnStartup configuration option and wizard prompt - #16

Merged
starpia-forge merged 1 commit into
mainfrom
feature/execute-on-startup-13866448791882675491
Mar 8, 2026
Merged

feat: add ExecuteOnStartup configuration option and wizard prompt#16
starpia-forge merged 1 commit into
mainfrom
feature/execute-on-startup-13866448791882675491

Conversation

@starpia-forge

Copy link
Copy Markdown
Owner

This PR implements the requested feature to add an option that controls whether the configured command executes automatically when the program starts.

  • Adds ExecuteOnStartup boolean configuration parameter.
  • Updates the interactive tui_wizard configuration screen to include a confirmation prompt for this setting.
  • Alters the poller background worker to respect this setting. When ExecuteOnStartup is false, it assigns the initial hash but does not emit a change detection event, so the execution is deferred until a real change happens in the git repository.
  • Updates tests to verify the behavior for both true and false values of this new setting.

PR created automatically by Jules for task 13866448791882675491 started by @starpia-forge

This commit introduces a new configuration option, `ExecuteOnStartup`,
which allows the user to choose whether the command should be executed
unconditionally when the application starts or only when a subsequent
Git repository change is detected.

Changes made:
- Added `ExecuteOnStartup` boolean to `config.Config`.
- Updated `tui_wizard` to prompt the user with "Execute command on startup
  regardless of git state?" using `huh.NewConfirm`.
- Updated `poller` logic to skip sending the initial `UpdateDetectedMsg`
  if `ExecuteOnStartup` is false.
- Added and updated tests in `poller_test.go` to cover the new behavior.

Co-authored-by: starpia-forge <157299292+starpia-forge@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@starpia-forge
starpia-forge merged commit 39ec31c into main Mar 8, 2026
2 checks passed
@starpia-forge
starpia-forge deleted the feature/execute-on-startup-13866448791882675491 branch March 8, 2026 07:20
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