Skip to content

Comments

fix: Inline Wizard SSH execution by propagating session custom path overrides#345

Merged
pedramamini merged 6 commits intoRunMaestro:mainfrom
rnwolfe:fix/inline-wizard-ssh-overrides
Feb 12, 2026
Merged

fix: Inline Wizard SSH execution by propagating session custom path overrides#345
pedramamini merged 6 commits intoRunMaestro:mainfrom
rnwolfe:fix/inline-wizard-ssh-overrides

Conversation

@rnwolfe
Copy link
Contributor

@rnwolfe rnwolfe commented Feb 11, 2026

Summary

The Inline Wizard creates a new ephemeral session but was failing to copy agent configuration overrides (specifically 'customPath') from the active session. This caused failures in SSH remote execution when the agent binary is not in the default PATH. This fix propagates 'customPath', 'customArgs', 'customEnvVars', and 'customModel' to the wizard process, ensuring the correct remote command is executed.

Changes

  • src/renderer/services/inlineWizardConversation.ts: Updated to accept and propagate session overrides to the process spawner.
  • src/renderer/hooks/batch/useInlineWizard.ts: Updated startWizard to accept sessionOverrides and store them in state.
  • src/renderer/App.tsx: Updated startInlineWizard calls to extract overrides from activeSession and pass them to the wizard.

fixes #343

@rnwolfe rnwolfe changed the title Fix Inline Wizard SSH execution by propagating session custom path overrides fix: Inline Wizard SSH execution by propagating session custom path overrides Feb 11, 2026
… execution

The Inline Wizard creates a new ephemeral session but was failing to copy agent configuration overrides (specifically 'customPath') from the active session. This caused failures in SSH remote execution when the agent binary is not in the default PATH. This fix propagates 'customPath', 'customArgs', 'customEnvVars', and 'customModel' to the wizard process, ensuring the correct remote command is executed.
@rnwolfe rnwolfe force-pushed the fix/inline-wizard-ssh-overrides branch from b1fe263 to 608ac80 Compare February 11, 2026 20:12
Added unit tests to verify that session-level overrides (customPath, customArgs, etc.) are correctly propagated through the useInlineWizard hook and the inlineWizardConversation service to the process spawner.
…t generation

The document generation phase of the Inline Wizard also spawns an agent process and was failing to inherit session-level configuration overrides. This fix ensures that 'customPath', 'customArgs', 'customEnvVars', and 'customModel' are passed to the document generation service, allowing it to execute correctly on SSH remotes with custom agent paths.
Added unit tests to verify that session-level overrides are correctly passed to the process manager during the document generation phase.
The document generation service was correctly spawning the agent on the remote host, but the file writing operations (saveDocument) were missing the sshRemoteId parameter. This caused the application to attempt writing files to a local path instead of the remote host, resulting in EACCES errors. This fix ensures sshRemoteId is passed to the IPC handler for file operations.
The generateUniqueSubfolderName function was attempting to list files in the remote path using a local file system call, causing EACCES errors. This change bypasses that check for remote sessions and uses a timestamp-based suffix to ensure uniqueness instead.
@pedramamini pedramamini merged commit 1974dcf into RunMaestro:main Feb 12, 2026
@pedramamini
Copy link
Collaborator

Thanks for the thorough fix Ryan! Clean propagation of session overrides through the full wizard chain — and the SSH writeDoc + remote subfolder naming fixes were solid catches too. We're rebuilding the RC tonight, so if you get a chance to kick the tires on v0.15.0-RC with your SSH + OpenCode setup, that'd be much appreciated. 🙏

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.

Autorun wizard failing on remote ssh w/ opencode

2 participants