Commit Graph
146 Commits
Author SHA1 Message Date
chengyongru 11f738f0fe fix(webui): remove composer placeholder tooltip 2026-11-06 13:47:41 +08:00
chengyongru 656765b67d refactor(webui): isolate Composer queue ownership
Move queued guidance persistence, shared delivery ownership and page/turn authorization into useQueuedPrompt. Keep draft input and feedback in ThreadComposer, preserving the existing v1 storage and regression assertions.
2026-11-06 13:34:40 +08:00
chengyongru e4e04768d2 fix(webui): keep context sidebar owned by the pane layout 2026-11-06 13:09:44 +08:00
chengyongru 7ea2c9a830 fix(webui): keep composer placeholders readable in narrow panes 2026-11-06 13:06:00 +08:00
chengyongru 519ed81132 feat(webui): inspect file context in a live graph sidebar (#6562)
* feat(webui): inspect file context in a live graph sidebar

* refactor(webui): place preview controls in the shared sidebar header

* fix(webui): synchronize npm lockfile for graph dependencies

* fix(webui): preserve compacted context and refine graph inspection

* fix(context): harden provenance, request usage, and drawer lifecycle

* fix(webui): align source skeleton and browser fixtures

* perf(context): reuse source analysis and capture request graphs once

* perf(webui): compact graph history and render graph motion on canvas

* fix(webui): remove redundant context sidebar header

* style(webui): clarify context replay icon

* perf(webui): pace context replay on an adaptive timeline

* feat(webui): briefly reveal labels for new context nodes

* fix(webui): reveal new labels only for loaded context files

* fix(webui): restart graph animation clock after idle

* fix(webui): reveal labels when replay reverses node exit

* refactor(context): project file-use facts without retention tracking

* refactor(context): observe file reads outside agent execution

* fix(webui): animate context sidebar closing

* refactor(context): remove unused graph and usage panel code

* refactor(context): isolate prompt observation from execution metadata

* fix(webui): clarify cache rate and show context token usage

* fix(webui): abbreviate context token counts in thousands

* fix(webui): omit token unit from context usage details

* fix(webui): restore large source preview highlighting and panel elevation

* fix(webui): distinguish modifier scrolling from keyboard focus

* fix(webui): align preview tab and panel corner radii

* fix(webui): attach file tabs to the header divider

* fix(webui): use one action to toggle file preview mode

* fix(webui): use hover hint for context replay

* fix(webui): share composer layout between graph and file sidebars

* fix(webui): align sidebar bottom with composer surface

* fix(webui): restore mobile graph drawing and touch file details

* test(webui): align legacy cache assertions with current label

* perf(context): retain source analysis and bound graph animation work

* style(webui): add light elevation to user messages

* test(webui): await lazy graph scene before replay assertions

* fix(webui): align preview skeleton and browser contracts
2026-11-05 17:09:20 +08:00
chengyongru e6127aa324 style(webui): refine Markdown reading typography (#6568)
* style(webui): refine Markdown reading typography

* fix(webui): stabilize composer and typography checks
2026-11-05 15:54:17 +08:00
chengyongru 0c92d5bb03 feat(webui): surface composer shortcut hints (#6567) 2026-11-05 13:32:55 +08:00
chengyongru 8857d4f9c8 feat(webui): unify mention candidate display 2026-10-27 11:53:49 +08:00
chengyongru 7e5dcb79e0 feat(webui): complete bang commands and literal output (NAN-291) (#6173)
* feat(webui): complete direct bang shell commands

Reuse the gateway user-shell side channel, retain failed drafts without reconnect replay, and preserve literal output across live delivery and history. Highlight the bang prefix before and after sending.

NAN-291

* fix(clients): preserve literal shell output through display metadata
2026-10-26 23:35:26 +08:00
chengyongru 3230013963 fix(webui): match slash command highlighting to skills 2026-10-26 17:33:27 +08:00
chengyongru 0bd8456076 fix(webui): keep permission hints outside locked-thread drafts 2026-10-26 15:23:50 +08:00
chengyongru eed7b47753 feat(webui): refine attachment galleries and file cards (#6457)
* feat(webui): refine attachment galleries and file cards

* fix(webui): align attachment tests and Escape handling
2026-10-25 22:39:44 +08:00
Xubin Ren ef8271b2c0 feat(webui): refine appearance and add custom reading sizes 2026-10-25 22:14:58 +08:00
chengyongru 424d2debc2 fix(webui): unify skill and session link highlighting (#6454)
* fix(webui): refine skill reference highlighting

* fix(webui): highlight composer skills and align session links
2026-10-25 21:42:53 +08:00
chengyongru 9e9e22d331 fix(webui): send waiting messages with empty Enter
Use the current pending message for explicit empty Enter submissions instead of a transient second-Enter marker. Preserve automatic-send authorization and keyboard/voice guards.

Refs NAN-357.
2026-10-25 19:49:15 +08:00
chengyongru 4f7c4f0885 style(webui): refine composer surface and workspace hover (#6444)
* style(webui): refine the chat composer surface

Use a themed card background with a subtle edge and soft shadow. Keep focus stable without a darker frame while preserving Goal and drag rings. Align the startup composer surface and add composer-scoped browser coverage.

* style(webui): align workspace hover with access control

Keep the workspace trigger background clear on hover and use its existing text-color feedback, matching the adjacent access control. Preserve focus, disabled, and directory-picker behavior.
2026-10-25 15:16:08 +08:00
Xubin Ren b15bd455e3 fix(webui): soften thumbnail remove controls without shrinking touch targets 2026-10-25 00:09:24 +08:00
Xubin Ren 0bdc24a891 feat(webui): show image attachments as composer thumbnails 2026-10-25 00:09:24 +08:00
chengyongru 8af2d396ab fix(webui): tighten mobile chat layout and soften transcript edges 2026-10-24 19:29:24 +08:00
chengyongru 6d4add200b feat(webui): refine composer action feedback (#6419)
* feat(webui): refine composer action feedback

* fix(webui): preserve composer hit targets and ring previews
2026-10-24 02:50:47 +08:00
chengyongru 3bd489e314 fix(webui): remove goal halo and redundant detail header (#6417)
* fix(webui): remove goal composer halo

* fix(webui): remove redundant goal detail header
2026-10-24 02:10:16 +08:00
chengyongru cf0a0276a7 feat(webui): add a compact composer workspace toolbar (#6256)
* feat(webui): add a compact composer workspace toolbar

* refactor(webui): simplify composer workspace access control

* feat(webui): add a draggable workspace access capsule

* refactor(webui): simplify composer permission controls

* fix(webui): align mobile workspace permissions and stabilize CI test
2026-10-23 21:09:21 +08:00
chengyongru 9cff5a90cc fix(webui): keep missing pasted paths silent (#6408)
* fix(attachments): keep missing pasted paths silent

* fix(webui): limit missing-path silence to paste inspection
2026-10-23 11:41:46 +08:00
chengyongru 254f94b068 feat(attachments): support local files and video attachments (#6321)
* feat(attachments): support local files and video attachments

Share gateway inspection and send validation for borrowed local paths while preserving binary uploads, original-file ownership, and existing limits.

Related to NAN-284. Native provider video input remains outside this change.

* test: make cross-platform verification fixtures self-contained

* test(webui): align typed fixtures with runtime contracts

* fix(webui): preserve uploaded video playback during history sync

* test(tui): preserve local attachment drafts across resizes

* perf(attachments): preserve upload caches and release video previews

* docs(webui): keep attachment guidance user-focused

* chore: remove redundant dependency comment

* test(providers): make stream idle renewal timing deterministic

* fix(attachments): keep upload byte limits out of local references

Validate common format/count rules separately from upload byte budgets. Keep local inspection and send-time checks metadata-only, and exclude local references from composer and pending-upload totals. Explain upload size rejections with actual size and maximum in all ten locales. Related to NAN-284.

* fix(attachments): retain image references and draft order

* fix(attachments): close local reference UX and authorization gaps

* fix(attachments): preserve focus during asynchronous path confirmation
2026-10-22 18:32:18 +08:00
chengyongru 7dfeff9ddf fix(webui): keep restored waiting messages manual (NAN-275) (#6393) 2026-10-22 17:43:28 +08:00
chengyongru fd30fda8a2 fix(webui): stabilize transcript while typing multiline drafts 2026-10-21 10:50:03 +08:00
Xubin Ren 28f6c26946 fix(webui): recover model failures and align chat controls 2026-10-21 02:34:09 +08:00
chengyongru 282839cc65 feat(webui): add reading text size preferences (#6325)
* feat(webui): add reading text size preferences

* fix(webui): align loading skeletons with reading typography
2026-10-20 16:33:05 +08:00
chengyongru 909b277e7a fix(webui): recognize typed session handles as references (#6311)
* fix(webui): recognize typed session handles as references

Refs NAN-286

* refactor(webui): simplify session reference handling

* fix(webui): recognize mentions after punctuation

* docs(webui): focus topic references on usage
2026-10-20 01:05:11 +08:00
chengyongru 125d9221d0 fix(webui): merge consecutive waiting messages (#6309)
* fix(webui): merge consecutive waiting messages

* fix(webui): retain legacy draft session targets on refresh
2026-10-19 21:06:46 +08:00
chengyongru 1a4cee5815 fix(webui): align mention overlay spacing with the native caret 2026-10-18 00:25:47 +08:00
chengyongru 836092424d fix(webui): resume queued prompts after turn completion (#6242)
* fix(webui): resume queued prompts after turn completion

Persist the lifecycle turn each queued prompt waits for and use canonical completion identities to resume after navigation or reconnect. Release one entry at a time, and retain stopped or rejected entries for manual sending.

* fix(webui): drain temporary chat prompts on live completion

* perf(webui): resume queued prompts from live completion
2026-10-16 13:33:41 +08:00
chengyongru c24153db86 fix(ui): keep theme text and selections readable (#6226)
* fix(ui): keep theme text and selections readable

* fix(tui): theme the blank composer cursor cell

* refactor(webui): centralize diff theme colors

* fix(tui): keep conversation selections readable

* fix(ui): preserve nested syntax colors and selection lifetimes
2026-10-15 15:21:28 +08:00
chengyongru 328e933d36 refactor: isolate runtime contracts and enforce import boundaries (#6166)
* test: enforce Python import ownership boundaries

* test: protect client import boundaries and rehome shared UI contracts

* refactor: remove gateway and client dependency inversions

* fix: detect dynamic imports in conditional expressions

* refactor(tools): keep configuration contracts with their owners

* docs: keep design guidance focused on ownership and checks

* fix: preserve default threaded turn delivery
2026-10-13 13:56:28 +08:00
chengyongru 73af08efab fix(webui): allow switching Default permissions back to Full Access (#6175)
* fix(webui): allow authenticated access mode switching

* refactor(webui): remove constant full access eligibility helpers

* refactor(webui): remove obsolete full access policy parameter

* docs(webui): remove redundant access switching paragraph

* refactor(webui): remove obsolete full access capability
2026-10-12 15:39:33 +08:00
chengyongru 9261e731ce feat(webui): improve model and provider settings UX (#6145)
* feat(webui): improve model and provider settings UX

* refactor(webui): organize provider forms and model picker interactions

* fix(webui): separate OAuth credentials from provider configuration

* fix(webui): stabilize shared combobox navigation

* refactor(config): store provider connections as sparse entries

* fix(webui): preserve provider validation and isolate catalog tests

* refactor(config): manage explicit provider connections

* refactor(webui): decouple settings UX from provider removal

* fix(webui): select current combobox options during rapid input

* feat(webui): refine model preset and provider management

* style(webui): refine preset footer actions

* fix(webui): align model settings with responsive layout rules

* refactor(webui): finalize preset dialogs and simplify provider state

* fix(webui): keep fallback heading stable while sorting presets

Animate card dimensions without changing layout height and keep the section heading outside sortable cards. Remove proxy normalization from this PR.

* docs: update WebUI model and provider setup instructions

* docs: start model setup from new preset

* docs: remove duplicate WebUI model setup instructions
2026-10-11 04:30:43 +08:00
Xubin Ren 24a5c6dd56 fix(webui): keep stop immediate without command metadata 2026-10-09 12:28:32 +08:00
Xubin Ren 5cf629963d fix(webui): queue slash-prefixed chat text during responses 2026-10-09 12:28:32 +08:00
chengyongru 8a795b428e refactor(webui): remove obsolete native workspace picker paths 2026-10-08 20:33:15 +08:00
chengyongru d5dc59ea76 fix(webui): keep workspace selection in one dialog 2026-10-08 20:33:15 +08:00
chengyongru 66c8d41f66 feat(webui): add a host directory picker and refine composer controls 2026-10-08 20:33:15 +08:00
chengyongru 6646f5fbee fix(webui): upload TUI and WebUI attachments over binary HTTP (#5980)
* feat(webui): add bounded binary attachment staging

* feat(webui): bridge binary HTTP bodies alongside websocket listener

* fix(webui): deliver attachments over authenticated binary HTTP

* fix(webui): bound incomplete upload headers and preserve staging markers

* test: reflect aiohttp runtime dependency for binary uploads

* fix(webui): relay binary uploads and retain rejected drafts

* refactor(webui): remove obsolete attachment transport errors

* refactor(websocket): own binary attachment transport

* fix(websocket): allow bounded uploads over slow connections

* test(webui): restore upload timeout before retry

* docs(websocket): focus attachment guide on client usage
2026-10-08 11:55:13 +08:00
chengyongru 63bdd40280 feat(webui): unify icons and refine interaction feedback (#6074)
* feat(webui): unify product icons and refine interaction feedback

* test(webui): align layout and tooltip expectations with icon refresh

* test(webui): verify temporary chat uses shared icon controls

* fix(webui): toggle workspace access directly and restore send arrow

* fix(webui): keep the send control circular

* fix(webui): clear workspace toggle background on pointer leave

* test(webui): isolate GitHub navigation in star prompt tests

* test(webui): prevent external default navigation during star link clicks
2026-10-06 00:46:38 +08:00
Xubin Ren fc729df9ab fix(webui): keep landscape suggestions beside the composer 2026-10-04 20:05:12 +08:00
Xubin Ren 2e334b2250 fix(webui): reuse touch targets for composer mentions 2026-10-04 20:05:12 +08:00
Xubin Ren 5c5027ac0b fix(webui): keep composer palettes inside the mobile viewport 2026-10-04 20:05:12 +08:00
Xubin Ren 4b4b5cfa9f fix(webui): preserve queued guidance and command semantics during sends 2026-10-04 10:16:56 +08:00
moran 42b85efa98 feat(webui): interject via the send button while streaming
While a turn is streaming, the primary action button stays Stop only while
the composer is empty. Once the user types, the send affordance takes over
(ChatGPT-style): tapping Send stops the running turn for the agent and
immediately delivers the new message with continueActiveTurn semantics —
the same backend contract the queued-guidance flush uses.

This restores 插嘴 (interjection) on touch devices, where Enter now inserts
a newline instead of queueing guidance (the queue-guidance flow stays
available on precision-pointer devices via Enter, and the queued prompt
stack still sends already-queued prompts anywhere).

submit() now carries continueActiveTurn while streaming; the button icon
switches to the send arrow in that state.
2026-10-04 10:16:56 +08:00
moran 2750a19601 feat(webui): newline instead of send on touch keyboards
A plain Enter in the composer now inserts a newline on coarse-pointer
devices; sending stays on the send button. The slash/mention pickers
still select with Enter, and precision-pointer (desktop) behavior is
unchanged. Adds enterKeyHint to label the soft keyboard action and
enables interactive-widget=resizes-content in the viewport meta so
Android keyboards resize the layout viewport.
2026-10-04 10:16:56 +08:00
chengyongru 9756468a8c fix(webui): preserve composer drafts across navigation and reloads (#5912)
* fix(webui): preserve composer drafts when switching sessions

* fix(webui): restore ordinary composer drafts after reload

* fix(webui): retain draft identity across composer remounts
2026-09-25 23:42:01 +08:00