fix(agents): strip ZWSP sort-order prefixes and normalize dash-format agent names#488
Open
stevejkang wants to merge 2 commits intojunhoyeo:mainfrom
Open
fix(agents): strip ZWSP sort-order prefixes and normalize dash-format agent names#488stevejkang wants to merge 2 commits intojunhoyeo:mainfrom
stevejkang wants to merge 2 commits intojunhoyeo:mainfrom
Conversation
… agent names oh-my-openagent changed agent display format from "Name (Description)" to "Name - Description" and prepends U+200B zero-width spaces for UI list ordering. These leak into opencode.db, causing fragmented entries in the Agents tab (e.g. " Sisyphus Ultrawo..."). - Add strip_zero_width_chars() removing U+200B/200C/200D/FEFF - Add dash-format matching to normalize_oh_my_opencode_agent_name - Normalize cached agent names on load and merge duplicates - Bump cache schema version to invalidate stale entries
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
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
Name - Description) alongside legacy parenthesized format (Name (Description))Context
oh-my-openagent changed agent display format from parenthesized (
Sisyphus (Ultraworker)) to dash-separated (Sisyphus - Ultraworker) due to RFC 7230 header validation failures with parentheses in OpenCode'sx-opencode-agent-nameheader.Additionally, oh-my-openagent prepends U+200B (Zero Width Space) characters as invisible sort-order prefixes for UI agent list ordering:
\u200BSisyphus - Ultraworker\u200B\u200BHephaestus - Deep Agent\u200B\u200B\u200BPrometheus - Plan Builder\u200B\u200B\u200B\u200BAtlas - Plan ExecutorThese ZWSP-prefixed names leak into
opencode.dbvia the agent confignamefield → OpenCode stores them in the messagemodefield → tokscale reads garbled entries.Before
After