Commit Graph

11 Commits

Author SHA1 Message Date
QQ 7774d6fc28 fix: mount auto-review listeners through ctx.inject so the host activates on a clean profile (v1.0.2)
Cordis throws when a service is read before it is declared in inject:
'cannot get property "permissionPresets" without inject'. apply() probed
ctx.permissionPresets first, so a profile without permissionPresets/agents
died during activation and its else-branch ctx.inject fallback was dead code.
The plugin now always wires the listeners through a scoped ctx.inject, which
also re-mounts them when the auto-review services appear later.
2026-11-14 17:21:52 +08:00
QQ 5c80061f08 feat: default new blank sessions to auto-review (v1.0.1) 2026-11-13 10:04:55 +08:00
QQ eeac9d7e2a feat: remove the generative-mcpapps skill detection block
The skill status/install section is gone, together with its client probe, the host /better-display/skill-status route, the skill scanning implementation, the bundled skills/generative-mcpapps pack, its copy strings and tests. Reader still renders mcp-app fences the model emits; it just no longer detects or guides installing that skill.

Version 0.4.4.
2026-11-12 22:40:35 +08:00
QQ 6ed202f029 feat: rename settings section to Better Chat and make approval shortcuts configurable
The settings section is now 'Better Chat' in both dictionaries.

Approval key bindings are configurable in that section and persisted under dsh.better-chat.v1: click a keycap and press the new combination. Allow-type actions stay on Enter and reject on Esc; modifiers are free. Always-allow can be cleared, and a restore-defaults button resets everything. Invalid base keys, modifier-less always-allow and conflicts are rejected with inline copy.

The approval routing and the key hint read the live bindings, and saving dispatches better-chat:bindings-changed so the card hint rebuilds without a restart. Adds bindings tests and extends the approval/key-hint tests; version 0.4.2.
2026-11-12 22:20:29 +08:00
QQ a4844006a6 feat: show approval key hints and add Ctrl/Cmd+Enter always-allow
Option A from the preview: the action row shows Enter <allow label> / Ctrl+Enter <always label> / Esc <reject label>. Labels come from the card's real buttons, the hint is pointer-transparent and aria-hidden, disappears when the card is answered and is rebuilt after React re-renders.

Ctrl+Enter (Cmd+Enter on Apple platforms) clicks the always-allow button, only when the card has one; the official card ignores modified keys, so the chord is handled even while focus is inside the card. Typing in an input still suppresses everything.

Adds tests/chat/key-hint.test.ts and extends the approval-key decisions; version 0.4.1.
2026-11-12 22:12:07 +08:00
QQ 1b3bb75a0f feat: merge dsh-better-display reading view into dsh-better-chat
One package, one Web client artifact (id dsh-better-chat) now ships both the reader view and the chat enhancements (approval Enter/Esc, permission UI, plugin-store update button).

- vendor dsh-better-display 0.3.12 sources, docs, skills and tests; host entry is src/host.ts, client entry src/client/index.tsx -> reader-plugin.tsx
- switch the build to tsdown with the dshx 0.9.7 client bundle adapter vendored under tools/; target platform table pinned to dsh-v0.2.2-rc.2
- keep Safari -webkit-backdrop-filter in the built reader CSS
- port chat tests to vitest (tests/chat); re-baseline the upstream reader suite on the merged layout
- bump to 0.4.0 and document the merge, provenance and toolchain
2026-11-12 21:54:14 +08:00
newbie f2f11528bd fix: stop overwriting existing session permissions 2026-11-12 18:52:16 +08:00
QQ 40acdd2b5c Import tests/store-update.test.mjs 2026-11-12 12:12:40 +08:00
QQ f079c6ca71 Import tests/client-loader.test.mjs 2026-11-12 10:47:01 +08:00
QQ 499e0500d4 Import tests/permission-policy.test.mjs 2026-11-11 23:39:03 +08:00
QQ 30ca465644 Import tests/approval-keys.test.mjs 2026-11-11 22:52:40 +08:00