Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/claude-ci-fix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
contents: write
pull-requests: write
actions: read
id-token: write
steps:
- name: 📂 Checkout code
uses: actions/checkout@v6
Expand Down
11 changes: 11 additions & 0 deletions tests/integration_tests/configure_shell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -983,6 +983,17 @@ mod pty_tests {
.unwrap()
.replace_all(&output, "");

// Remove echoed user input at end of prompt line (PTY echo timing varies).
// The prompt ends with [y/N/?][22m and then the echoed input appears.
// Normalize to just the prompt without echoed input.
let output = regex::Regex::new(r"(\[y/N/\?\]\x1b\[22m) [yn]")
.unwrap()
.replace_all(&output, "$1 ");

// Remove standalone echoed input lines (just y or n on their own line)
// that appear due to PTY timing differences
let output = regex::Regex::new(r"^[yn]\n").unwrap().replace(&output, "");

// Replace temp home path with ~/
let home_path = temp_home.path().to_string_lossy();
output.replace(&*home_path, "~").to_string()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
source: tests/integration_tests/configure_shell.rs
expression: normalized
---
n

❯ Install shell integration? [y/N/?]
✗ Cancelled by user
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
source: tests/integration_tests/configure_shell.rs
expression: normalized
---
y

❯ Install shell integration? [y/N/?]
✓ Added shell extension & completions for zsh @ ~/.zshrc
Expand Down