Commit Graph
139 Commits
Author SHA1 Message Date
chengyongru e4e04768d2 fix(webui): keep context sidebar owned by the pane layout 2026-11-06 13:09:44 +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 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
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 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 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 e821144c7e feat(webui): search loaded message text in Ctrl+K 2026-10-25 21:03:35 +08:00
chengyongru 3c022ada6a fix(webui): show renamed topic titles in @ mentions (#6413)
* fix(webui): use renamed titles for session mentions

Pass persisted title overrides to each thread and resolve mention display titles through the same helper as the sidebar. Keep canonical session identities unchanged.

Fixes NAN-342

* fix(webui): refresh bound session mention titles without truncating previews

* fix(webui): persist topic renames as session titles with legacy import

* fix(webui): keep session rename broadcast typed and identity-owned

* fix(webui): limit topic-title fix to composer mentions

Withdraw backend title storage, rename protocol/capability, import migration and global-title changes. Keep the existing sidebar title overrides and only project those names into the composer mention catalog.

Retain focused single/split-pane rename, bound-label, send/reload and full-preview filtering coverage.

* fix(webui): preserve bound mention and draft behavior

Keep the fix limited to candidate titles. Leave existing bound references untouched and exercise rename, candidate filtering, selection, send and reload in the regression test.
2026-10-24 03:00:22 +08:00
chengyongru 5ae49a43e7 fix(webui): share sidebar and Composer run state (#6337) 2026-10-24 00:43:34 +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 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 08ca3b4525 refactor(webui): use native link actions and remove website previews (#6391)
* refactor(webui): remove website previews and custom link menus

* docs(webui): focus guide on product-specific usage
2026-10-22 16:34:54 +08:00
chengyongru b37a23698d fix(webui): admit history without dropping live output (NAN-311) 2026-10-22 01:22:49 +08:00
chengyongru 76da55994b fix(webui): preserve answer checkpoints and stream order (#6368)
* fix(webui): preserve answer checkpoints and stream order

* fix(stream): close hosted-tool answer segments at the producer
2026-10-21 18:30:52 +08:00
chengyongru 743c51e81f fix(webui): stabilize earlier-history loading and reclaim space (#6349)
* fix(webui): retain smoothly revealed history loading headers

* refactor(webui): simplify history loading feedback

* fix(webui): keep retained history headers clear of preceding text

* fix(webui): reclaim completed history loading space

* refactor(webui): group history projection handoff with navigation

* test(webui): synchronize history motion observations

* fix(webui): collapse history completion geometry handoff
2026-10-21 13:10:05 +08:00
Xubin Ren 28f6c26946 fix(webui): recover model failures and align chat controls 2026-10-21 02:34:09 +08:00
chengyongru 14d9e6ed0d fix(webui): show skeleton while conversation history loads 2026-10-20 22:01:40 +08:00
Xubin Ren 27ef6fe24f fix(webui): center prompt navigation in the complete chat frame 2026-10-18 17:13:18 +08:00
Xubin Ren bf1eada575 fix(webui): navigate complete prompt history with bounded pages 2026-10-18 17:13:18 +08:00
Xubin Ren 61666c495a fix(webui): reuse preview tabs for resolved file aliases 2026-10-18 00:14:36 +08:00
Xubin Ren 0869c928a2 feat(webui): preview Markdown files with a source toggle 2026-10-18 00:14:36 +08:00
chengyongru 3ccc181d29 fix(webui): load history for running sessions 2026-10-16 14:07:10 +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 fdeda8a468 fix(webui): reconcile turns after reconnect (#6211)
* fix(webui): reconcile turns after reconnect

* perf(webui): bound reconnect recovery and index turn reconciliation

* refactor(webui): simplify reconnect reconciliation

* fix(webui): preserve turn authority during recovery

* fix(webui): validate canonical completion identities
2026-10-16 11:38:05 +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 6ff96f2a8f feat(subagent): add session-owned task messaging and cancellation (#5985)
let's go!
2026-10-05 05:16:33 +08:00
chengyongru 678cd8f4a7 fix(webui): keep completed turns terminal across late events (#5991)
* fix(webui): keep completed turns terminal across late events

* test(webui): align app layout client mock with completion API
2026-09-30 17:40:11 +08:00
chengyongru 33dddaaa46 fix(webui): unblock earlier-history pagination and show retry states (#5934)
* fix(webui): show history pagination loading and retry states

* fix(webui): load earlier history on backward input at top

* fix(webui): use pull gestures and spinners for history loading

* fix(webui): shorten history loading failure messages

* refactor(webui): simplify history pagination guards and tests
2026-09-27 21:06:59 +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
chengyongru 0856fbf014 fix(webui): retry mention catalogs after transient failures 2026-09-24 23:32:22 +08:00
chengyongru 1a78ae2b99 perf(webui): restore cached threads and load mention catalogs on demand 2026-09-24 23:32:22 +08:00
chengyongru c370e2a5a5 fix(webui): refine mobile actions and avoid duplicate settings loads 2026-09-24 23:32:22 +08:00
Xubin Ren c2edd5632e fix(webui): preserve previews during credential renewal 2026-09-24 15:17:05 +08:00
Xubin Ren b555164a17 feat(webui): polish tabbed previews and image presentation 2026-09-24 15:17:05 +08:00
Xubin Ren fccf415283 feat(webui): add isolated website previews and link actions 2026-09-24 15:17:05 +08:00
Xubin Ren 05bee21b10 feat(webui): unify file preview actions 2026-09-24 15:17:05 +08:00
Xubin Ren af5acabb33 fix(webui): restore session-scoped file previews 2026-09-24 15:17:05 +08:00
Xubin Ren bfb5129e6f fix(webui): retain temporary chat state across navigation 2026-09-21 16:45:30 +08:00
Xubin Ren 8473538e7a fix(webui): show provider logos in model notices 2026-09-21 00:13:46 +08:00
Xubin Ren 448767d147 fix(webui): identify OAuth reauthentication behind fallback replies 2026-09-21 00:13:46 +08:00
Xubin Ren a05f11ba10 fix(webui): notify chats when a fallback model responds 2026-09-21 00:13:46 +08:00
chengyongru 0983762fe5 refactor(webui): remove legacy message projection (#5823)
* refactor(webui): defer oversized replay traces as events

* fix(webui): type deferred trace index set

* refactor(webui): remove legacy message projection

* fix(webui): type event protocol boundaries

* test(webui): assert canonical thread events
2026-09-20 16:48:13 +08:00
Xubin Ren 8d0430c761 feat(webui): show persisted fallback preset on replies (NAN-133) 2026-09-20 15:16:35 +08:00
chengyongru f611c880f9 fix(webui): adapt chat toolbar to available width (#5760)
* fix(webui): float chat controls above the transcript

* fix(webui): keep floating controls compact and flat

* fix(webui): adapt toolbar placement to conversation width

* refactor(webui): simplify responsive toolbar styles
2026-09-14 15:25:13 +08:00