Skip to content

fix: preserve prompt hook trailing spaces#72

Merged
F16shen merged 1 commit intoAI-Shell-Team:mainfrom
F16shen:fix/preserve-prompt-trailing-space
Mar 20, 2026
Merged

fix: preserve prompt hook trailing spaces#72
F16shen merged 1 commit intoAI-Shell-Team:mainfrom
F16shen:fix/preserve-prompt-trailing-space

Conversation

@F16shen
Copy link
Copy Markdown
Collaborator

@F16shen F16shen commented Mar 20, 2026

Summary

  • preserve trailing spaces in synchronous script output so prompt hooks keep cursor separation
  • stop stripping prompt hook output a second time in the hook manager
  • add a regression test covering a prompt hook that intentionally ends with a space

Testing

  • pytest tests/test_scripts.py -q

@F16shen F16shen merged commit d68c69c into AI-Shell-Team:main Mar 20, 2026
9 checks passed
@F16shen F16shen deleted the fix/preserve-prompt-trailing-space branch March 20, 2026 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants