Skip to content

Fix configured arguments for spawned shells being ignored when use-fork = true#1303

Open
karcsesz wants to merge 4 commits intoraphamorim:mainfrom
karcsesz:fix-fork-not-respecting-argument-list
Open

Fix configured arguments for spawned shells being ignored when use-fork = true#1303
karcsesz wants to merge 4 commits intoraphamorim:mainfrom
karcsesz:fix-fork-not-respecting-argument-list

Conversation

@karcsesz
Copy link
Copy Markdown

Currently when use-fork is set to true in the configuration, the created processes don't receive the correct command line arguments.

This is most noticeable on linux with the default configuration, as triggering OpenConfigEditor doesn't open the configuration, just opens vi with a scratch buffer.

The fix should be rather simple, just plumbing the parameters through teletypewriter::unix::create_pty_with_fork and default_shell_command

…aphamorim#1016)

Adds the `args` argument to `create_pty_with_fork` and pulls it through to `ContextManager::create_context`.

Also merges the non-macos and macos implementations of default_shell_command since the only difference seemed to have been a hardcoded `--login` argument (which was passed in as argv[0] meaning that it wasn't getting parsed anyway).
@karcsesz karcsesz marked this pull request as ready for review September 17, 2025 21:19
Jaredy899 added a commit to Jaredy899/packages that referenced this pull request Mar 7, 2026
**Summary**
- Apply patch for shell args with use-fork [PR 1303](raphamorim/rio#1303)

Signed-off-by: Jared Cervantes <jared@jaredcervantes.com>
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