You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@magpie.apache.org by "potiuk (via GitHub)" <gi...@apache.org> on 2026/09/13 14:49:26 UTC
[PR] docs(agent-isolation): record ghostty behaviour in claude-term-bg.sh [magpie]
potiuk opened a new pull request, #1207:
URL: https://github.com/apache/magpie/pull/1207
## Summary
- `claude-term-bg.sh`'s header splits terminals into two cases for the OSC 11 /
OSC 111 set-vs-reset asymmetry: iTerm2, which does not reliably honour OSC 111
through the fullscreen TUI, and VTE (terminator, gnome-terminal), which does.
Ghostty was unrecorded, so an adopter running it had no way to tell which case
applied — i.e. whether they needed `CLAUDE_RESET_BG` to get a clean reset.
- Measured against ghostty 1.3.1: it implements both OSC 11 and OSC 111, so it
groups with the VTE case. The default reset comes back clean without
`CLAUDE_RESET_BG`, and the iTerm2-proprietary `SetColors=bg=default` escape is
ignored harmlessly. `find_tty_dev()` already covers it — its `ttysNNN` / `pts/N`
matching is OS-specific, not terminal-specific.
- Comment-only. No behaviour change.
## Type of change
- [x] Other: header comments in `tools/agent-isolation/claude-term-bg.sh`
## Test plan
- [x] `prek run --all-files` passes, with one pre-existing unrelated failure (below)
- [x] Verified by hand on ghostty 1.3.1 / macOS (Darwin 25.6): `claude-term-bg.sh wait`
tinted the live window, `claude-term-bg.sh reset` restored the profile default
with `CLAUDE_RESET_BG` unset — confirming OSC 111 is honoured.
- [x] `find_tty_dev()` resolved the pty unchanged (`/dev/ttysNNN`) from a detached
hook-like process.
- [x] `bash -n` clean.
- Python / Groovy / skill-eval rows: not applicable — no such files touched.
**Pre-existing failure, not from this PR:** `check measured skill tokens in
docs/mode-economics.md` reports stale measurements on `upstream/main` already.
Regenerating rewrites five SKILL.md rows (`pr-management-triage`,
`security-cve-allocate`, `security-issue-import`, `security-issue-invalidate`,
`security-issue-sync`) — all unrelated to this change, so I left them out rather
than bundle unrelated churn. Worth its own regeneration commit.
## RFC-AI-0004 compliance
No principle is engaged — a comment-only change to a tool script: no new mutation,
no host access change, no skill prose, no outbound messages, no LLM data path.
## Linked issues
None — no existing issue or PR mentions ghostty (checked both, open and closed).
## Notes for reviewers
The ghostty measurement was taken on macOS only.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@magpie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] docs(agent-isolation): record ghostty behaviour in claude-term-bg.sh [magpie]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk merged PR #1207:
URL: https://github.com/apache/magpie/pull/1207
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@magpie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org