Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
310 commits
Select commit Hold shift + click to select a range
f26baa5
fix(qa): isolate DeepSeek pipeline and preserve open conversations
Nov 14, 2026
3c527c8
fix(mobile): preserve explicit selection adapter for voice questions
Nov 14, 2026
97ce447
fix(qa): stabilize answer scrolling during footer layout
Nov 14, 2026
abd0b23
fix: polish accessibility guide and ask-anything UI
Nov 14, 2026
81e5d6d
fix(ui): apply design feedback for notifications, settings and search
Nov 15, 2026
4c16c3a
chore(dev): prepare 2.0.2-dev.1 development build
Nov 15, 2026
806376e
fix(ui): restore overview heatmap and visible selection states
Nov 15, 2026
d3fbbbb
fix(ui): share delete confirmation and align button radii
Nov 15, 2026
e22cc6b
fix(ui): include remaining text buttons in the 12px radius
Nov 15, 2026
e66dbed
fix(ui): finish the 12px button radius and make navigation waits real
Nov 15, 2026
7fb17c6
feat(overview): port the Rare UI GitHub Activity card for the yearly …
Nov 15, 2026
e417050
chore(release): 2.0.2-dev.4+build.20261115
Nov 15, 2026
cd1f19b
merge(beta): bring the design feedback branch up to the latest beta d…
Nov 15, 2026
d04e625
fix(ui): keep the selected segment visible and record the open design…
Nov 16, 2026
c7fac70
docs: record the full design-feedback requirements for the remaining …
Nov 16, 2026
205579c
fix(ui): align the remaining design-feedback controls
cursoragent Nov 16, 2026
95d8acf
Merge branch 'fix/mic-press-latency' into cursor/design-feedback-rema…
Nov 16, 2026
e3c3fd0
Merge branch 'fix/capsule-popup-stability' into cursor/design-feedbac…
Nov 16, 2026
79cb847
Merge branch 'fix/review-startup-voice-edit' into cursor/design-feedb…
Nov 16, 2026
a0069e7
Merge branch 'fix/correction-safety' into cursor/design-feedback-rema…
Nov 16, 2026
507dfe0
Merge branch 'feat/service-usage-ledger' into cursor/design-feedback-…
Nov 16, 2026
6d6ced5
fix(ui): keep overview, settings, and update selection readable
Nov 17, 2026
c45430f
docs: park the three-platform UI plan on Dev-1
Nov 17, 2026
b1f0942
docs: record the approved React refactor plan
Nov 17, 2026
e4dcedd
test: add a frontend parity measurement probe
Nov 17, 2026
fbcf76c
refactor(frontend): centralize the runtime and shared history snapshots
Nov 17, 2026
e4acc32
refactor(ui): scope overlays to the application viewport
Nov 17, 2026
0d902ca
test(frontend): cover host readiness and history write reconciliation
Nov 17, 2026
baacfbc
test(ui): verify viewport geometry and restore modal focus across eng…
Nov 17, 2026
74f5e37
refactor(app): compose startup and navigation per window
Nov 17, 2026
267ea52
refactor(history): share snapshots across the dashboard, records, and…
Nov 17, 2026
a4d6f6d
refactor(auxiliary): coordinate native window geometry and sessions
Nov 17, 2026
e508854
refactor(app): use typed embedded panel dismissal
Nov 17, 2026
2dd1864
test(history): exercise coordinated writes and heatmap scale
Nov 17, 2026
90a4dda
test(auxiliary): exercise delayed geometry and fallback copy
Nov 17, 2026
caa3951
test(frontend): isolate browser test servers across worktrees
Nov 17, 2026
e06fbbc
fix(capsule): serialize hit-region writes and remove unused chat effects
Nov 17, 2026
93468c1
test(ui): measure the active viewport and retained drawer
Nov 17, 2026
7793206
refactor(settings): separate navigation, providers, sync, and model c…
Nov 17, 2026
ce506c9
refactor(frontend): separate content and onboarding workflows from th…
Nov 17, 2026
c2f6689
test(app): exercise Android panel handoffs and browser back
Nov 17, 2026
11b0179
refactor(updates): share update operations and scope presentation
Nov 17, 2026
5574336
test(updates): exercise cancellation, installation and fallback
Nov 17, 2026
dcd15ef
test(frontend): verify cancellation preserves edits and vocabulary se…
Nov 17, 2026
7e74753
refactor(frontend): connect canonical window routes and verify integr…
Nov 17, 2026
e63fa61
fix(frontend): keep native appearance independent of view modules
Nov 17, 2026
0369917
fix(settings): confirm native writes and scope shared controls
Nov 17, 2026
26904a5
fix(settings): preserve credential drafts when provider changes are b…
Nov 17, 2026
ccf6683
test(settings): verify clipboard acknowledgement from native bridge
Nov 17, 2026
79152b4
fix(preview): keep the selected theme across reloads
Nov 17, 2026
f29ae01
fix(history): announce a rejected clear once
Nov 17, 2026
a37eba7
refactor(frontend): locate content controls with their feature owners
Nov 17, 2026
dcd7b8f
test(settings): verify protocol validation and completed editor teardown
Nov 17, 2026
1bfc633
refactor(capsule): route native window events through scoped adapters
Nov 17, 2026
54ccf85
test(capsule): cover typed fallback routing and late rail preferences
Nov 17, 2026
a5ade0a
test(core): keep ASR usage fixtures inside history retention
Nov 17, 2026
02b56a1
merge: stage the React architecture on the Dev-1 product baseline
Nov 17, 2026
125f4a1
fix(frontend): reconcile notifications and merged locale keys
Nov 17, 2026
debaaf3
docs: track Dev-1 product parity during the React merge
Nov 17, 2026
ab1d8da
fix(capsule): restore question recording presentation and actions
Nov 17, 2026
013a547
fix(overview): restore Dev-1 dashboard and native annual activity
Nov 17, 2026
f7c2748
fix(settings): restore DeepSeek and web search configurations
Nov 17, 2026
d0291c5
fix(ui): restore Dev-1 feedback through the viewport interaction host
Nov 17, 2026
b563e34
fix(qa): restore Dev-1 conversations, sources and read aloud
Nov 17, 2026
7c167ac
fix(ui): restore Dev-1 grid, navigation and shared control geometry
Nov 17, 2026
3eddfe2
test(capsule): observe question commands through the native fixture
Nov 17, 2026
54fba5d
fix(startup): show the Dev-1 progress mask until readiness
Nov 17, 2026
5f5a464
fix(tools): restore the Dev-1 grids and refresh data at mutation boun…
Nov 17, 2026
62816cb
test(release): verify all desktop manifests preserve the release version
Nov 17, 2026
8be988e
fix(downloads): render live model jobs in the main notification stack
Nov 17, 2026
5168343
fix(feedback): route sync, vocabulary and update results through the …
Nov 17, 2026
91d135c
fix(local-asr): keep model actions stable and confirm destructive cha…
Nov 17, 2026
a2a205c
test(ui): validate reference geometry and latest native annual rankings
Nov 17, 2026
3dc4428
test(qa): run DeepSeek read aloud checks against the canonical component
Nov 17, 2026
472f374
fix(ui): keep neighboring settings switches still
Nov 17, 2026
098d80d
fix(style-packs): show a red trash notice with a working undo window
Nov 17, 2026
cc94d54
test(capsule): wait for asynchronous recording commands
Nov 17, 2026
ce5a1b1
test(harmony): refresh the Dev-1 IPC command inventory
Nov 17, 2026
9d15fe4
fix(ui): remove the stale page mask and keep narrow model menus usable
Nov 17, 2026
6da17fc
style(ui): format the merged notification host
Nov 17, 2026
32a2953
fix(settings): recheck the official DeepSeek channel before seeding c…
Nov 17, 2026
b0a1b8e
fix(settings): use the settings header and restore focus for General …
Nov 17, 2026
4d8e43e
fix(providers): flush Omni model edits and use scoped channel deletion
Nov 17, 2026
e0c492f
fix(settings): credit the annual activity component and translate loa…
Nov 17, 2026
54aa46a
test(feedback): exercise sync and style notifications through the win…
Nov 17, 2026
472a068
fix(settings): restore focus after the new surface commits
Nov 17, 2026
439c4ac
fix(shell): restore Dev-1 sidebar selection and navigation parity
Nov 17, 2026
16fa9dc
fix(qa): align native window coverage and close lifecycle
Nov 17, 2026
974c222
fix(settings): keep provider drafts, controls and Mac gates consistent
Nov 17, 2026
cd4a2d0
fix(shell): keep desktop drag chrome off compact headers
Nov 17, 2026
f7beb77
test(navigation): verify platform-specific tools order
Nov 17, 2026
d1fe734
fix(ui): keep transition surface identity through a rapid return
Nov 17, 2026
02e3534
fix(ui): sequence page changes through their clear surface
Nov 18, 2026
015952b
ci(ui): retain acceptance screenshots for both browsers
Nov 18, 2026
3f0276a
fix(overview): fit annual dashboard within desktop viewport
Nov 18, 2026
38ed062
test(ui): align main window contract with dashboard dimensions
Nov 18, 2026
a27de11
Unify status notices with measured viewport motion
Nov 18, 2026
cb9aa89
chore(ui): format refinements and collect feedback acceptance images
Nov 18, 2026
29fb445
Cover status notice reflow during exit
Nov 18, 2026
c64a771
chore(ui): format notice reflow regression
Nov 18, 2026
bbf6e7c
Keep notification harness outside browser type checking
Nov 18, 2026
1dd441a
fix(overview): retain fitted calendar and compact error actions
Nov 18, 2026
e7a5ea4
test(overview): enforce complete columns with subpixel geometry
Nov 18, 2026
4caa0f5
Add shared Base UI slider compositions and migrate production ranges
Nov 18, 2026
e5fe14d
Cover slider interactions, production persistence and acceptance gallery
Nov 18, 2026
38c0516
docs: draft cloud sync agreement for factual and legal review
Nov 18, 2026
aacb368
docs: author updated development sync disclosure contract
Nov 18, 2026
f279342
Add structured dialogs and await asynchronous confirmation actions
Nov 18, 2026
c3de282
Require renewed cloud disclosure consent before encrypted sync replay
Nov 18, 2026
cd8c337
Protect consent transitions across cloud sync clients
Nov 18, 2026
9d776e9
Cover cloud consent, backup creation and deletion lifecycles
Nov 18, 2026
3da7a49
Keep confirmation layout and resume eligible unlocked sync
Nov 18, 2026
d9880b9
Wait for settings IPC and cover asynchronous cloud deletion
Nov 18, 2026
5c185b8
Await shared danger confirmation for history and usage deletion
Nov 18, 2026
19714f0
Confirm vocabulary and correction removals with retryable batches
Nov 18, 2026
442dece
Confirm style pack, listing, and provider channel deletion at commit …
Nov 18, 2026
335443f
Wait for ASR file deletion and confirm other persisted data removals
Nov 18, 2026
7d39726
Preview cloud sync through the real settings flow and clarify consent…
Nov 18, 2026
6743d81
test(ui): cover committed style pack and ASR file deletion
Nov 18, 2026
b5fcf3d
test(ui): avoid outdated channel copy assertion
Nov 18, 2026
8f471f9
Keep deletion batch regression compatible with app types
Nov 18, 2026
67fd017
Enable isolated cloud scenarios on the Orca development host
Nov 18, 2026
49ec4f1
Paint sidebar navigation with flat solid selection states
Nov 18, 2026
91d4cd2
Show cloud reconsent from the browser preview main window
Nov 18, 2026
efb02a6
Keep the shared style route label imported by the shell
Nov 18, 2026
c4fdb7b
Localize destructive confirmations and outcomes
Nov 18, 2026
0968076
Allow confirmed cloud deletion without replaying an unapproved upload
Nov 18, 2026
aa6bec9
Flatten Beta update controls and cover sidebar selection in both themes
Nov 18, 2026
b404dcf
Explain mismatched cloud sync passwords inline
Nov 18, 2026
4d20b56
Assert the inert sync switch state while password confirmation is open
Nov 18, 2026
ea3ba2d
Check responsive update button dimensions in the owning stylesheet
Nov 18, 2026
93e74f2
Use canonical React feature and control modules
Nov 18, 2026
a6f4ad5
Add opt-in packaged Apple Silicon launch smoke pinned to source SHA
Nov 18, 2026
f5c4d6c
Show cloud sync password visibility per field and clarify API key dis…
Nov 18, 2026
263a1bc
Put audio and model subscriptions behind feature APIs
Nov 18, 2026
c1f5ea1
Expose encrypted sync event subscriptions through its API
Nov 18, 2026
15d16c7
Match Origin UI terms and decision layouts through shared dialogs
Nov 18, 2026
2d938b3
Keep translated settings headings readable and align appearance controls
Nov 18, 2026
9323d71
Verify Origin dialog geometry with browser-rendered styles
Nov 18, 2026
37a7339
Clarify encrypted API key uploads in cloud sync draft
Nov 18, 2026
42b4a1b
Match disclosure candidate to runtime notice fields
Nov 18, 2026
e3cc0bc
Use the independently authored cloud disclosure copy in the app
Nov 18, 2026
7c51c28
Verify the rendered slider in Android scrolling and audio settings
Nov 18, 2026
c2046c4
Move the touch slider into view before sending native input
Nov 18, 2026
1fd09c1
Keep overview summaries in flow and preserve dates in short layouts
Nov 18, 2026
0088cda
Align multimodal provider tools in one responsive row
Nov 18, 2026
d637f04
Reserve room for localized overview controls in short windows
Nov 18, 2026
c5174f5
Shorten navigation fades and remove popup overshoot
Nov 18, 2026
fb60e8c
Verify ready and delayed navigation and popup motion
Nov 18, 2026
0655db7
Leave more frame headroom for ready page transitions
Nov 18, 2026
99dc9e3
Align dialog geometry and keyboard checks with the settled decision l…
Nov 18, 2026
f6c3647
Use the fixture locale for the dialog close button assertion
Nov 18, 2026
0f683f7
Accept identity transforms on settled history records
Nov 18, 2026
f319171
Retire superseded page handoffs across animation stages
Nov 18, 2026
10fd766
Keep multimodal provider tools on one row after feedback
Nov 18, 2026
b5b4771
Own native panel and remote input events in their domain APIs
Nov 18, 2026
58e58ed
Respect feedback and download control lifetimes across view changes
Nov 18, 2026
e645925
Keep the Web Search fixture navigation clear of alerts
Nov 18, 2026
7b675c2
Merge React refactor with beta Windows input changes
Nov 18, 2026
5cb00a0
Fix voice activation feedback capsule payload
Nov 18, 2026
c080359
Allow cloud deletion after declining renewed consent
Nov 18, 2026
10c7a1b
Allow disabled legacy sync users to review cloud backups
Nov 18, 2026
68fd331
Wait for tools navigation to finish expanding
Nov 18, 2026
11bf6da
fix(ui): stabilize sync feedback and notification layout
Nov 18, 2026
9184115
fix(sync): keep cancellation inside the active modal
Nov 18, 2026
80a3c50
release: prepare OpenLess 2.0.3 Beta.1
Nov 18, 2026
221a21c
docs: update README developer credits
Nov 18, 2026
a1dd1aa
Retain the app bundle for the DMG architecture check
Nov 20, 2026
de73d70
Complete Ask with reviewed streaming and bounded context
Nov 20, 2026
10cd7ea
Package the reviewed Ask candidate de73d70b for Apple Silicon
Nov 20, 2026
fc9a1c8
Build the cleaned OpenLess Apple Silicon Dev DMG
Nov 21, 2026
554e2b2
Package the final OpenLess Apple Silicon Dev DMG
Nov 21, 2026
ebd5abc
Package the integrated Main App and Ask Dev DMG
Nov 21, 2026
a8f6443
Package Main App and Ask with the Advanced strategy side editor
Nov 21, 2026
4198a75
docs: clarify the stability freeze and contribution limits
appergb Nov 21, 2026
bbb81d8
docs: clarify the stability freeze and contribution limits
appergb Nov 21, 2026
661685e
chore(ask): freeze deferred assistant rewrite
Nov 21, 2026
ba3fc60
Refine Compact prompts and validate continuity updates
Nov 22, 2026
be74551
Build a local Beta Dev package with Ask Anything disabled
Nov 22, 2026
127b965
Restore the macOS first-frame signal after Beta integration
Nov 22, 2026
f8ffe5f
Version the repaired local Beta Dev package
Nov 22, 2026
abda60a
docs: consolidate and verify OpenLess documentation
Nov 22, 2026
c02c333
docs: consolidate and verify OpenLess documentation
Nov 22, 2026
c0ae74c
Preserve legacy Ask shortcut preferences in encrypted sync
Nov 22, 2026
553b57d
Restore the previous Dev build's mixed web search
Nov 22, 2026
58db334
Version the search and sync compatibility Dev package
Nov 22, 2026
c22bcea
Keep the legacy device-profile test scoped to its captured field
Nov 22, 2026
f54621a
docs: repair remaining Linux contract references
Nov 22, 2026
5966d97
docs: repair remaining Linux contract references
Nov 22, 2026
7c3dbe1
Improve desktop page switching and align web search fields
Nov 22, 2026
a279b71
Center close icons and simplify the marketplace upload picker
Nov 22, 2026
bc6732e
Merge branch 'local/beta' into dev/app-style-routing
Nov 22, 2026
774690f
Route dictation style packs by the captured input app
Nov 22, 2026
0618edf
Use the existing Core test directory convention
Nov 22, 2026
fdcaaf2
Keep the isolated iOS Core patch aligned with dictation capture
Nov 22, 2026
ce473ad
Keep desktop target routing out of mobile and restore the mouse test …
Nov 22, 2026
fdbe2ce
Repair the Dev baseline UI contracts and Android Ask gate
Nov 22, 2026
3564bea
Fix WebKit overview scrolling and share the Ask build gate with test …
Nov 22, 2026
1a9555d
Keep Escape in the open menu when a dialog is visible
Nov 22, 2026
02490c6
Wait for closed menus before checking layout and persisted typography
Nov 22, 2026
457e9ae
Exercise search after the long menu finishes its focus handoff
Nov 22, 2026
e63918d
Capture popup Escape before document handlers and settle scroll tests
Nov 22, 2026
98477f0
Fix app style inheritance, refresh, and custom prompt precedence
Nov 22, 2026
a386f1a
Load app classifications from the catalog API and add a dedicated Sty…
Nov 22, 2026
8968424
Refresh the shared IPC inventory for catalog refresh
Nov 22, 2026
6204a2f
Keep application names aligned while system icons load
Nov 22, 2026
07abddd
Apply automatic style dashboard feedback and app selection dialogs
Nov 22, 2026
e49c2e3
Unify dialog footer surfaces and align confirmation actions
Nov 22, 2026
17e962f
Update the fixed-dashboard scroll isolation contract
Nov 22, 2026
4edc0ba
Make automatic style app lists searchable and scrollable
Nov 22, 2026
c2ddb09
fix(desktop): preserve Raw passthrough and refresh apps offline
Nov 22, 2026
4e6b17c
fix(capsule): align Windows translation badge and rail stacking with …
Nov 24, 2026
0b448c4
fix(recording): preserve long audio and verify streaming completion
Nov 24, 2026
8f477f8
fix(ci): restore capsule builds and isolated iOS validation
Nov 24, 2026
a3b6dc7
fix(recording): spill only processed audio archives
Nov 24, 2026
d4d2a00
fix(recording): clean up archive faults and bound host range reads
Nov 24, 2026
5dfa447
fix(recording): finalize retained WAV after append failures
Nov 24, 2026
c2f7db0
fix(ci): align Windows preview calls and backend test lockfile
Nov 24, 2026
61db153
fix(settings): render polish strategy once and align UI regressions
Nov 24, 2026
ea574db
fix(recording): harden archive range validation, ASR retryability and…
Nov 25, 2026
c5f2987
Merge branch 'handoff/long-recording-20261126' into integrate/all-bra…
Nov 26, 2026
b6ddd2d
merge: reconcile origin/release/2.0.2-beta.7 already integrated in PR…
Nov 26, 2026
c20e2ab
merge: reconcile origin/fix/sync-feedback-layout already integrated i…
Nov 26, 2026
db21b64
merge: reconcile origin/fix/ci-maintenance-consolidation already inte…
Nov 26, 2026
7d82945
merge: reconcile origin/fix/android-dual-source-updates already integ…
Nov 26, 2026
b75a28d
merge: reconcile origin/docs/stability-first-2026-11 already integrat…
Nov 26, 2026
7c45263
merge: reconcile origin/docs/remove-jimmy54-readme already integrated…
Nov 26, 2026
93b88d3
merge: reconcile dev/app-style-routing already integrated in PR #1484
Nov 26, 2026
95097e0
merge: reconcile origin/codex/beta-react-integration already integrat…
Nov 26, 2026
bb27675
Merge branch 'fix/windows-capsule-translation-position-pr' into integ…
Nov 26, 2026
feb815d
merge: integrate deferred Ask compaction and session lifecycle
Nov 26, 2026
656ced6
merge: preserve limited encrypted sync experiment with current consen…
Nov 26, 2026
68c7ede
merge: port lazy audio cue disposal into the current capsule lifecycle
Nov 26, 2026
9294925
merge: reconcile alternate documentation cleanup while retaining curr…
Nov 26, 2026
3894d9f
merge: carry Voice Edit open failures through the current host and se…
Nov 26, 2026
8d91a77
merge: reconcile superseded fix/updater-aliyun-github-fallback
Nov 26, 2026
42965ac
merge: reconcile superseded fix/pipeline-segment-alignment
Nov 26, 2026
0a789f9
merge: reconcile superseded fix/macos-live-input
Nov 26, 2026
781a7aa
merge: reconcile superseded codex/ci-build-performance
Nov 26, 2026
ed483fe
merge: reconcile superseded codex/ios-ci-performance
Nov 26, 2026
c570112
merge: reconcile superseded ci/auto-dispatch-platform-releases
Nov 26, 2026
a138a8c
merge: reconcile reviewed Ask candidate with the later assistant impl…
Nov 26, 2026
e076b9b
merge: preserve historical packaging branch build/ask-item6-dev-dmg
Nov 26, 2026
f708432
merge: preserve historical packaging branch build/main-app-cleanup-de…
Nov 26, 2026
6aa1d0e
merge: preserve historical packaging branch build/main-app-cleanup-de…
Nov 26, 2026
038d21a
merge: preserve historical packaging branch build/dev-main-ask-33d940c9
Nov 26, 2026
8cbdd1a
merge: preserve historical packaging branch build/dev-main-ask-5ab2c0d6
Nov 26, 2026
283b24f
fix(integration): preserve platform dispatch and align audio cue regr…
Nov 26, 2026
5687c1f
test(sync): align limited-store fixtures with canonical channel and i…
Nov 26, 2026
0e7c2ac
chore(aoci): align branch integration and current lifecycle contracts
Nov 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
558 changes: 309 additions & 249 deletions .aoci/baseline.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ Switch the mode from the capsule in the main window or under Settings:

## Ask Anything (desktop)

On macOS or Windows, press the recording shortcut with Space to open Ask Anything. Type a question or dictate into the draft, then send it when ready. Answers expand in the same window. Write and edit requests can deliver to a verified external input target. If OpenLess cannot confirm the write, the result stays available in Ask for manual copying. See the [desktop Ask contract](docs/ask-unified-entry-contract.md) for routing and delivery details.
On macOS or Windows, press the recording shortcut with Space to open Ask Anything. Type a question or dictate into the draft, then send it when ready. Answers expand in the same window. Write and edit requests can deliver to a verified external input target. If OpenLess cannot confirm the write, the result stays available in Ask for manual copying.

## Dictionary

Expand Down
2 changes: 1 addition & 1 deletion USAGE.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ Linux 使用原生 egui 宿主,不依赖 Tauri 或 WebKitGTK。

## 随便问(桌面端)

在 macOS 或 Windows 按录音快捷键和空格打开「随便问」。可以输入问题,也可以使用录音胶囊把转写填入草稿,确认后再发送。问题在同一个窗口展开答案。写作或编辑指令只有在应用核实原输入目标后才写回。未能确认写入时,生成内容会留在「随便问」,可手动复制。详见[桌面入口契约](docs/ask-unified-entry-contract.md)。
在 macOS 或 Windows 按录音快捷键和空格打开「随便问」。可以输入问题,也可以使用录音胶囊把转写填入草稿,确认后再发送。问题在同一个窗口展开答案。写作或编辑指令只有在应用核实原输入目标后才写回。未能确认写入时,生成内容会留在「随便问」,可手动复制。

## 词典

Expand Down
132 changes: 70 additions & 62 deletions aoci.code.txt

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions docs/ATTRIBUTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,17 @@ Rare UI Password Input is the visual reference for OpenLess's shared input field
## Rare UI Toast

The shared toast surface adapts Rare UI's Toast panel, glyphs, and tile transitions from [toast.tsx](https://github.com/swamimalode07/rare-ui/blob/main/components/ui/toast.tsx) (Copyright (c) 2026 Swami Malode, [MIT + Commons Clause + Attribution](../openless-all/app/public/licenses/rare-ui-LICENSE.txt)). OpenLess uses its existing per-window notification controller and viewport instead of Sonner's global store. `useToast()` exposes non-modal variants and task updates; `confirm`, `warn`, and `openDialog` remain separate modal APIs. The credit appears in Settings → About and updates → Component credits.

## Rare UI AI Prompt Box and Streaming Response

[AI Prompt Box](https://github.com/swamimalode07/rare-ui/blob/main/components/ui/prompt-box.tsx) and
[Streaming Response](https://github.com/swamimalode07/rare-ui/blob/main/components/ui/streaming-response.tsx) are the
interaction references for OpenLess Ask Anything. The OpenLess implementation uses
its own native shortcut, voice, and streaming contracts rather than the demo's mock backend.

The upstream Prompt Box files in `openless-all/app/third_party/rare-ui` come from
[`33f7ce51`](https://github.com/swamimalode07/rare-ui/tree/33f7ce51e5a41fb7caef66b7aad0812b5bb2ab17)
and are included as part of the app, not offered as a component library.

- Rare UI code: Copyright (c) 2026 Swami Malode, [MIT + Commons Clause + Attribution](../openless-all/app/public/licenses/rare-ui-LICENSE.txt).
- Open Runde fonts: [SIL Open Font License 1.1](../openless-all/app/public/licenses/open-runde-OFL.txt).
2 changes: 2 additions & 0 deletions docs/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ flowchart LR

### 问答与选区

桌面独立 Ask 窗口由 [ask-window](../openless-all/app/ask-window/) 与 [原生 Ask 宿主](../openless-all/app/src-tauri/src/ask_window/) 管理。提交、工具、附件及安全写回见[随便问接口](development/ask.md);公开 Beta 的入口是否开放仍取决于[构建标记](development/delivery.md)。

桌面问答窗口由 [windowRoutes.tsx](../openless-all/app/src/app/windowRoutes.tsx) 分派。界面发送 `qa_submit_text` 等命令给 [Tauri 问答适配](../openless-all/app/src-tauri/src/commands/qa.rs),由 [Core 问答服务](../openless-all/app/crates/openless-core/src/qa_service.rs) 管理会话、请求和结果事件。[选区语音服务](../openless-all/app/crates/openless-core/src/selection_voice_service.rs) 根据语音意图生成编辑预览或问答,确认写回时由宿主复核原输入目标。Linux 的问答界面经 Linux 宿主调用同一业务层。

系统选区润色/翻译保留完整选中文字,先写入同一历史记录的 `rawTranscript`,再保护原文剪贴板,最后发送完整模型请求。原文、原控件和原范围分别核对;服务拒绝或输出不完整不能替换选区。剪贴板兜底、原位置续接和平台验收边界见[选区全文与原文保护](development/selection-originals.md)。
Expand Down
70 changes: 70 additions & 0 deletions docs/development/ask.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# 随便问:提交、附件与原生写回

## 桌面窗口与提交

The desktop host validates the invocation and native target. Core owns intent routing, model calls and turn state. The composer and the expanded chat share the same window.

### Open and submit

The current recording shortcut plus Space opens or focuses the compact `ask-anything` composer. The same window expands around the composer after an explicit submission resolves to `answer` or `selectionAnswer`. `write`, `edit` and `clarify` stay compact. Expansion requires the matching acknowledged turn and current visibility generation. Replay can reconcile a live submission but cannot expand a dismissed window. Escape dismisses the composer and cancels pending voice input. An accepted turn retains its own cancellation and result lifecycle.

The recording chord can start voice input after the current composer acknowledges focus. `autoVoiceOnOpen` defaults to `true` and does not apply to opening from Settings. Dictation into Ask only fills the current draft. It does not send automatically. The recording ID, conversation, editor revision and focus generation prevent delayed transcription from editing a different draft. Repeated chords during active recording focus the composer. Each recording controls only its own capsule and audio lifecycle.

| Route | Result |
| --- | --- |
| `answer` | Answers the question in chat, independent of any incidental selection. |
| `selectionAnswer` | Answers about the relevant verified selection. An explicit reference without a verified selection requests clarification. |
| `write` | Generates new text for a verified collapsed external caret. |
| `edit` | Replaces the verified original selection. A missing selection requests clarification. |
| `clarify` | Requests input in the composer, with no external write. |

Explicit send prepares the native target and freezes the chosen mode, channel and validated attachments after admission. An identical request ID and payload reuse the original turn. A different payload with the same ID conflicts. Busy work is rejected before another target read. Once chat has expanded, later turns remain in that conversation and use the answer path. The backend reviews output before publishing or delivering it.

### Settings and routing

Machine-local `ask-entry-settings.json` stores `{ autoVoiceOnOpen, intentMode }`. A new store and explicit recovery use `{true, separateModel}`. Saved valid selections persist. Turning off the active Beta routing option returns to `semanticHybrid`. The native main window uses `ask_get_entry_settings` and `ask_set_entry_settings`, which return the committed settings or a typed failure.

- `semanticHybrid` uses local intent signals and asks the main model for a small decision when uncertain.
- `separateModel` makes an isolated classifier request that produces no transcript output.
- `mainModelTool` requires the main model to call the local `resolve_intent` tool and continues that logical conversation with the validated decision.

Classifier input is limited to the user's instruction and minimal selection or reference signals. Full selection, attachments and conversation history are turn data only where authorized. Invalid or unsupported decisions surface an error and preserve the selected strategy. Web search uses a validated public query. Its indicator follows actual turn-scoped tool activity.

### Native target and delivery

On macOS, inserting new text binds to the original eligible caret recorded when Ask opened. Reading or replacing a selection binds to the verified target captured at send. Windows uses its current external target capture. Native capture distinguishes no selection, a verified selection and unavailable evidence. AppKit or UI Automation handles, document fingerprints and write leases stay in the host. Unknown or protected controls are unavailable. Read-only selection may be usable as context and cannot authorize a write.

Before delivery, the host revalidates the original editor and expected caret or UTF-16 range. A one-shot claim immediately precedes a possible write. Outcomes distinguish a confirmed write, retained result and uncertain write. Never replay an uncertain native write or replace a different control. The full retained result remains copyable in Ask. On macOS, native write failures leave it for manual copy. The Windows path has a separate once-per-turn clipboard fallback. Cancellation before a claim prevents its effect. An already issued write is reported by observation, with no rollback claim.

### IPC and verification

`ask-window/client.ts` and the native `ask_window` command and event adapter define the wire. Events and replay are ordered per conversation. The non-chat projection exposes the accepted turn, authoritative route, delivery status and optional retained text. Conversation, turn and attachment identities gate late updates. No external write occurs for answer or clarification routes.

Check the Core routing, tool and replay tests in `qa_service/standalone/`, the browser Ask specs, and the platform-specific [native target tests](../../openless-all/app/src-tauri/src/ask_window/target/README.md). Installed macOS and Windows acceptance separately covers the shortcut, composer and capsule focus, changing selection, selection answer, caret insert, selection replacement, and a changed editor during generation.

## 附件、上下文与工具

以下约定适用于已接纳的 Ask 回合。

### 后端端口与上下文来源

- **桌面 App 元数据 → ContextProvider**:在切到 Ask 前冻结显式唤起时的来源 `{ invocationId, capturedAt, foregroundApp?, desktopApps? }`。当前真正接收键盘输入的只有前台对象;后台用可见/最小化窗口所属 App 或已打开的用户 App 元数据表达,按平台能力区分 `unknown`。不把后台当成另一份前台焦点,不读取后台窗口内容、标题、浏览历史或所有进程;不假设能跨虚拟桌面枚举。Ask 已前台的后续轮使用该对话最近一次有效外部来源及时间,不把主窗/胶囊当成用户正在工作的 App。
- **`ContextProvider`**:按轮提供 `staticInstructions`(固定且版本化)和带 `source/asOf` 的 `facts`,缺失单独标原因。用户“今天在做什么”只来自已授权的本地信息或用户指定的公开检索,搜索不等于能看见本机活动。时间使用设备时钟;天气只查询用户明确给定或授权的地点,保留观测/预报的时间与来源;无地点、禁止搜索或离线时不猜。现有用量记录未提供可用的 Ask 实际金额,首版显示「无数据」,不拿 token 乘现价,也不访问个人账单或外部账户。App/用量范围须有 Ask 专属授权;开启联网、保存历史或操作系统授予可读权限不算授权。被撤销的隐藏事实不能作为后续请求或 Compact 的输入;这不等于抹掉用户已看到的聊天消息。
- **`SearchTool`**:输入限定为模型 `web_search` 工具调用中的短公开查询和调用 ID,每轮至多一次;全局搜索设置仍可关闭。默认「免费搜索」在客户端合并 FreeSerp 与 Keenable 的免 Key 结果,遵守端点限流,不通过 OpenLess 服务转发。「混合搜索」额外使用用户单独配置的 DeepSeek Search API Key,可能计费;原有 Bing 或支持 JSON 的 SearXNG 地址仍可按需选择。结果通过供应商协议的工具消息返回,不混入普通提示词;私有附件和应用上下文不参与搜索决策。复用超时、网络保护和取消;不把整个 Prompt、历史、选区、附件、账单或 App 清单发给搜索服务。实际发出请求才进入 `searching`,实际读取才进入 `reading`,只有成功取回可用正文才标 `read`。搜索发现的来源和读取状态随活会话回放;部分读取失败不抹掉已发现来源。返回给模型的证据正文有预算,不放进公开事件或额外的持久化记录。模型读取的网页、选区、PDF 与动态事实始终是数据,不是系统指令。
- **`AttachmentReader`**:按 `{ conversationId, turnId, attachmentIds }` 一次性取得所有已就绪附件的只读引用,解析为选区原文、带真实页码(从 1 开始)的 PDF 文本或经验证的图像。选区完整保留到 4,000 个 Unicode 标量或 16 KiB;预览先显示前 280 个标量,展开看原文,超限提示、不静默截断。大图片优先在本机压缩;保留 48 MiB / 40 MP 的解码保护。PDF 本地处理最多 48 MiB / 100 页 / 512 KiB 提取文本,不上传原件。每轮最多 4 件。可恢复的操作错误复用主界面的弹窗 API。PDF 首版只本地提取有文字层的文档,解析器必须有可中止的资源限制;扫描件、加密、损坏和超限分开报错,不执行脚本、访问外链或做 OCR。图片首版验证 JPG/PNG,通过实际协议和模型能力双重校验后才能发送;能力不明也保留草稿并报告,不探测上传、不换渠道、不当空附件。首版可在内部按页读取,不把页范围放到公开 `submit`。文件使用选取时有界读取的内容,不在发送时重开源路径。结束对话清理临时资源,不自动删除用户原文件或既有 opt-in 历史行;「保存历史」沿用旧的文本记录范围,不新增长期保存附件原件、原文、缩略图或路径。
- **模型和 Compact**:复用现有 QA 生命周期的所有权检查及供应商底层传输,旧单槽/选区润色接口不直接接新窗口。每轮冻结已配置渠道、模型及能力;不假冒深度思考、视觉和工具支持,不静默切换供应商。固定指令与稳定历史放在前,动态事实和本轮材料放在后;遵守 [现有缓存策略](speech.md#提示词缓存与用量)。**256K 指总窗最多 256,000 tokens**,取与供应商确认的模型限额较小者,再扣除输出、未计入的工具结果和安全余量。未知窗口使用明确的保守限制,不把输出 `max_tokens` 当成总窗;搜索回填后再计量。Compact 只替换模型输入中的旧完整轮次,保留 UI 全量消息和来源、新近完成轮及当前轮。摘要有对话与版本边界,必须完整、更小且在当前轮有效时才替换;过大附件不静默裁剪,压缩失败不修改旧摘要。KV 命中率按 provider 可比实测 `Σ缓存读入 tokens / Σ输入 tokens`,在同服务/渠道/模型/协议内聚合;缺字段显示未知,不写死百分比,不为预热多发请求。按实际调用归档已知用量,不把答复、压缩等多次请求算作同一次;聊天视图可把辅助请求与答复分开。
- **工具扩展**:聊天核心定义可取消、按 `{ conversationId, turnId, toolCallId }` 跟踪的类型化工具分派接口;常规任务注册 `web_search` 与 `calculator`,主模型工具判定阶段单独开放 `resolve_intent`。提示词优先核实时效性强或易变的公开事实;需要计算时先核实公开输入,再用本地 Rust 计算器。计算器只接受有界的数值表达式,返回精确整数或最简分数及最多 50 位小数,每轮最多三次,关闭联网仍可用;计算结果作为工具消息,不随搜索查询外发。不写锁屏、切用户、开 App 或切换主题的实现,不给模型通用 Shell、系统控制或调用特权。未来的系统操作需独立权限、用户确认及审计契约。

### PromptBox 内的附件呈现

预览、引用标签和编辑区同属一个 PromptBox。移除附件时同步移除它的引用标签。

| 类型 | 框内呈现 |
| --- | --- |
| 图片 | 显示真实图片缩略图,角标如 `#1`,右上角有移除按钮;编辑区前可见对应的「图片 #1」引用标签,光标可以接着输入。图片加载失败时显示原因,不把空白方框当作成功预览。 |
| PDF | 用同一框内样式显示 PDF 图标、文件名和移除按钮,已知时可显示页数;编辑区的引用标签能识别这是哪个 PDF,不冒充图片预览。 |
| 选中文字 | 经提交时验证且本轮确实使用的原文可作为本轮私有材料;不在唤起时自动添加草稿卡片,也不把原文塞进可编辑的问题草稿。普通粘贴不变。 |

标签是附件的视觉引用,不是发给模型的字面文本;提交仍用 `attachmentIds`。卡片与标签指向同一附件,移除后两者同步消失,同时保留草稿与光标。布局可以加高框内内容,但不改变独立窗口尺寸。

同一个 PromptBox 边框内提供预览和引用,优先保留原组件自身的边框与样式。拖入图片时只接收浏览器提供的文件内容,不接受或转发本机路径;后端与原生选择器共用验证和登记逻辑。拖放只添加附件,不发送,不打开本地文件网页。纯附件用同一个发送入口;中文输入法选词回车不触发。不显示联网按钮或确认面板。模型调用工具时在答复旁显示 Websearch;完成后仍可查看来源。用户消息下不显示档位标签,开启思考后按钮始终为蓝色。
Loading
Loading