client: run a keymap command in the background without a transient session #227
No reviewers
Labels
No labels
Area/ci
Area/cli
Area/client
Area/client-core
Area/daemon
Area/deps
Area/docs
Area/grid
Area/manual
Area/nix
Area/protocol
Area/pty
Area/render
Area/shaping
Area/skills
Area/transport
Area/vt
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Performance
Kind/Security
Kind/Testing
perf-regression-accepted
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Blocked
Status
Need More Info
Status
Upstream
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
felis-terminal/felis!227
Loading…
Reference in a new issue
No description provided.
Delete branch "client/run-background"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A
runbinding withbackground = truespawns its command without a transient session, so the window stays usable while the command runs. That covers the two requests behind this, without a dedicated window action (non-goals.md"Window-management chords"):This opens another window in the session's directory;
felis attach "$FELIS_ORIGIN_SESSION_ID"throughsh -copens a second window on the same session. Before this change, the binding had to beopen -n <store path>/felis.app, which broke on every upgrade and opened in$HOME.The command keeps a foreground
run's context:FELIS_ORIGIN_SESSION_ID,FELIS_HOST,FELIS_CWD, and the session's localOSC 7directory.OSC 7directory it starts in the home directory, not the client's/.run.FELIS_HOST.Closes #224.
PATH resolution of bare names is out of scope; the example uses an absolute path. Resolving the sibling
felisis #225.BindingValue::Run/Action::RunCommandgain a field, so felis-client-core takes a library minor; the app version is unaffected.Verification
felis-client-corepipe:OSC 7directory, else home;cli_bridgewrite-failure hang and thefelis-render-wgpugolden tests, both of which fail on cleanmain.just fmt-check lint check-portable skill-check docs-links deny publish-dry-run proto-compat test-tools check-windows.OSC 7directory containing a space;ctrl+shift+bbound to a background/bin/shcommand that logs its context and sleeps 4 s, fired twice within those 4 s, ran both times;FELIS_HOST;d29f1642b829106ebd7c2d8e422c3ee8829d6fdce8829d6fdc830a709575830a7095755c8ba95be65c8ba95be629106ebd7c29106ebd7cd4871f690fd4871f690f064750b33e064750b33ef9b86e9dae