Repository navigation
Conversation
The specification for OSC 8 reads:
I have researched and found no evidence of any additional ID's proposed for use with OSC 8 in any terminal emulator. Further, some terminal emulators would be unable to handle any "extra" metadata. I will add this to the list of Unlikely Sequences. The theoretical fix of your bug report is,
The OSC 8 Hyperlinks in Terminal Emulators specification is closed, the author's last comment before deleting all comments in Mar. 2025:
But as I have written previously, because the specification says it could be defined, and the performance regression is small, I really don't have any choice but to accept some form of this change, to try and prevent AI Agents from boiling water and re-creating and submitting the same PR later. |
|
Thank you for investigating this and explaining the project's approach to Unlikely Sequences. I understand the concerns about practical terminal usage and performance, and appreciate the documentation update. I'll focus future reports on concrete examples from real terminal behavior. |
wrap() checks whether OSC 8 metadata contains the substring 'id='. Parameters such as 'grid=tile-1', 'other_id=label' or 'custom=id=value' therefore look like an existing hyperlink ID. When that link wraps, its fragments do not receive the shared ID that SequenceTextWrapper promises to generate.
Check complete colon-delimited metadata items for the 'id=' prefix, and reuse that result when inserting the opening sequence. Preserve existing IDs and unrelated metadata. Add 14 cases covering BEL/ST terminators, misleading keys/values, a bare 'id' item and genuine IDs in different positions; update the history entry.
Validation on Windows / CPython 3.12.10 with WCWIDTH_PYTHON=1:
The C-extension mode and full supported interpreter/OS matrix were not run locally. AI assistance: OpenAI Codex was used for investigation, implementation and running the validation commands.