Commit Graph
326 Commits
Author SHA1 Message Date
Alessandro 797a88faec Keep welcome sends visible while initial chat history loads
The first history snapshot could clear the optimistic user bubble after a
Welcome send created and selected a chat, leaving the prompt invisible
until its backend log arrived.

Skip the redundant history reset on the first snapshot and rebuild the
merged message window in log order. Reuse the existing message IDs and
renderer so the greeting precedes the prompt and the backend echo updates
the same user row. Later full snapshots still clear stale history.

Add browser regressions for text and attachment sends with snapshots
arriving during or after rendering, and update the WebUI contracts.

Validation: 72 focused tests passed. Live desktop and mobile checks covered
delayed dispatch, normal in-chat sending, and a real backend message echo.
2026-11-10 19:30:54 +01:00
Alessandro a3eb21299b Fix chunky response streaming in the WebUI
Reduce state-push coalescing from 100 ms to 25 ms so transport batching
does not combine successive response updates into large visible bursts.
The existing per-connection timer and in-flight push guards still bound
work and coalesce dirty state.

Skip inner Scroller measurements for root response bodies, which grow
with the chat viewport. The existing chat scroller owns following, and
the collapse handler still resets collapsed content. Other message bodies
retain their scrolling behavior. Update the owning docs and regressions.

Validation:
- 42 focused streaming, state-sync, snapshot and WebUI tests passed.
- 31 WebSocket security, CSRF and handler tests passed.
- Live DeepSeek and Opus checks showed roughly halved median visible
  update intervals; response scrolling and collapse/expand were checked.

Live browser checks used headless Chromium. Long Opus responses still
show occasional dropped frames as more frequent updates increase render work.
2026-10-29 20:30:12 +01:00
linkliti 4369c31aaa feat(vision): render vision tool calls through a dedicated badge
The vision tool logs its messages as a dedicated vision_load type with an icon verb headline naming the first image and appending + N more for additional images, and passes its arguments through to the log. A core message-handler extension renders the type as the EYE badge and the process-step registry claims it, so the legacy tool-name fallback branch for vision rows is removed. Regression tests cover the log entry and the headline counts.

Validation: pytest tests/test_vision_tool_ui.py
2026-10-21 23:37:32 +03:00
linkliti 14aff7f496 feat(skills): render skills tool calls through a dedicated badge
The skills tool logs every action as a dedicated skills_tool type with an icon verb headline instead of the load-only construction heading: load names the skill, search names the query, read_file names the skill file being read, and list falls back to a plain listing row, with the arguments passed through to the log. A core message-handler extension renders the type as the SKL badge and the process-step registry claims it, so the legacy tool-name fallback branch for skills rows is removed. Regression tests cover the log entry and every headline.

Validation: pytest tests/test_skills_tool_ui.py
2026-10-21 23:37:32 +03:00
linkliti 98c18e17d9 feat(memory): unify memory tools under one action-based memory tool
The four memory tools memory_load, memory_save, memory_delete, and memory_forget collapse into one memory tool whose action arg selects load, save, delete, or forget, matching the action-dispatch shape of other tools. The tool keeps the numeric threshold and limit coercion, the destructive-confirmation guidance, and the exact-match cleanup of forget, and rejects unknown actions through a plugin prompt file. Memory messages now log as a single memory type with icon verb headlines and a dedicated MEM badge matching the behavior adjustment brain pink accent. Update the tool prompt, the Responses schema and prompt tests, the auto-recall and consolidation imports, the orchestrator skill and README references to the new tool, and the plugin DOX and README.

Validation: pytest tests/test_responses_tools.py plugins/_memory/tests/test_memory_tool_ui.py tests/test_tool_action_contracts.py plugins/_orchestrator/tests/test_status_adapters.py
2026-10-21 23:37:32 +03:00
linkliti 220c83341b feat(plugins): extract search_engine tool into _search_engine plugin
Move the search_engine tool, prompts, DOX, and its WebUI message handler into a _search_engine plugin so live web search ships as a standard plugin. Carried-over imports are trimmed, searxng failures render as formatted results, and malformed result items are skipped. The tool logs its message as its own `search_engine` type with an `icon://search Searching: <query>` headline rendered through the SRC badge handler with web access indigo accent styles shared with the browser badge. Regression tests cover the tool.

Validation: pytest tests/test_tool_action_contracts.py tests/test_search_engine_tool.py tests/test_webui_plugin_process_types.py
2026-10-21 19:04:33 +03:00
linkliti c9363cb83e feat(plugins): extract wait tool into _wait plugin
Move the wait tool, helper, prompts, and DOX into a _wait plugin so bundled pause support ships as a standard plugin. The plugin registers its own process-step handler and badge styles, the wait loop anchors to whole-second ticks so overhead cannot shift the countdown phase, and the countdown reports whole seconds. Leftovers of the move are cleaned up, and regression tests cover the arguments and execution paths.

Validation: pytest tests/test_tool_action_contracts.py tests/test_wait_tool.py
2026-10-21 19:04:33 +03:00
linkliti 8ad72a9942 fix(webui): require double tildes for markdown strikethrough
The vendored marked parser treats paired single tildes as strikethrough delimiters, so prose using ~ for approximate values collapsed the text between two tildes into mangled del markup and dropped neighboring emphasis. Override the del tokenizer on the shared marked instance to accept only double-tilde spans like GitHub, leaving single tildes as literal text in every renderer that imports safe-markdown.

Validation: pytest tests/test_markdown_tilde_rendering.py (2 passed, node-backed render of the reported sentence plus ~~text~~ strike); pytest responses-history and office-canvas suites (1 pre-existing failure at HEAD, proven by stash run).
2026-10-13 18:06:47 +03:00
linkliti 62bca7cc92 fix(webui): scope process step ids by log type
A subordinate response intentionally shares its GEN record's id, so the plain process-step-<id> DOM id let the response overwrite the GEN step. Scope ids as process-step-<type>-<id> so one type's update can never overwrite another type's step.

Validation: node --check on messages.js; process-type selectors updated to the scoped ids.
2026-10-13 18:06:47 +03:00
linkliti 3dcad90301 fix(webui): render GEN steps as plain text without KaTeX
GEN process step thoughts and tool args rendered through KaTeX, so dollar-sign sequences in technical prose were mangled into math. Render them as plain text and keep LaTeX on root responses only.

Validation: latex rendering static suite passes; node --check on messages.js.
2026-10-13 18:06:47 +03:00
Alessandro 9ffa0fa8f5 Add reusable overflow menus for chat controls
Keep composer selectors on one row with x-overflow and open their existing
menus from the overflow list. Preserve plugin controls, live avatars and
percentage rings, Alpine state, and mouse, touch, and keyboard interaction.

Fit submenus within the available space and tolerate fractional-pixel
rounding at browser zoom levels. Add DOM and native Chromium zoom
regressions and document the shared directive's contracts.

Validation: 57 focused WebUI checks and 10 context-window checks passed.
Verified the live UI at 100%, 110%, 150%, and 175% browser zoom. Two existing
startup favicon assertions remain unrelated failures.
2026-09-23 06:24:49 +02:00
Alessandro 803aae8f3e Fix process group IDs and standalone message boundaries
Give only the process-group element its ID so lookup returns the group
instead of its wrapper. This lets the first substantive step reveal a
previously hidden utility-only group.

Restrict fallback group lookup to the final message container so later
utilities and responses cannot attach across a standalone message.

Add live/replay regressions for visibility, unique IDs, and message order.
Validated with 62 targeted tests and live desktop/mobile checks.
2026-09-16 16:36:23 +02:00
Alessandro ab88f87b6f Fix flashing process groups during memory search
Text Editor logs rendered as process steps but were missing from raw-log
classification, allowing a following hidden utility message to hide the
whole group. Let plugins register process-step types through the existing
extension system and use those types for grouping and paging.

Preserve the generic tool-step fallback by classifying types that select
that renderer before merging logs. Document the custom handler contract
in the bundled plugin authoring skill.

Validated with 46 targeted tests and live desktop/mobile rendering checks,
including disabled plugins, fallback types, paging, and chat-switch races.
2026-09-16 16:17:37 +02:00
Alessandro b1cbd1f960 Fix file links in chat messages
Recognize file URLs and download API paths in the shared path-link renderer, including inline code. Reuse the existing clickable file paths while preserving existing anchors and fenced code blocks.

Extend the path-link regression check and document the rendering contract. Verified six focused tests and a live web_os.html download on localhost:32081 with matching file hashes.
2026-09-09 14:07:58 +02:00
Alessandro 8818eb4b85 Avoid replaying queued WebUI updates
Coalesce pending state pushes while preserving log records, notification order, collection deltas, and sequence checks. Bound message-window frame waits so hidden or occluded windows can keep synchronizing.

Add behavioral regressions for batching, notification side effects, and suspended frames, and update the owning WebUI contracts.

Verified with 33 focused tests and a live ten-chat benchmark with 276 tool calls. The patched UI was current before window restoration; the original needed 1.95 seconds to catch up.
2026-09-07 18:15:59 +02:00
linkliti 60073f283a Add LLMResult.non_llm sentinel and apply frdel review findings
Add LLMResult.non_llm classmethod for non-LLM AI turns (greeting, intervention progress) so stored metadata does not claim a Responses-API turn. Rename is_thoughts_fallback to looks_like_tool_call (inverted polarity: True when valid A0 response JSON). Rework check to accept any dict containing at least one A0 key (thoughts/headline/tool_name/tool_args); empty dicts and non-A0 dicts fall through to the raw-text fallback branch. Fix drawMessageAgent kvps order to thoughts, tool_name, tool_args keys (reserved keys skipped), then step; reserved keys (thoughts, step, reasoning, tool_name, tool_args, args, headline) win over colliding tool_args keys. Document Hello! seeding turns as few-shot example, drawMessageDefault as deprecated, and plugin get_log_object duplication as intentional. Align context_doctor DOX kvps sentence with code (reasoning only, not thoughts).
2026-09-04 17:44:40 +03:00
linkliti 296c7095ea Polish DOX prose to match frdel imperative-contract pattern
Diary verbs and packed bullets in AGENTS.md updates converted to imperative contracts and parallel ownership lines matching e138e33c baseline.
2026-09-04 15:09:34 +03:00
linkliti a61d24e003 Update DOX files according to previous commits
Document initial greeting turn order, reasoning-only warning ownership, message action rendering, process-step accents, and GEN scroll behavior introduced by recent changes.
2026-09-04 00:20:07 +03:00
linkliti d1907bcd41 Add text_editor custom message handler and CSS
Override get_log_object in TextEditor and TextEditorRemote to log type=text_editor so the WebUI get_message_handler extension routes to _10_text_editor_handler.js. Move EXE colors out of core process-group.css into the _code_execution plugin. Hides _tool_name from display and uses dynamic action+path headings (remote adds (remote) suffix). Behavioral tests instantiate the tools and assert log item attrs.
2026-09-03 15:08:59 +03:00
linkliti 086eee4089 Add verbose tool calls preference and fix step detail scroll
Adds a Show verbose tool calls preference that gates tool name and tool_args display in the message stream, renders tool_name under an icon://build[Tool] header that mirrors the icon://lightbulb[Thoughts] pattern, and disables smooth scrolling in step detail for GEN steps to prevent jumpiness during streaming.
2026-09-03 03:53:38 +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 6d791cda47 Stabilize streaming message controls
Keep message action buttons mounted while streamed updates refresh their handlers, preserving hover, focus, and extension controls. Render the first user turn optimistically and serialize WebSocket state pushes so welcome-screen messages remain visible.
2026-08-27 06:31:42 +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
Alessandro d7130b8c67 Format long WebUI durations with hours
Add hour-aware output to the shared duration formatter while preserving existing seconds and minutes formatting. Reuse it for the goal elapsed counter and cover both formats with a focused regression test.
2026-08-12 14:34:16 +02:00
Alessandro cf7fd3d566 Integrate Agent Editor into the WebUI
Add the Easy and Advanced editor modal, its single Alpine store, profile-switcher entry points and avatars, and the fresh-chat handoff after a successful save.

Restore focus across the shared modal stack and lock down the current interaction contracts as a stable baseline for the dedicated visual-polish phase.
2026-08-12 14:34:15 +02:00
Alessandro 52421df9ec fix(webui): keep replayed warnings in process groups
Prefer cached process render metadata over mutable DOM-tail state when re-rendering warnings. Add focused regression coverage and document the replay contract.
2026-08-01 14:21:42 +02:00
frdel 93d1131ce1 Unify WebUI icons and fix message collapsing
Introduce the x-icon custom element and migrate first-party WebUI and bundled plugin markup while retaining legacy Material icon compatibility. Defer icon-font readiness until the splash-installed document is parsed so Firefox does not leave icons transparent. Centralize chat message collapse handling, avoid false Show More controls on short user messages, and align grouped-message pagination styling. Update DOX and add regression coverage for the icon and collapse behavior.
2026-07-31 13:32:41 +00:00
frdel bebe6826cf Improve WebUI bundling, manifest and stop command
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
frdel 0329003b65 Add UI asset bundler, service worker, tests
Introduce a UI asset bundler and delivery flow: adds helpers/ui_bundler.py to discover same-origin HTML/CSS/JS (<=40KiB), build a versioned JSON bundle, and serialize it for an authenticated /ui/asset-bundle endpoint (handlers added in helpers/ui_server.py with gzip and ETag support). Add webui/sw.js service-worker to accept a preload bundle, populate a per-version cache, serve bundled text entries immediately, and perform runtime caching/cleanup for eligible assets. Update webui/index.html to fetch the bundle asynchronously, send it to the worker, register the worker by bundle version, inline a non-blocking startup splash, and convert stylesheets to non-blocking preload loads. Expose extension readiness from webui/js/extensions.js (webui-extensions-loaded) so startup waits for Alpine and HTML extension loading. Add tests covering bundler behavior, service-worker expectations, and startup ordering.
2026-07-28 16:10:48 +02:00
frdel 2ec52e1968 Add /stop API and stop-button UI/behavior
Introduce a /stop API handler (api/stop.py) and its DOX to cancel an AgentContext run without deleting the context; it clears pause state, progress and logs an info step. Add tests for stopping behavior, chat working animation, and sidebar timestamp/spacing (tests/*). Update helpers/git._format_git_timestamp to emit UTC timestamps without a timezone suffix and add a test for it. Implement stop-related UI/UX: input-store.js gains a stop state, activateSendButton(), and stopAgent() to call /stop; chat-bar-input.html updates the send button markup, aria-label and stop styles. Update sidebar/chat list CSS to add the working-bubble animation, adjust chat row layout and action-button visibility, and left-sidebar/bottom styling (nowrap timestamp). Modify messages.js to hide kvps.finished from display and complete the active process group when finished. Minor welcome-composer and documentation updates to reflect these behaviors.
2026-07-28 09:26:06 +02:00
Alessandro 9e2a1b6324 Revert "Prevent WebUI extension loading stalls"
This reverts commit bf2046ff87.
2026-07-18 13:32:52 +02:00
Alessandro bf2046ff87 Prevent WebUI extension loading stalls
Serialize extension discovery requests to avoid exhausting embedded Chromium request resources. Always clear component loading placeholders after failures and add focused regression coverage.
2026-07-17 16:57:43 +02:00
Alessandro 56e676579d Render standard TeX in chat messages
Convert standard inline and display delimiters before Markdown while preserving code spans and fences. Render agent-thought math locally so generic process and key/value rendering stays flag-free.
2026-07-14 15:57:54 +02:00
Alessandro a7255d9773 Await cached component module imports
Ensure x-component loading awaits cached dynamic import promises before appending deferred markup, matching first-load behavior and preventing Alpine bindings from running before imported stores register.

Document the loader contract in the WebUI JS DOX notes.
2026-07-08 20:53:56 +02:00
Alessandro 04ecaac0cd Add deferred first-send model gate
Move missing-model setup out of the welcome screen and into an in-thread gate that preserves the pending prompt, survives refresh, and auto-dispatches after a usable model is configured.

Reuse existing onboarding, OAuth account settings, and advanced model configuration surfaces instead of duplicating provider forms. Connected OAuth accounts can now populate Main and Utility defaults when no chat model is configured.

Update model readiness checks, focused static regressions, and DOX contracts for the new deferred setup flow.
2026-07-02 17:29:40 +02:00
Alessandro 8ecd7a7f52 Fix file browser action menu clipping
Render file action menus outside the scroll container with fixed positioning so dropdowns remain visible while file list scrolling stays intact.

Deduplicate component body assets during x-component loading and add regressions for the menu, opaque header, and duplicate scoped styles.
2026-07-02 17:29:40 +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
Alessandro 3106abce96 Preserve surface windows across refresh
Restore restorable surface modals through the initFw_end extension hook and keep right-canvas state in session storage for normal reloads.

Fix Desktop host visibility after modal cleanup so preserved iframes reattach to real modal or canvas hosts, and remove the duplicate file-browser path icon overlay.
2026-06-23 18:28:16 +02:00
Alessandro 8bcf1d3165 Fix mobile modal layering over canvas rail
Raise the shared modal stack above the mobile right-canvas rail so blocking modals remain authoritative on small screens. Compact the mobile rail below 420px to reduce intrusion on narrow phones, and document the stacking contract in the owning DOX files.

Verification: pytest tests/test_browser_agent_regressions.py -q; pytest tests/test_office_canvas_setup.py -q; git diff --check; headless Chrome smoke confirmed modal content wins at the rail overlap point.
2026-06-23 16:41:15 +02:00
Alessandro a27ac51136 Route mobile canvas rail to modals
Keep the right-canvas rail visible at mobile widths while routing non-action surface affordances into floating modals instead of the side canvas shell. Hide mobile surface-modal header controls except the close button and Editor New action, and clamp floating surface modal geometry to narrow viewports.
2026-06-23 13:28:38 +02:00
Alessandro ffddc3ebcb Promote Files into shared canvas surface
Add Files to the universal canvas rail and sidebar flow, with a reusable floating surface modal chrome that matches Browser/Desktop behavior.

Make the File Browser modal draggable/resizable with Focus mode, keep Editor on the same draggable modal helper, and preserve dock/undock handoff state.

Harden File Browser startup so empty paths resolve to the default workdir, restyle the Up control, compact New file/New folder actions, and hide Modified before Name/Size in narrow containers.

Update DOX contracts and focused regression coverage for the new Files surface, modal chrome, default-path fallback, and compact layout behavior.
2026-06-23 11:19:58 +02:00
neurocis 6609632bf6 feat(login): Implement secure post-login redirection
Return users to their original requested page after login, with robust same-origin validation to prevent open redirects.

Co-Author Agent Hero <agent-hero@neurocis.ai>
2026-06-02 21:54:48 -07:00
frdel 175baa49db Add AGENTS.md DOX files and migrate docs
Introduce DOX (AGENTS.md) contracts across the repository to formalize ownership and local work contracts: adds .github/AGENTS.md plus AGENTS.md files for agents, api, conf, docker, docs, extensions, helpers, knowledge, lib, plugins, prompts, scripts, skills, tests, tools, usr, webui (and several subfolders). Update root AGENTS.md (content and last-updated date) to include DOX framework guidance and a child DOX index. Update .gitignore to allow usr/ and usr/plugins AGENTS.md files. Remove legacy deep-dive files under docs/agents (banners, components, modals, plugins) and migrate frontend/plugin references to webui/ and plugins/ DOX locations. Also adjust plugins/README.md and several skills/*/SKILL.md files to align with the new DOX layout.
2026-06-01 13:55:07 +02:00
Alessandro b64c43e736 Unify surface modal header actions
Add a shared grouped action rail for Browser, Desktop, and Editor floating surface modals so modality switches, canvas docking, focus mode, New, and close controls appear in a consistent order with separators. Fix the Desktop focus button class collision that hid the canvas docking button, and align dock button labels with canvas terminology.
2026-05-22 14:19:35 +02:00
Alessandro d1827e6c66 Refactor: use user locale for time displays
Add user-configurable timezone and 12/24-hour preferences, then wire them through settings, runtime snapshots, scheduler payloads, wait handling, notifications, backups, memory, plugin metadata, and frontend formatters.

Keep UTC as the boundary for absolute instants while serializing user-facing dates in the configured or browser-resolved timezone. Preserve scheduler wall-clock inputs in the selected timezone, propagate TZ into desktop/runtime process environments, and restart active desktop sessions when the runtime timezone changes.

Cover the risky paths with timezone regression tests for settings normalization, auto and fixed timezone resolution, scheduler round-trips, memory timestamp conversion, and desktop timezone sync.
2026-05-21 15:26:00 +02:00
Alessandro 675afa8dee Refactor speech stack into built-in Kokoro TTS and Whisper STT plugins
Split the legacy core speech stack into two built-in, independently toggleable plugins: `_kokoro_tts` for TTS and `_whisper_stt` for STT.

This refactor keeps dependency installation and bootstrap concerns in Docker/bootstrap/preload, while moving speech-specific tooling, APIs, prompts, UI, and runtime behavior into the plugins. Core now exposes engine-agnostic `tts-service` and `stt-service` brokers, with browser-native TTS preserved as the fallback when Kokoro is disabled.

Included in this change:
- add built-in `_kokoro_tts` plugin with plugin-owned synth API, config, status UI, and provider registration
- add built-in `_whisper_stt` plugin with plugin-owned transcribe API, mic runtime, device UI, prompt injection, and provider registration
- remove legacy core speech APIs/helpers/settings/UI and delete unused `webui/js/speech_browser.js`
- replace the old hardcoded speech settings section with a generic voice surface backed by plugin extensions
- update preload/docs/tests to match the new plugin-owned speech architecture

Behavioral intent:
- both plugins are built-in but not `always_enabled`
- users can now hot-switch TTS and STT independently
- browser TTS remains available when `_kokoro_tts` is off
- Whisper mic UI only appears when `_whisper_stt` is enabled
2026-05-21 05:41:59 +02:00
Alessandro 89901b64f0 Polish native Markdown editor experience
Expand the dedicated Editor surface with safe rendered preview mode, ACE-backed source editing, browser-style tabs, toolbar/file actions, preview search, and richer Markdown rendering for code blocks, task lists, images, tables, math, local links, and footnotes.

Keep open Markdown files synchronized with the active context and saved tool edits, including live refresh for document_artifact and text_editor results without routing Markdown through Desktop/Office.

Add inline preview-page editing, clickable preview task-list checkboxes, source editor rehydration after preview-mode refreshes, and regression coverage for the new editor wiring and sync behavior.
2026-05-15 04:47:24 +02:00
Alessandro 330a0c5790 Split Markdown editor into dedicated surface
Add a builtin _editor plugin that owns Markdown API/WebSocket sessions, canvas and modal UI, live refresh, tabs, prompt Extras for active-context open files, inline close confirmation, and Close All handling.

Route Markdown document artifacts to Editor while keeping Office/Desktop focused on LibreOffice formats, and update Desktop/Office prompts, menus, compatibility shims, and regression coverage.
2026-05-15 02:41:41 +02:00
Muhammad Ali 35cfcb3be3 fix(webui): sanitize chat markdown rendering 2026-05-12 16:40:48 -04:00