fix(token): URI-encode token usernames to fix agent token creation fa… - #139
Draft
LandmineHQ wants to merge 1 commit into
Draft
fix(token): URI-encode token usernames to fix agent token creation fa…#139LandmineHQ wants to merge 1 commit into
LandmineHQ wants to merge 1 commit into
Conversation
…ilure (#138) Master 自 2026-07-29 起拒绝包含 ':' / '|' 的 username(用于区分 key:secret / username|password 两种鉴权格式),导致 agent token 的 [agent]:{uuid} 命名在 token_create 时被拒(error 108),安装命令显示字面量 {TOKEN}、添加被控流程卡死。 - scopeCodec: 新增 encodeTokenUsername / decodeTokenUsername,发送边界统一编码、 读取边界解码,表单输入与展示保持原文 - generateToken: agent token username 改用编码格式(agentUsername) - AddAgentDialog: token 预生成失败时弹出错误提示并阻止进入下一步(原先静默吞错) - tokenListCard / tokenDetailPreview: 展示层安全解码,搜索同时匹配编码与原文 - useThemeTokenPresets: 查重兼容编码形式
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.
问题索引
原因
Master 自 2026-07-29 起拒绝包含 ':' / '|' 的 username(用于区分 key:secret / username|password 两种鉴权格式),导致 agent token 的 [agent]:{uuid} 命名在 token_create 时被拒(error 108),安装命令显示字面量 {TOKEN}、添加被控流程卡死。
修复方式