mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-07-13 10:58:29 +00:00
1.4 KiB
1.4 KiB
Editor Plugin DOX
Purpose
- Own the native Markdown and plain text editor surface for canvas and floating modal workflows.
Ownership
api/owns editor session and WebSocket handlers.helpers/owns editor text session and open-file context helpers.prompts/owns agent-visible open-file context.webui/owns editor panel, preview, store, and main surface.extensions/owns editor hook contributions.
Local Contracts
- Keep editor session state synchronized across API, WebSocket, and WebUI panel behavior.
- Do not expose unsaved content or local paths beyond intended chat/context surfaces.
- Keep the floating Editor modal on the shared surface modal chrome so the header remains draggable while existing Focus mode continues to work.
- Keep Editor Open wired through the File Browser text picker so users can open one or more Markdown or plain text files with an obvious confirmation action.
- Keep Save As distinct from Rename: Save As writes the current editor text to a chosen
.mdor.txtpath and retargets the active session without removing the original file. - Preserve source chat context ids when opening Markdown files from tool-result canvas handoffs.
Work Guidance
- Coordinate editor preview and session changes with canvas surface registration.
Verification
- Smoke-test opening, editing, previewing, and reconnecting editor sessions after changes.
Child DOX Index
No child DOX files.