This commit consolidates a large set of host-mode security and UX fixes across backend and frontend. Security / execution model: - Make permission/execution mode switches apply immediately (no deferred pending-only behavior). - Keep runtime mode change notices durable and visible via user-message guidance path. - Add explicit runtime message source taxonomy support and persistence: user / presend / guidance / notify / sub_agent / background_command. - Ensure guidance/notify insertion is batched per tool-cycle so mid-run inserts are committed together. - Separate notify from guidance semantics for mode-change notices. - Add direct-mode auto-fallback handling visibility on frontend. Approval and command gating: - Align run_command approval pre-check logic with docker behavior for approval/auto_approval modes in host execution paths. - Keep approval retry flow and final-result semantics intact when permission errors trigger approval. - Externalize forbidden command keyword list into JSON config: config/forbidden_commands.json. - Update forbidden command rejection message to user-facing wording: 用户不允许执行包含“... ”的指令. Prompt/runtime guidance: - Refine execution-mode runtime rule text to avoid endless workaround loops: one safe alternative first, then request switching to direct mode when truly required. Chat rendering / message UX: - Prevent injected guidance/notify user-messages from incorrectly triggering assistant work header/timer chain. - Restore correct visibility after history reload while preserving runtime-source behavior. - Update user-header icon/label rendering by message source: - guidance -> 引导 + navigation icon - notify/sub_agent/background_command -> 通知 + bell icon - user/presend -> keep normal user header. - Add new icons: static/icons/navigation.svg, static/icons/bell.svg. Approval panel UX: - Convert desktop approval panel from layout-compress sidebar to overlay + blur sheet. - Fix panel transition behavior (remove unintended vertical motion; use dedicated desktop overlay transition). - Improve approval result display: - decision and reason split lines, - green/red status styling, - multiline reason rendering, - auto-collapse delay adjusted to 3s. Execution mode TTL feedback: - When direct mode auto-expires to sandbox, frontend menu state is updated from status snapshot. - Show non-auto-dismiss warning toast to explicitly notify auto-fallback. Misc consistency updates: - Execution mode label text cleanup in composer. - Runtime notice wording normalization (权限模式修改为..., 执行环境修改为...). Build/test notes: - Frontend rebuilt after UI changes. - Smoke tests passed for server refactor path.
53 lines
2.1 KiB
YAML
53 lines
2.1 KiB
YAML
- generic [ref=e5]:
|
|
- banner [ref=e6]:
|
|
- heading "Vue Dynamic Dashboard" [level=1] [ref=e7]
|
|
- paragraph [ref=e8]: "Last updated: 2026/4/27 18:09:45"
|
|
- generic [ref=e9]:
|
|
- button "Refresh Data" [ref=e10] [cursor=pointer]
|
|
- button "Pause Real-time" [ref=e11] [cursor=pointer]
|
|
- button "Add Item" [ref=e12] [cursor=pointer]
|
|
- generic [ref=e13]:
|
|
- button "Dashboard" [ref=e14] [cursor=pointer]
|
|
- button "Items" [active] [ref=e15] [cursor=pointer]
|
|
- button "Settings" [ref=e16] [cursor=pointer]
|
|
- generic [ref=e62]:
|
|
- generic [ref=e63]:
|
|
- generic [ref=e64]:
|
|
- strong [ref=e65]: Item A-687
|
|
- paragraph [ref=e66]: Dynamic generated item with random properties
|
|
- generic [ref=e67]: active
|
|
- generic [ref=e68]:
|
|
- generic [ref=e69]:
|
|
- strong [ref=e70]: Item B-872
|
|
- paragraph [ref=e71]: Dynamic generated item with random properties
|
|
- generic [ref=e72]: active
|
|
- generic [ref=e73]:
|
|
- generic [ref=e74]:
|
|
- strong [ref=e75]: Item C-11
|
|
- paragraph [ref=e76]: Dynamic generated item with random properties
|
|
- generic [ref=e77]: active
|
|
- generic [ref=e78]:
|
|
- generic [ref=e79]:
|
|
- strong [ref=e80]: Item D-717
|
|
- paragraph [ref=e81]: Dynamic generated item with random properties
|
|
- generic [ref=e82]: active
|
|
- generic [ref=e83]:
|
|
- generic [ref=e84]:
|
|
- strong [ref=e85]: Item E-433
|
|
- paragraph [ref=e86]: Dynamic generated item with random properties
|
|
- generic [ref=e87]: inactive
|
|
- generic [ref=e88]:
|
|
- generic [ref=e89]:
|
|
- strong [ref=e90]: Item F-64
|
|
- paragraph [ref=e91]: Dynamic generated item with random properties
|
|
- generic [ref=e92]: active
|
|
- generic [ref=e93]:
|
|
- generic [ref=e94]:
|
|
- strong [ref=e95]: Item G-597
|
|
- paragraph [ref=e96]: Dynamic generated item with random properties
|
|
- generic [ref=e97]: active
|
|
- generic [ref=e98]:
|
|
- generic [ref=e99]:
|
|
- strong [ref=e100]: Item H-990
|
|
- paragraph [ref=e101]: Dynamic generated item with random properties
|
|
- generic [ref=e102]: active |