2 Commits
Author SHA1 Message Date
HUANG Cheng ce5a7505f0 fix(chat): in-chat preview for knowledge citations (#634) (#642)
* feat(knowledge): include document path in citation markers

* feat(chat): in-chat preview for knowledge citations (#634)

Open Sources chips in a chat modal (rich with text fallback), show KB/path
in the tooltip, and deep-link View in knowledge base to the right folder.

* polish(chat): citation preview UX — tooltip, nav, download, path

Only show tooltip when nested path or truncation; match KB modal width
for markdown; hide download without original; prev/next + arrow keys;
scroll-to-top for long MD; resolve path/has_original from document list.

* polish(dashboard): open citation preview and expert file edit as right drawers

Align chat knowledge citation preview and expert workspace file edit with
the knowledge-base text editor: placement=right, shared width, footer actions.

* polish(chat): put knowledge base name inline in citation drawer title

Show filename · kbName on one line; keep nested folder path as the only subtitle.

* refactor(chat): open knowledge citations in the shared dock panel

Match “edited files” behavior: Sources chips open knowledge tabs in the
chat dock instead of a separate Ant Design drawer.

* fix(dashboard): keep nearby PDF pages mounted to avoid blank scroll canvases

Windowed react-pdf unmount/remount left blank pages while scrolling; keep
pages sticky around the current page and tighten citation dock flex height.
2026-09-10 17:47:22 +08:00
e07824e6a9 Fix/agent env usage workspace (#351)
* fix: inject Admin env into running agents and sum turn token usage

Running shells and Docker sandboxes now pick up ~/.octop/env (and workspace .env) without a full reload; MCP stdio no longer inherits the entire host environment. Usage accounting adds every model call in the turn, and workspace I/O survives the harness rebuild window.

Co-authored-by: Cursor <cursoragent@cursor.com>

* feat: schema v7 identity, expert profiles, chat artifacts, and KB citations (#346)

* feat: schema v7 identity, expert profiles, chat artifacts, and KB citations

Fold integer PKs plus public string ids, document folders, agent profile columns, and thread artifacts into v7 SQL (not only Python helpers). Experts get workspace avatars and a single welcome_message; chat keeps file changes across sessions, shows knowledge citations, and can drag workspace files.

Co-authored-by: Cursor <cursoragent@cursor.com>

* chore: drop cron JobDrawer UX from the schema v7 PR

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix: prefer tool-arg paths when recording chat artifacts

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: jubaoliang <jubaoliang@tencent.com>
Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: jubaoliang <jubaoliang@tencent.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 10:17:39 +08:00