Skip to content

cq-viewer 1.2.0: keep picking after the annotation panel opens - #22

Merged
HanZijie merged 1 commit into
mainfrom
feat/cq-viewer-continuous-pick
Oct 16, 2026
Merged

HanZijie merged 1 commit into
mainfrom
feat/cq-viewer-continuous-pick

Conversation

@HanZijie

@HanZijie HanZijie commented Oct 16, 2026 •

Copy link
Copy Markdown
Collaborator

What

plugins/hanzijie/cq-viewer 1.2.0 — pick and annotate in one continuous flow.

Before: 确认 turned pick mode off. Re-entering pick mode collected new points as "pending" again and needed another 确认, so once the annotation panel was open you could not pick a point, write its note, and pick the next one.

Now:

  • The first points of a session are still collected and confirmed together (unchanged).
  • After 确认, pick mode stays on. Every further click goes straight into the annotation list and focuses the new point's note box. The instruction box ("想让 AI 做什么") stays editable throughout; clicking the model while typing in it or in a note adds the point and keeps the text.
  • The pick bar switches to 继续点击模型,新位置直接加入标注 · 共 N 处 with 撤销上一个 (last point of this session, also Backspace) and 完成 (also Esc). Pressing 选点 later continues the same list without a confirm step; after 清空标注 the confirm step returns.
  • A collapsed annotation panel reopens when a point is added. While picking, the panel leaves room for the pick bar (on narrow screens they previously shared bottom: 72px).
  • ⌘Z now restores which points exist but keeps notes written in between (points carry an in-page id, never persisted). Before, undoing an add after editing an earlier note reverted that note.

No server, MCP, or file-access changes. Version strings bumped together (test checks).

Checks

  • npm run check: plugins/hanzijie/cq-viewer: OK — 0 errors, 0 warnings; 55/55.
  • node --test plugins/hanzijie/cq-viewer/tests/*.test.mjs: 19/19.
  • Headless Chrome against the real Node entry, at 1400 px and 800 px (19 checks each, no console errors): batch → confirm keeps pick mode; clicks while a note / the instruction is being edited go straight in and move focus; notes survive; 撤销上一个, Backspace, ⌘Z (keeps edited notes), Esc×2, 完成; re-entering continues without confirm; collapsed panel reopens; after 清空标注 confirm returns; selection.json contains points, notes and instruction.

Tested environment

MiniMax Code 3.1.1-preview.4597, macOS 26 (Apple Silicon): installed locally and opened. The continuous flow itself was exercised in headless Chrome only.

Not verified

  • Windows.
  • Picking with an IME composition in progress inside a note (the click blurs the box first, which should commit it).

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

Before: 确认 turned pick mode off, and points picked after re-entering it waited for
another 确认, so you could not pick a point, write its note, and pick the next one.

Now:
- The first points of a session are still collected and confirmed together.
- After 确认 pick mode stays on. Every further click goes straight into the annotation
  list (no pending stage) and focuses the new point's note box; the instruction box
  stays editable throughout. Pressing 选点 again later continues the same list.
- The pick bar switches to "继续点击模型,新位置直接加入标注 · 共 N 处" with
  撤销上一个 (last point of this session; also Backspace) and 完成 (also Esc).
- A collapsed annotation panel reopens when a point is added; while picking, the panel
  leaves room for the pick bar (also on narrow screens).
- ⌘Z restores which points exist but keeps notes written since (points carry an
  in-page id; not persisted).

Headless Chrome, 1400 px and 800 px: 19/19 each. npm run check: cq-viewer OK.
@HanZijie
HanZijie merged commit 2330faa into main Oct 16, 2026
1 check 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.

1 participant