Skip to content

fix(adapters): sharpen harness icons and align optical sizing across all 20 harnesses - #1331

Merged
iruriQ merged 1 commit into
mainfrom
fix/harness-icons-clarity-and-sizing
Nov 28, 2026
Merged

iruriQ merged 1 commit into
mainfrom
fix/harness-icons-clarity-and-sizing

Conversation

@iruriQ

@iruriQ iruriQ commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator

Purpose

Eliminate small-size blurriness (14px / 16px / 20px) and inconsistent optical sizing across Harness icons in CH Web and Codex Desktop without relaxing the presentation security contract (validated iconStyle.vector path primitives or clean image assets only; never injecting arbitrary plugin SVG markup).

Changes

  • Remove Gaussian blur & heavy filters that turn muddy at 14–20px:
    • packages/adapters/antigravity/assets/icon.svg: rebuild with clean vector gradients/paths (removing 22 <filter> / <feGaussianBlur> elements).
    • packages/adapters/workbuddy/assets/icon.svg: remove blur <filter> elements while preserving brand artwork.
  • Upgrade downsampled low-res PNG icons to crisp vector presentation:
    • copilot, grok, opencode: replace PNG assets with crisp SVGs + validated iconStyle.vector paths in manifest.json (README.md, docs/project/README.zh-CN.md, and docs/project/README.ko.md updated to point to copilot/assets/icon.svg).
    • devin, kimi-code, kiro-cli: add validated iconStyle.vector definitions for crisp theme-consistent rendering.
    • hermes & Codex (codex-agent.png, codex.png): replace with crisp high-resolution PNG assets and remove Hermes's double-shrinking paddingRatio: 0.0625.
  • Align optical visual weight across all 20 icons:
    • Tighten padded viewBoxes (e.g., pi/assets/icon.svg from 0 0 800 800 with ~41% blank margin; square centered deepseek-harness viewBox; balanced padding across claude-code, codebuddy, cursor-cli, omp, qoder, qoder-cn, qwen-code, zcode, kiro-cli, kimi-code, devin).

Visual Inspection

  • Rendered a full 20-icon × 3-size (14px / 16px / 20px) × 2-theme (light / dark) Playwright 2x Retina contact sheet before and after the changes and visually inspected every icon for sharpness, legibility on both themes, and consistent optical alignment.

Validation

  • Validated all 20 adapter manifest.json files against harnessPluginManifestSchema and checked all SVG assets for absence of <feGaussianBlur> / unsafe tags.
  • node tools/check-boundaries.mjs — passed.
  • npx prettier --check packages/adapters/*/manifest.json — passed.
  • npx vitest run --config tests/vitest.config.js across shared-contracts/test/harness-plugins.test.ts, harness-plugin-files/test/, web-server/test/harness-icon-styles.test.ts, renderer-extension/test/renderer-{agent-icon,sidebar-agent-icons,agent-picker}.test.ts, and apps/web-ui/packages/client/ui-primitives/test/ — 14 files / 168 tests passed.
  • Note: Full npm run build:typescript / harness-plugin-loader.test.ts (bundled plugins) was not run in the isolated worktree due to apps/web-ui vendor build not being hoisted there; CI will run the complete suite.

@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • 样式
    • 更新多个 Agent 的图标显示方式,改用或补充矢量图标;部分图标的显示范围和样式也有所调整。
    • Hermes 和 OMP 不再使用自定义图标样式。
  • 文档
    • README 中 Copilot 的图标更新为 SVG,其他功能支持信息保持不变。

多个 Agent 清单新增或调整矢量图标配置,并更新部分图标资源路径。三份 README 中的 Copilot 图标路径改为 SVG。部分清单格式调整,但安装命令和链接值未变。

Changes: Agent 图标配置

Layer / File(s) Summary
矢量图标配置与引用
packages/adapters/*/manifest.json, README.md, docs/project/README.ko.md, docs/project/README.zh-CN.md
多个 Agent 清单新增或调整矢量图标定义、视图框或图标资源路径;Hermes 和 OMP 清单移除 iconStyle。三份 README 将 Copilot 图标路径从 PNG 改为 SVG。部分安装项和链接改为多行格式,值保持不变。

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Bug fix

Suggested reviewers: bytepioneer-ai

Merge Risk: Minimal · up to bd6c9 · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed 标题“fix(adapters): sharpen harness icons and align optical sizing across all 20 harnesses”与变更集高度相关。变更包括移除模糊滤镜、将 PNG 图标替换为 SVG、添加 iconStyle.vector 定义、调整 viewBox 与内边距,以使图标在小尺寸下更清晰并统一视觉对齐。标题准确描述了主要目的,但标题为…
Description check Passed 描述说明了目的(消除 14px、16px、20px 下的模糊并统一视觉尺寸),并列出了 antigravity、workbuddy、copilot、grok、opencode、devin、kimi-code、kiro-cli、hermes 等具体变更文件,还包含视觉检查与测试验证说明。描述与变更集直接相关。
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

标题“fix(adapters): sharpen harness icons and align optical sizing across all 20 harnesses”与变更集高度相关。变更包括移除模糊滤镜、将 PNG 图标替换为 SVG、添加 iconStyle.vector 定义、调整 viewBox 与内边距,以使图标在小尺寸下更清晰并统一视觉对齐。标题准确描述了主要目的,但标题为英文,且略长(85 个字符)。

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
Fix failing CI checks

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 1b9e6f3 and bd6c9cb.

Files ignored due to path filters: 25

  • apps/web-ui/apps/web/public/codex-agent.png is excluded by !**/*.png
  • apps/web-ui/apps/web/public/codex.png is excluded by !**/*.png
  • packages/adapters/antigravity/assets/icon.svg is excluded by !**/*.svg
  • packages/adapters/claude-code/assets/icon.svg is excluded by !**/*.svg
  • packages/adapters/codebuddy/assets/icon.svg is excluded by !**/*.svg
  • packages/adapters/copilot/assets/icon.png is excluded by !**/*.png
  • packages/adapters/copilot/assets/icon.svg is excluded by !**/*.svg
  • packages/adapters/cursor-cli/assets/icon.svg is excluded by !**/*.svg
  • packages/adapters/deepseek-harness/assets/icon.svg is excluded by !**/*.svg
  • packages/adapters/devin/assets/icon.svg is excluded by !**/*.svg
  • packages/adapters/grok/assets/icon.png is excluded by !**/*.png
  • packages/adapters/grok/assets/icon.svg is excluded by !**/*.svg
  • packages/adapters/hermes/assets/icon.png is excluded by !**/*.png
  • packages/adapters/kimi-code/assets/icon.svg is excluded by !**/*.svg
  • packages/adapters/kiro-cli/assets/kiro-agent.svg is excluded by !**/*.svg
  • packages/adapters/omp/assets/icon.svg is excluded by !**/*.svg
  • packages/adapters/opencode/assets/icon.png is excluded by !**/*.png
  • packages/adapters/opencode/assets/icon.svg is excluded by !**/*.svg
  • packages/adapters/pi/assets/icon.svg is excluded by !**/*.svg
  • packages/adapters/qoder-cn/assets/icon.svg is excluded by !**/*.svg
  • packages/adapters/qoder/assets/icon.svg is excluded by !**/*.svg
  • packages/adapters/qwen-code/assets/icon.svg is excluded by !**/*.svg
  • packages/adapters/workbuddy/assets/icon.svg is excluded by !**/*.svg
  • packages/adapters/zcode/assets/icon.svg is excluded by !**/*.svg
  • packages/renderer-extension/src/assets/codex-agent.png is excluded by !**/*.png
Files selected for processing: 13

  • README.md
  • docs/project/README.ko.md
  • docs/project/README.zh-CN.md
  • packages/adapters/claude-code/manifest.json
  • packages/adapters/copilot/manifest.json
  • packages/adapters/deepseek-harness/manifest.json
  • packages/adapters/devin/manifest.json
  • packages/adapters/grok/manifest.json
  • packages/adapters/hermes/manifest.json
  • packages/adapters/kimi-code/manifest.json
  • packages/adapters/kiro-cli/manifest.json
  • packages/adapters/omp/manifest.json
  • packages/adapters/opencode/manifest.json
Files with no reviewable changes: 1

  • packages/adapters/hermes/manifest.json

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 3 remain after this review.

Recent review details

Context from checks skipped due to timeout: 8

  • GitHub Check: CodeRabbit
  • GitHub Check: Check macos-26
  • GitHub Check: Static checks
  • GitHub Check: Check ubuntu-22.04
  • GitHub Check: Check Linux ARM64
  • GitHub Check: Web Host tests
  • GitHub Check: Check windows-latest
  • GitHub Check: Vitest
Additional context used

Code guidelines: 2

CLAUDE.md — auto-discovered
docs/product/standalone-web.md — auto-discovered
Path-based instructions: 2

Source excerpt: Harness-specific protocol details must remain inside the corresponding Adapter.

CodeRabbit inference engine (CLAUDE.md)

Files:

  • packages/adapters/claude-code/manifest.json
  • packages/adapters/copilot/manifest.json
  • packages/adapters/deepseek-harness/manifest.json
  • packages/adapters/devin/manifest.json
  • packages/adapters/grok/manifest.json
  • packages/adapters/kimi-code/manifest.json
  • packages/adapters/kiro-cli/manifest.json
  • packages/adapters/omp/manifest.json
  • packages/adapters/opencode/manifest.json
Applicability reference: AGENTS.md: # Repository Guidelines `npm start` / `npm start web` rebuild and relaunch the user's Desktop / Web and may restart the shared Host; `npm stop` stops all local codexhost services across worktrees.

CodeRabbit inference engine (docs/product/standalone-web.md)

Files:

  • packages/adapters/claude-code/manifest.json
  • packages/adapters/copilot/manifest.json
  • packages/adapters/deepseek-harness/manifest.json
  • packages/adapters/devin/manifest.json
  • packages/adapters/grok/manifest.json
  • packages/adapters/kimi-code/manifest.json
  • packages/adapters/kiro-cli/manifest.json
  • packages/adapters/omp/manifest.json
  • packages/adapters/opencode/manifest.json
Learnings: 2

Learning: 2026-11-23T14:54:57.160Z

Learnt from: CR
Repo: BytePioneer-AI/codex-host PR: 0
File: .agents/skills/codexhost-add-desktop-extension/SKILL.md:0-0
Timestamp: 2026-11-23T14:54:57.160Z
Learning: Applicability reference:
AGENTS.md: # Repository Guidelines
## Repository Skills
| Task | Skill |
| --- | --- |
| Developing, packaging, or troubleshooting a Desktop UI extension | [codexhost-add-desktop-extension](.agents/skills/codexhost-add-desktop-extension/SKILL.md) |

Source excerpt:
# 新增 codexhost Host 扩展

## 1. 选择入口形态并编写 `manifest.json`

- `icon`(≤ 128 KiB)与 `screenshots`(最多 4 张,每张 ≤ 512 KiB,合计 ≤ 2 MiB)仅允许 PNG / JPEG / WebP,相对路径须使用 `/` 且不得越界。

Applied to files:

  • packages/adapters/grok/manifest.json
  • packages/adapters/opencode/manifest.json
Learning: 2026-11-24T16:39:17.750Z

Learnt from: CR
Repo: BytePioneer-AI/codex-host PR: 0
File: docs/architecture/desktop-ui-extensions.md:0-0
Timestamp: 2026-11-24T16:39:17.750Z
Learning: Applicability reference:
AGENTS.md: # Repository Guidelines
## Code Layout
### Build and Release
- `registry/desktop-extensions/`: standalone index template for independently distributed [Desktop UI extensions](docs/architecture/desktop-ui-extensions.md)

Source excerpt:
# Host 扩展架构(Desktop / Web 跨端统一)

## 清单格式(`manifestVersion: 2`)

- **展示元数据**:`author`、`repository`(HTTP(S))、`categories`(`appearance` / `interface` / `workflow` / `analytics` / `integrations` / `tools`)、`icon`(≤ 128 KiB PNG/JPEG/WebP)、`screenshots`(最多 4 张,单张 ≤ 512 KiB,合计 ≤ 2 MiB)。

Applied to files:

  • packages/adapters/grok/manifest.json

@iruriQ
iruriQ merged commit 7804e80 into main Nov 28, 2026
6 of 8 checks passed
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.

2 participants