Skip to content

feat: fix default theme loading and zsh xtrace ESC byte corruption#1

Merged
dacrystal merged 1 commit intomainfrom
feat/fix-default-theme-and-xtrace-unescape
Apr 7, 2026
Merged

feat: fix default theme loading and zsh xtrace ESC byte corruption#1
dacrystal merged 1 commit intomainfrom
feat/fix-default-theme-and-xtrace-unescape

Conversation

@dacrystal
Copy link
Copy Markdown
Owner

  • Fix default theme not loading: always resolve aurora theme when no theme is specified, so prompt/margin settings match --theme aurora
  • Add unescape_xtrace to ShellAdapter (identity default for bash)
  • Implement ZshAdapter.unescape_xtrace to decode $'...' ANSI-C quoting produced by zsh xtrace (e.g. \C-[ → ESC) so directive values are stored as canonical bytes in .sc files
  • Wire adapter.unescape_xtrace into _postprocess, applied on dir events before directive post-processing
  • Regenerate assets with updated aurora theme prompt

What does this PR do?

Checklist

  • make all passes locally (lint + typecheck + tests)
  • New behaviour is covered by tests
  • DIRECTIVES.md updated (if directive added or changed)
  • CHANGELOG.md has an entry (or I'm relying on the auto-changelog PR)

Related issues

- Fix default theme not loading: always resolve aurora theme when no
  theme is specified, so prompt/margin settings match --theme aurora
- Add unescape_xtrace to ShellAdapter (identity default for bash)
- Implement ZshAdapter.unescape_xtrace to decode $'...' ANSI-C quoting
  produced by zsh xtrace (e.g. \C-[ → ESC) so directive values are
  stored as canonical bytes in .sc files
- Wire adapter.unescape_xtrace into _postprocess, applied on dir events
  before directive post-processing
- Regenerate assets with updated aurora theme prompt
- Fix lint and typecheck (ruff I001/E702, mypy missing annotation, stale type: ignore)
@dacrystal dacrystal force-pushed the feat/fix-default-theme-and-xtrace-unescape branch from 4b95884 to 75692dc Compare April 7, 2026 10:39
@dacrystal dacrystal merged commit 990ac10 into main Apr 7, 2026
5 checks passed
@dacrystal dacrystal deleted the feat/fix-default-theme-and-xtrace-unescape branch April 7, 2026 10:43
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.

1 participant