Skip to content

fix(providers): show custom header values in plaintext - #331

Open
AlphaCatMeow wants to merge 1 commit into
Stack-Cairn:mainfrom
AlphaCatMeow:codex/fix-custom-header-plaintext
Open

fix(providers): show custom header values in plaintext#331
AlphaCatMeow wants to merge 1 commit into
Stack-Cairn:mainfrom
AlphaCatMeow:codex/fix-custom-header-plaintext

Conversation

@AlphaCatMeow

@AlphaCatMeow AlphaCatMeow commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

改动说明

  • 桌面 GUI 与 Gateway WebUI 的自定义请求头 value 默认并持续明文展示
  • 移除逐行显示/隐藏状态、眼睛按钮和无用中英文文案
  • 缩小 value 输入框右侧留白,仅保留删除按钮空间
  • 保持 API Key、Usage Query 凭据的原有脱敏行为,以及请求头保存、同步、转发、校验和安全过滤逻辑

自动验证

  • node --test crates/agent-gui/test/providers/custom-headers.test.mjs crates/agent-gateway/test/webui/custom-headers.test.mjs:20/20 通过
  • pnpm --dir crates/agent-gui build:通过
  • pnpm --dir crates/agent-gateway/web build:通过
  • pnpm --dir crates/agent-gateway/web test:493/493 通过
  • pnpm --dir crates/agent-gui lint --line-ending=crlf:通过(仅现有 warnings/infos)
  • pnpm --dir crates/agent-gateway/web lint --line-ending=crlf:通过(仅现有 warnings/infos)
  • node scripts/check-mirror.mjs:通过,116 个镜像文件
  • git diff --check:通过

环境说明与未运行项

  • 原始双端 pnpm ... lint 在本机 Git core.autocrlf=true 且仓库未声明 EOL 时,会把完整检出树的 CRLF 视为格式差异;使用匹配工作树的 --line-ending=crlf 后全量检查为 0 错误
  • 额外运行 pnpm --dir crates/agent-gui test:frontend,有 2 项既有的 EOL-sensitive byte-for-byte 测试失败;本次目标请求头测试全部通过
  • 未运行 Rust cargo check 与 Gateway Go 测试:本次未修改后端、协议、数据模型或代理层
  • 未单独进行 Gateway WebUI 浏览器人工会话;已通过双端对称 diff、WebUI build/lint/test 与独立代码审查覆盖

人工验收

  • 从本任务独立 worktree 的当前源码启动 pnpm --dir crates/agent-gui tauri dev
  • 用户已验证新增、编辑、JSON/cURL 导入、删除、连续添加、保存重开、非法/保留头校验,以及 API Key/Usage Query 脱敏回归,并明确授权提交与创建 PR

Depends-On: none
Stack-Root: #331

移除 GUI 与 Gateway WebUI 的逐行显示状态和眼睛按钮,同时保留 API Key 与用量查询凭据的原有脱敏行为。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant