feat(browser/ux): visible in-tab AI control indicator, action highlight and optional agent cursor
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 18/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- react, typescript
Direzione di ricerca
Start with the existing highlight and status code: src/browser/executor.ts (HIGHLIGHT_MS, onActivity), src/browser/tab-marker.ts, src/browser/adapters/cdp/cdp-adapter.ts, and src/sidepanel/browser/BrowserActivity.tsx. The issue asks for a design first, then a P0 in-tab indicator tied to Pause, Stop and revoke state, with no click interception. Done means the design is agreed in the thread and the P0 acceptance criteria can be checked in both Standard and Advanced builds. This needs maintainer input before any coding.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Bối cảnh
Connected Browser đã có cơ chế thông báo và kiểm soát cơ bản, nhưng người dùng đang nhìn trực tiếp trang web vẫn khó nhận ra lúc nào agent đang điều khiển, sắp bấm vào đâu và làm cách nào để can thiệp ngay.
Đây là cải tiến UX/AX sau #18, không làm lại browser control, permission/grant, approval hay Pause/Stop đã có.
Hiện trạng từ mã nguồn
src/browser/tab-marker.ts: badgeAImàu tím + tooltip tên agent trên toolbar, không inject dấu hiệu vào trang.src/browser/executor.ts: highlight target trước click vớiHIGHLIGHT_MS = 250, best-effort.src/browser/adapters/cdp/cdp-adapter.ts: CDPOverlay.highlightNodeđã hỗ trợ border/fill highlight.src/sidepanel/browser/BrowserActivity.tsx: activity strip, tên agent/action/domain, nút Pause/Resume/Stop và approval.- #18 (đã đóng) bao gồm UX browser control cơ bản.
Khoảng trống: toolbar badge/side panel không phải lúc nào cũng nằm trong tầm nhìn, highlight 250 ms rất dễ bị bỏ lỡ. Chưa thấy cơ chế con trỏ AI hoạt họa hoặc chỉ báo điều khiển liên tục ngay trong nội dung tab ở các phần mã nguồn đã kiểm tra. Cần xác minh cả Standard và Advanced build trước khi triển khai.
Mục tiêu
Người dùng chỉ cần nhìn tab là phân biệt được rõ AI đang điều khiển / đang tạm dừng / người dùng đã tiếp quản, biết hành động hiện tại và có cách dừng nhanh, mà không đánh đổi bảo mật hoặc gây cản trở tương tác.
Phạm vi triển khai
P0 - Trạng thái rõ ràng ngay trong agent-owned tab
- Thiết kế indicator gọn, dễ nhận diện ngay trong tab do agent sở hữu:
Dewee · AI đang điều khiển, tên agent và trạng tháiActive / Paused / Takeover. - Có thể dùng viền viewport tím nhẹ + compact floating status; không cần hiệu ứng phát sáng mạnh liên tục. Chỉ xuất hiện trong agent-owned tabs thuộc grant hợp lệ. Badge toolbar vẫn là tín hiệu tin cậy dự phòng.
- Pause / Stop phải truy cập nhanh; nếu hiển thị nút trong trang, hành động phải đi qua cùng local control authority và dùng nguyên policy hiện tại. Trạng thái hiển thị phải được đồng bộ với side panel/background.
- Khi revoke, stop, disconnect, tab close, navigation ngoài grant hoặc grant hết hạn: dọn UI đúng vòng đời, không để overlay mồ côi. Khi paused/takeover, trạng thái đổi ngay; không thể hiểu nhầm AI vẫn thao tác.
- Không chặn click, focus, selection, nhập liệu hoặc nội dung website; các thành phần chỉ báo mặc định
pointer-events: nonetrừ controls có chủ đích. Không đặt lên password/payment inputs, approval UI quan trọng, hoặc site/URL bị cấm.
P1 - Trực quan hóa thao tác, không giả lập sai thực tế
- Làm rõ target trước click: highlight dễ thấy hơn 250 ms (ví dụ ~500-800 ms trong Watch mode), có thể chỉnh/thử nghiệm thời lượng; chế độ nhanh giữ latency thấp.
- Hiển thị mô tả thao tác đang diễn ra (ví dụ
Đang bấm nút Gửi,Đang nhập văn bản,Đang cuộn trang) với target đã được làm sạch thông tin nhạy cảm. Không render nội dung gõ, mật khẩu, form data hay DOM riêng tư. - Optional animated agent cursor/focus trail dẫn mắt tới target trước click/scroll, phân biệt rõ đây là con trỏ minh họa của AI chứ không phải hardware mouse pointer. Không tạo click giả, không làm thay đổi hành vi command.
- Dùng chung semantic action state cho Standard và Advanced (CDP) nếu khả thi; tránh mỗi adapter có một cách hiển thị/trạng thái lệch nhau.
P2 - Cài đặt, accessibility và hiệu suất
- Có tuỳ chọn
Minimal / Watch(hoặc tương đương) cho mức độ trực quan; mặc định vừa đủ rõ, tránh gây xao nhãng. - Hỗ trợ vi/en, light/dark/system,
prefers-reduced-motion, tương phản tốt, keyboard accessibility và screen reader. - Không tự giành focus, không gây layout shift; chi phí CPU/DOM tối thiểu; không thêm permission hoặc dependency không cần thiết.
Tiêu chí nghiệm thu
- Trên tab do agent mở và kiểm soát, người dùng không mở side panel vẫn nhận ra trạng thái AI trong lúc hoạt động; tab thường không có indicator.
- Click có target feedback nhìn thấy rõ ở Watch mode; điều chỉnh này không âm thầm tăng delay của Fast/Minimal mode.
- Pause/Stop/revoke/user takeover cập nhật indicator và dừng thao tác theo chính sách hiện hành; không có UI mắc kẹt sau navigation/tab close/crash/reconnect.
- Test cả Standard và Advanced build: SPA navigation, nested iframes, scrolling, nhiều tab, cross-origin/unsupported targets, user takeover giữa action.
- Test reduced-motion, bàn phím, dark/light, vi/en; overlay không intercept click/typing và không lộ dữ liệu nhạy cảm.
- Không thay đổi authorization, approval, grant scope, tab ownership, không truyền DOM/typed contents lên telemetry để phục vụ hiệu ứng.
- Có e2e/video hoặc screenshot minh chứng rõ các trạng thái Active/Paused/Stopped/Takeover, cũng như lúc click/scroll.
Gợi ý thực thi
Tận dụng ExecutorDeps.onActivity, PanelState, TabMarker, các adapter highlight đã có. Bắt đầu bằng in-tab indicator + action state (P0), rồi mới thêm con trỏ hoạt họa (P1). Overlay trong trang là UX hint, không phải ranh giới bảo mật: mọi quyền, Pause/Stop và approval vẫn được thực thi ở extension background/local guard.
Không nằm trong phạm vi: thay mới CDP/Standard executor, thay permission model, sửa các issue bảo mật khác, hoặc làm full remote-desktop streaming.
- Lingua principale
- TypeScript
- Stelle
- 2
- Fork
- 1
- Merge medio
- 2g 5h
- PR unite (30g)
- 4
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di nextlevelbuilder/dewee-chrome-ext
-
feat(browser): structured observations v2 and policy-checked micro-batching for adaptive decisionsApertaenhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
-
feat(quality): QGP browser postconditions, DOM-first verification và opt-in visual escalationApertaenhancement security
Difficoltà 5/5 Più di una settimana Idoneità per principianti 28/100
-
enhancement security
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
nextlevelbuilder/dewee-chrome-ext#35 · 2 commenti ·
-
security(browser): block off-grant navigations in agent tabs before the request leaves ChromeForse di nuovo libera @mrgoonie l’ha presa 48 giorni fa e non c’è nessuna pull request aperta. Apertaneeds-design security
nextlevelbuilder/dewee-chrome-ext#33 · 1 assegnatario ·
-
bug
Difficoltà 4/5 1-2 giorni Idoneità per principianti 35/100
Tutte le issue di nextlevelbuilder/dewee-chrome-ext
Issue simili
-
prio:low scope:hud
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
OliverRomhagen/vrigstad-joyride#953 ·
I maintainer di solito rispondono entro 1 giorno
-
review-followup
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
griffinwork40/agent-afk#5446 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
kacper-szewczyk/Ticknest#346 ·
I maintainer di solito rispondono entro 1 giorno
-
echarts geo: a GeoJSON URL that returns 200 with a body that is not JSON is fetched on each refreshApertabug plugin/echarts/geo
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
Yeachan-Heo/gajae-code#8230 ·
I maintainer di solito rispondono entro 1 giorno