Commit Graph
394 Commits
Author SHA1 Message Date
chengyongru 3c61bcfdf0 fix(webui): preserve oversized turn history with record pagination (#6586) 2026-11-11 17:32:47 +08:00
chengyongru e3a1af2ed3 fix(webui): add a close control to the expanded context panel (#6629) 2026-11-11 17:06:45 +08:00
chengyongru 394a78e82d fix(sessions): preserve cross-session input ownership and history (#6613)
* fix(webui): reconcile cross-session history by message ID

* fix(sessions): preserve target authority and input ownership

Resolve cross-session follow-ups through the target route, carry stable input IDs through admission and recovery, and associate live and replayed answers with the inputs actually consumed.

Keep ordinary input scope isolation and omit historical anomaly repair. Resolves NAN-430.

* fix(sessions): complete input identity integration across boundaries

Carry input identity explicitly in projected input events, keep runner annotations out of public history, and reuse the canonical WebUI session parser during recovery.

Type validated recovery metadata and align existing channel and subagent regressions with explicit response ownership. All nine failed compatibility cases and adjacent recovery coverage pass in a focused 58-test run.

* fix(sessions): unify input recording and block remote commands

* fix(webui): keep input ownership checks page-bounded

Look up referenced inputs through the existing identity index before invoking transcript backfill. Complete pages no longer scan the full prompt history, including answers whose inputs live on earlier pages.

Cover cold-cache pagination and cross-turn ownership in existing regressions. Focused pagination, replay and follow-up recovery checks: 88 passed.

* fix(webui): preserve response ownership during history replay

* fix: resolve strict typing in response replay

* fix: preserve continuation ownership during recovery

* test: diagnose stuck gateway asyncio shutdown

* test: retain gateway thread stack diagnostics

* test(webui): stabilize native autoscroll browser setup
2026-11-11 10:46:44 +08:00
chengyongruandovo-agentx 5c72ced2fe fix(webui): respect middle-click autoscroll (#6612)
* fix(webui): respect middle-click autoscroll

Co-authored-by: ovo-agentx <351813579+ovo-agentx@users.noreply.github.com>

* fix(webui): arbitrate scrolling from actual viewport movement

Remove the middle-button gesture model. Attribute actual viewport movement at
the camera write boundary so native scrolling yields ownership without
predicting browser gesture state or nested scroll targets. Exclude layout
clamping, preserve application navigation, and reconcile pending scrolls before
geometry, animation, or history-anchor writes can overwrite them.

Co-authored-by: ovo-agentx <351813579+ovo-agentx@users.noreply.github.com>

---------

Co-authored-by: ovo-agentx <351813579+ovo-agentx@users.noreply.github.com>
2026-11-09 18:34:48 +08:00
chengyongru bbbc5329bb fix(webui): preserve pasted paths when attachment detection fails (#6610) 2026-11-09 14:07:15 +08:00
chengyongruandchengyongru 9257383bec refactor: remove unreachable internal code paths
Co-authored-by: chengyongru <61816729+chengyongru@users.noreply.github.com>
2026-11-09 13:38:39 +08:00
chengyongru f62dfe0ee8 fix(webui): show latest button for hidden content (#6605)
* fix(webui): show latest button for hidden content

* fix(webui): preserve latest navigation after focus scroll
2026-11-09 10:56:26 +08:00
Xubin Ren 44d567e37c fix(webui): name the gateway sandbox launcher in setup guidance 2026-11-08 14:29:46 +08:00
Xubin Ren f5e5bd6ea0 feat(webui): guide sandbox launcher recovery from chat 2026-11-08 14:29:46 +08:00
Xubin Ren 5888791dc3 style(webui): remove decorative ambient glow 2026-11-07 23:19:32 +08:00
Xubin Ren 9673c1ea8f fix(webui): restore permission focus before immediate Escape teardown 2026-11-07 23:19:32 +08:00
Xubin Ren e8544a79a6 feat(webui): refine day-night themes and interaction continuity 2026-11-07 23:19:32 +08:00
chengyongru 0ee302253f fix(webui): close context sidebar for new conversations 2026-11-06 23:23:05 +08:00
chengyongru 94bfd3ff7d perf(webui): reduce file activity layout work (#6587) 2026-11-06 23:21:48 +08:00
chengyongru 3a37269f3f refactor(webui): unify code and diff highlighting (#6412)
* refactor(webui): unify code and diff highlighting

Replace Prism with shared Highlights tokens and Pierre read-only diffs, retaining rare grammars through lazy Shiki and preserving source, copy, preview and diff controls.

Restore single-session Composer ownership inside the conversation column while retaining the shared multi-pane footer. Keep the measured large-diff scroll regression explicit during review.

* fix(webui): contain highlighting errors and retain diff selections

Refs NAN-343

* test(webui): align pane fixtures after main rebase

* chore(webui): update highlighting dependencies

Keep grammar fallback coverage on a language that still requires Shiki, and align reading-size assertions with main.
2026-11-06 16:41:12 +08:00
chengyongru f5c359476b fix(webui): distinguish unknown history from exhaustion 2026-11-06 16:10:03 +08:00
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 283e486e0b fix(webui): align context sidebar through viewport layout changes 2026-11-06 13:09:44 +08:00
chengyongru e4e04768d2 fix(webui): keep context sidebar owned by the pane layout 2026-11-06 13:09:44 +08:00
chengyongru 5b9a4ea530 fix(webui): preserve live context usage between model requests 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 6a4bb4d270 fix(webui): close context graph when switching sessions 2026-11-05 17:22:18 +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 8ff04aad2b fix(webui): update usage and tool progress during active turns (#6553)
* fix(webui): stream model status and usage during active turns

* fix(webui): keep live rounds and active-run status consistent

* fix(webui): reuse existing run indicators without extra status text

* fix(webui): preserve live activity and batch durable delivery

Cancel and drain sibling tools when progress notifications fail, retain balanced checkpoints, and keep model telemetry separate from answer provenance.

Group-commit already queued activity at the channel delivery boundary while preserving FIFO, generation ownership, per-envelope admission, and commit-before-fanout semantics. Isolate invalid members without dropping valid neighboring events.

Retain tool detail lazy grouping and cover scheduling, cancellation, persistence, encoding failures, and projection regressions.

* test(webui): separate standard-library imports in batch regression

* test: tighten live execution checks and clarify contracts

* refactor: remove redundant live execution comments

* refactor: settle tool results through one output path
2026-11-04 16:27:24 +08:00
chengyongru c1ed649b81 fix(webui): avoid remounting outgoing conversations (#6540)
* fix(webui): avoid remounting outgoing conversations

Reset subtask disclosure state within its session scope instead of keying the entire transcript before the stream message handoff. Cover the outgoing DOM lifecycle and disclosure reset with unit and browser regressions.

Resolves NAN-396

* fix(webui): reset transcript UI on message ownership changes

Keep the selected conversation separate from the owner of currently rendered messages. Reset the message subtree only when its owner changes, so cached and forked conversations get fresh UI state without remounting outgoing diffs.

Extend the history-only caller and cover cached fork activity isolation while retaining the outgoing-DOM regression.
2026-11-02 17:42:16 +08:00
chengyongru a4d2430140 refactor: remove redundant comments and docstrings (#6527)
* refactor: remove redundant comments and docstrings

* fix(signal): annotate async context manager as a generator
2026-10-30 13:07:03 +08:00
chengyongruandXiaoyu-hub 4a14faa47e fix(webui): keep saved topics bound to their project (#6509)
* fix(webui): keep saved topics bound to their project

Lock the project as soon as the session exists, independently of loaded history. Validate both explicit updates and message admissions against the persisted directory while retaining same-project permission changes.

Related to #6505.

Co-authored-by: Xiaoyu-hub <17346801517@163.com>

* test(agent): retain goal shutdown failure stacks

Use the existing stop_loop diagnostic without changing the five-second teardown deadline or the goal assertions. The Windows failure on #6509 reached session shutdown but did not capture its worker stacks.

* test(cron): await rearm tick completion instead of disk timing

The Windows run completed the first and last jobs correctly, but rescheduling took over three seconds inside a two-second timeout. Await the original timer task, detect an early exit before callback entry, and preserve job-order, cancellation, persistence and rearming assertions. Keep real disk writes and all parameterized cases.

Also place the goal-shutdown diagnostic import in the existing first-party group.

---------

Co-authored-by: Xiaoyu-hub <17346801517@163.com>
2026-10-28 21:37:23 +08:00
chengyongru b07b3eac24 fix(webui): retain history touch gestures across message replacement 2026-10-27 21:05:32 +08:00
chengyongru 02c364428a fix(webui): keep Dock taps working after touch drags 2026-10-27 20:31:21 +08:00
chengyongru 219c8bb2bc fix(agent): preserve streamed replies after model failures (#6494)
* fix(agent): preserve streamed replies after model failures

* test(webui): settle lazy imports and async settings saves

* test(agent): synchronize estimation checks at the operation boundary

* docs(webui): explain retained replies after stream failures
2026-10-27 16:22:33 +08:00
chengyongru 0978ccd50f fix(webui): open subtask details from task content
Handle tool activity, errors and result-body clicks at the task item while preserving selection, nested controls, image portals and detail focus. Remove the sticky-title workaround.

Refs NAN-369
2026-10-27 13:22:34 +08:00
chengyongru 4cd277f65d fix(webui): simplify retry status copy 2026-10-27 13:17:42 +08:00
chengyongru 164ddadd8e fix(webui): align chat links with edit filename colors (#6484) 2026-10-27 13:05:32 +08:00
chengyongru 8857d4f9c8 feat(webui): unify mention candidate display 2026-10-27 11:53:49 +08:00
chengyongru 23c4acc216 fix(webui): keep subtask details reachable in long results
Keep the current task header above its independently scrolled result, including code copy controls. Preserve selection, detail focus and reading position.

Refs NAN-364
2026-10-26 23:40:42 +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 f23a6d1485 refactor: remove verified unused internals (#6460)
* refactor: remove verified unused internals

* test(linear): synchronize webhook shutdown with writer join
2026-10-26 21:45:36 +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 2b7d686117 chore(webui): remove subtask message status 2026-10-26 15:02:02 +08:00
chengyongru 9b3af7b66c feat(webui): keep delegated work within reach (#6443) 2026-10-26 13:16:44 +08:00
chengyongru 83b6112843 fix(webui): crossfade theme changes as one page (#6459)
* fix(webui): crossfade theme changes as one page

* test(webui): align selection highlight motion checks

Follow the shared CSS transition contract instead of obsolete Tailwind utilities. Verify normal geometry easing and reduced-motion theme paint in the browser without changing accepted theme behavior or relaxing CI gates.
2026-10-25 23:54:06 +08:00
chengyongru 4701218719 fix(webui): place permission hover hint below its control (NAN-359) (#6458)
* fix(webui): keep composer hover hints outside the editor (NAN-359)

* fix(webui): limit hover hint change to workspace permission
2026-10-25 22:47:05 +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 e821144c7e feat(webui): search loaded message text in Ctrl+K 2026-10-25 21:03:35 +08:00