Skip to content

Fix shell init, bash SSH/PTY, Warp hooks, AUR automation, and add mise support#17

Merged
sheeki03 merged 5 commits intomainfrom
issues-fixes
Feb 6, 2026
Merged

Fix shell init, bash SSH/PTY, Warp hooks, AUR automation, and add mise support#17
sheeki03 merged 5 commits intomainfrom
issues-fixes

Conversation

@sheeki03
Copy link
Owner

@sheeki03 sheeki03 commented Feb 6, 2026

Summary

  • Bash SSH/PTY fix (Breaks input when sshing #10, Hook not working in warp terminal #3): Enter-mode execution deferred to PROMPT_COMMAND so interactive commands (ssh, gcloud) run outside bind -x with clean PTY state. SSH sessions auto-fallback to preexec mode.
  • Init shell detection: tirith init now detects shell from parent process ancestry (not just $SHELL), fixing multi-shell setups. Removed hardcoded TIRITH_BASH_MODE=enter override.
  • Warp hook materialization (Hook not working in warp terminal #3): Embedded hooks synced with runtime hooks. Rematerialization is now version-based (not mtime), preventing stale hooks after brew upgrade.
  • AUR automation: Added publish-aur job to release workflow. Updated PKGBUILD to 0.1.7, fixed license, removed broken --locked/--frozen flags.
  • Mise support (Add additional distribution channel: [Mise](https://mise.jdx.dev) #6): Added registry definition and README install instructions for mise use -g tirith.
  • Version bump: 0.1.7 → 0.1.8

Test plan

  • cargo fmt --all --check passes
  • cargo clippy --workspace -- -D warnings passes
  • 185/185 tests pass (cargo test --workspace)
  • Embedded hooks match runtime hooks (regression test embedded_shell_hooks_match_repo_hooks)
  • SSH auto-fallback verified: SSH_CONNECTION=1 bash -c 'source bash-hook.bash; echo $_TIRITH_BASH_MODE'preexec
  • Deferred execution verified: commands queue in bind-x, run in PROMPT_COMMAND
  • cd persistence verified: directory changes survive after deferred execution
  • stty preservation verified: terminal state unchanged after bind-x handler

Closes #3, closes #6, closes #10

sheeki03 and others added 4 commits February 6, 2026 13:16
- Bump workspace version 0.1.7 → 0.1.8
- Add mise registry definition (github + cargo backends)
- Add mise install instructions to README

Closes #6

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@macroscopeapp
Copy link

macroscopeapp bot commented Feb 6, 2026

Fix bash SSH/PTY handling by defaulting hooks to preexec under SSH and defer command execution via PROMPT_COMMAND in bash-hook.bash and bash-hook.bash

Update shell init to require --shell, rework Unix shell detection in crate::cli::init::detect_shell, add AUR publish workflow and Mise manifest, and adjust Chocolatey push step error handling.

📍Where to Start

Start with crate::cli::init::detect_shell and related helpers in init.rs, then review bash hook changes in bash-hook.bash.


Macroscope summarized 275444a.

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.

Breaks input when sshing Add additional distribution channel: [Mise](https://mise.jdx.dev) Hook not working in warp terminal

1 participant