Skip to content

Clear the SSH agent identity when the shell prompt clock changes - #1064

Merged
Kuddev merged 2 commits into
mainfrom
fix/timed-ssh-prompt-1120
Nov 20, 2026
Merged

Kuddev merged 2 commits into
mainfrom
fix/timed-ssh-prompt-1120

Conversation

@Kuddev

@Kuddev Kuddev commented Nov 20, 2026

Copy link
Copy Markdown
Owner

Tested official Pebrel 2.6.0 on InstaBox with a real OpenSSH shell, Codex CLI 0.160.0, hooks disabled, and an isolated provider. With a fixed Bash prompt the agent identity cleared within one second. With a clock in the prompt, when the exit crossed a second boundary, the shell could execute a new command while Pebrel still reported Codex after ten seconds.

The prompt matcher accepts a changed bracketed 24-hour clock when the original and returned shell prompts have the same remote host and marker. Tests reject a changed host, a typed command, an invalid time and a removed clock. A GPUI test checks the agent identity and sidebar state after a hookless Codex exit. A standalone comparison using the production matcher failed on the base and passed after the fix. Local formatting and architecture checks passed.

Related to #1059. The report does not include the user's prompt format.

@github-actions github-actions Bot added the size/M 101–500 行 label Nov 20, 2026
@Kuddev
Kuddev changed the base branch from main to fix/wsl-turn-callback-1120 November 20, 2026 08:37
@github-actions github-actions Bot added size/S ≤100 行源码改动 and removed size/M 101–500 行 labels Nov 20, 2026
@Kuddev
Kuddev changed the base branch from fix/wsl-turn-callback-1120 to main November 20, 2026 08:59
@Kuddev
Kuddev merged commit b14d23f into main Nov 20, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/S ≤100 行源码改动

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant