Commit graph

8 commits

Author SHA1 Message Date
linkliti
26ca0252d9 test(suite): align stubs and assertions with current behavior
Several test files still modeled older behavior: goal plugin stubs lacked the agent_name and context.log attributes the response tool reads, the intervention test built an AgentContext without id, startup asset assertions forbade the favicon link that safe and splash pages now ship, document query assertions pinned a superseded skill description, and the defer weakref check raced cyclic garbage collection. Stubs and assertions now match the code they cover. The welcome splash test asserted that the transparent background string appears nowhere in the welcome screen, which stopped holding once the reorderable layout menu gave its disabled buttons that background, so the check now inspects the welcome container block it was written for. The notification store test strips imports from the module it evaluates, which left the extension hook undefined once the store reported every received notification, so the harness now declares that hook.

Validation: full suite in a nested dev checkout fails 0, passes 3067, skips 7, down from 32 and 3029 at the first commit and 9 and 3058 after the path fix; pytest tests/test_webui_startup_assets.py tests/test_webui_message_ordering_static.py tests/test_ws_client_api_surface.py tests/test_defer_lifecycle.py tests/test_document_query_plugin.py tests/test_intervention_llm_abort.py plugins/_goal/tests/test_goal_plugin.py (67 passed).
2026-10-31 13:33:09 +03:00
linkliti
96fcbb1cf8 fix(webui): drop chat-loading-splash background
The three-dot chat loading splash painted its background across the chat area, showing wide colored chrome while messages loaded. Drop the background so the splash paints only the dots.

Validation: message ordering static suite passes.
2026-10-13 18:06:47 +03:00
linkliti
aae3e9137b Add regression coverage and normalize prompt file endings
Normalize framework prompt file endings and add static regression coverage for message rendering plus focused coverage for file-tree indent output.
2026-09-04 00:20:07 +03:00
Alessandro
4f16db4650 Restore formatted response streaming
Render root responses with safe Markdown and LaTeX throughout live updates, removing the raw monospace-to-formatted swap at completion.

Update the stream contract and focused regressions while preserving the existing realtime synchronization optimizations.
2026-08-27 07:04:51 +02:00
Alessandro
cb39a16c24 Optimize realtime WebUI synchronization
Negotiate collection deltas and preserve sidebar row identity so high-rate log streams avoid resending and reconciling unchanged state. Bound streamed log fields, defer expensive response formatting until completion, update capped process groups only for new steps, and keep disconnect and terminal task state accurate. Add focused lifecycle, snapshot, sync, and WebUI regressions.
2026-08-26 15:27:36 +02:00
frdel
bebe6826cf Improve WebUI bundling, manifest and stop command
Some checks failed
Build And Publish Docker Images / plan (push) Has been cancelled
Build And Publish Docker Images / build (push) Has been cancelled
Introduce a WebUI extension manifest and rewrite the asset bundler/server to support caller-supplied entry sets, extension-injected entries, and negotiated gzip. Key changes: add get_webui_extension_manifest() to helpers/extension, refactor Stop logic into stop_context() and reuse it from the connector `/stop` command, and add a new `/rename` slash command for chat naming. ui_bundler now accepts entry_urls, includes enabled extension entry files, raises the embedded text file size limit to 512 KiB, computes per-entry-set cache keys, and returns a bundle version based on the bundle signature. ui_server applies Starlette GZip middleware, adds routes (/, /index.html, /ui/index, /safe), serves splash/safe documents, injects the serialized webui_extension_manifest into the rendered index, and streamlines the /ui/asset-bundle endpoint with ETag and gzip handling. Also add multiple WebUI assets and fonts, new/updated plugin command YAML and Python command handlers, and corresponding tests covering bundling, commands, chat naming, and WebUI behaviors. Documentation (.dox.md) updated to reflect the new runtime contracts and guidance.
2026-07-29 19:49:07 +02:00
frdel
b6be345a56 Chat rendering/pagination, Add chat-naming and pin-to-top plugins
Refactor of messages.js to support lazy rendering.
Move chat rename functionality out of core and into a new _chat_naming plugin, and add a built-in _pin_to_top plugin for sidebar pinning. The chat-naming plugin includes API handlers, prompts, helper logic for selecting user messages and budgeted Utility Model calls, a python monologue_start extension, web UI (modal, store, config, sidebar action), and comprehensive tests. Removed the old core renaming extension and deprecated prompts/tests. Also added pin-to-top plugin files (API, helpers, webui store, tests/docs) and updated various AGENTS.md docs to reflect the new plugins and lifecycle clarifications. Minor UI/js tweak: reorder speak/copy buttons in browser tool handler and add a new webui message-window.js along with related webui/store/component updates and test adjustments.
2026-07-29 08:17:50 +02:00
Alessandro
a4b2848172 Fix WebUI message replay ordering
Treat full log snapshots as authoritative replays by clearing the message DOM when the snapshot starts at log no 0, then render logs in backend order. This prevents streamed responses from staying above earlier welcome/user messages after sync races while keeping incremental updates patch-based.
2026-06-26 14:15:54 +02:00