Repository navigation
fix: title Codex cards on paginated rollouts and strip omp's title card - #94
Merged
Merged
Conversation
Codex 0.147.0 and later write no user_message event into the rollout; the first user message is read from the completed UserMessage item instead (measured on 0.162.1). omp heads a generated title with an icon and a code (title.icons, on by default; measured on 18.8.9), which is now stripped the way omp's own splitCardTitle matches it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The plugin half of a session-title survey across all providers (lich side: lichdotdev/lich#900). No contract change: the
/session-titlebody is the same, only where the title is read from.user_messageevent, so a Codex card kept the name lich gave it.report-title.shnow also reads the firstitem_completedevent whose item is aUserMessage, its firsttextcontent (measured on 0.162.1). The old extractor stays first, for older Codex.<icon> <CODE>: <title>(title.icons, on by default; measured on 18.8.9), and the lich card showed a Nerd Font glyph and the code.omp/lich.jsstrips it with the same pattern and icon test as omp's ownsplitCardTitle, so a plainFix: the parserstays whole.Test plan
node --test tests/*.test.mjs(467 pass), with new cases for a paginated Codex rollout (title, blank, missing, character cap) and for omp cards (Nerd Font, emoji, plain title shaped like one, ASCII word before the code)