Skip to content

fix(mascot): map cursor-cli and qoder-cli to correct mascots#248

Merged
wxtsky merged 2 commits into
wxtsky:mainfrom
zephyr110:fix/cursor-qoder-cli-mascot
Jul 5, 2026
Merged

fix(mascot): map cursor-cli and qoder-cli to correct mascots#248
wxtsky merged 2 commits into
wxtsky:mainfrom
zephyr110:fix/cursor-qoder-cli-mascot

Conversation

@zephyr110

@zephyr110 zephyr110 commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Fixes follow-up reported in #220.

Summary

  • Map cursor-cli and qoder-cli to the Cursor / Qoder mascots in MascotView and SharedMascotView.
  • Bridge already promotes terminal cursor-agent / qodercli sessions to -cli IDs (请求支持 cursor-agent 和 qodercli #134); ESP32Protocol and SessionSnapshot.sourceLabel already handle them. Only the SwiftUI mascot router was missing these cases, so sessions fell back to the default Clawd (Claude Code) mascot.
  • Align iOS companion source labels in CompanionDisplayText (CURSOR / QODER instead of uppercasing the raw ID).
  • Also fix a duplicate com.apple.security.cs.disable-library-validation key in CodeIsland.entitlements that breaks ./build.sh codesign when building from source.

中文说明

  • MascotView / SharedMascotView 中为 cursor-cliqoder-cli 补上吉祥物路由,复用现有 Cursor / Qoder 角色(与 请求支持 cursor-agent 和 qodercli #134 设计一致)。
  • 修复前:终端里的 cursor-agent / qodercli 会被 bridge 识别为 cursor-cli / qoder-cli,但 UI 层未匹配这些 source,回退成 Clawd(Claude Code)吉祥物——与 cursor终端中打开的cc显示cursor图标 #220 评论一致。
  • iOS 伴侣端 CompanionDisplayText 同步处理 -cli 来源名。
  • 顺带删除 entitlements 里重复的 disable-library-validation 键,修复本地 ./build.sh 签名失败。

Test Plan

  • ./build.sh — release build + ad-hoc codesign succeeds
  • Manual: cursor-agent session in terminal shows Cursor mascot in notch panel (not Clawd)
  • Manual: qodercli session shows Qoder mascot after directory trust + hook reinstall
  • Maintainer: swift test

zephyr110 added 2 commits July 4, 2026 11:12
Bridge promotes terminal Cursor/Qoder sessions to -cli source IDs; MascotView
and SharedMascotView only matched base names and fell back to Clawd.
Plist had com.apple.security.cs.disable-library-validation twice, which caused
build.sh codesign to fail.
@wxtsky wxtsky merged commit 779d755 into wxtsky:main Jul 5, 2026
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