Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
feat(ui): a markdown composer with chips and a compact settings bar
The composer is now a CodeMirror editor running a port of alphaXiv's
markdown live preview: formatting renders in place and its marks reveal
under the caret. Reveals wait for the mouse button to come up, so a drag
selects the text it started on instead of chasing marks that appear
under the pointer; a drag that covers a span's text then grows to take
its marks. Colors come from the theme's syntax and link tokens,
so both themes hold.

/commands, @paths that exist in the checkout, and attachments render as
atomic chips. Pasted, dropped and uploaded files are cited in the draft
as [Image #n] / [PDF #n] at the caret; a send carries only the cited
attachments, renumbered in order of mention, so deleting a chip deletes
the attachment and the agent sees where each image belongs. This
replaces the thumbnail row and the textarea mirror that painted skill
chips.

Below the box, a Knife-style bar: data sources and mode chips on the
left; model, effort and permissions on the right. Effort and
permissions split out of the old settings menu, and autonomy joins
permissions as a second section. Claude's ultracode, xhigh plus dynamic
workflows, toggles beneath the effort levels. The box grows to eight lines, then
scrolls; its top edge drags to a remembered height, replacing the
textarea resizer from #863 under the same storage keys.

Message refs (`msg_…`) paste into the draft as chips with the cited
message's author and first words, and read as pills in sent messages.
Copy link on a message puts its ref on the clipboard. A ref in the
user's own message now expands for the agent like one an agent sends,
so the agent reads the cited words instead of an id it cannot look up.

`@` opens one add-context menu: files, alphaXiv library papers and
chats in the project. A paper enters the draft as a markdown link to its
alphaXiv page and shows as a chip, as does one added from the library
button, now beside data sources in the bar; a chat enters as its id.

Assisted-by: claude-opus-5.5
  • Loading branch information
small-angel committed Nov 4, 2026
commit 0f32663aa0a746c9022b928d8ce89a5532f4d961
10 changes: 6 additions & 4 deletions arc/agents.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,12 @@ only the agent reads the refs expanded and the instructions around them. The
dashboard shows it as the sender's message, and a finished run by its outcome.

**Messages travel by reference.** Each user message reaches its agent tagged
with a short ref from its id. A ref in a task or message expands to the cited
message, its chat and its attachments, so a delegate reads the user's own words
rather than a paraphrase. In the dashboard, a ref or chat id an agent writes is
a link to that message or chat. An agent can read any chat. It can message or answer
with a short ref from its id. A ref in a task or message, the user's included,
expands to the cited message, its chat and its attachments, so a delegate reads
the user's own words rather than a paraphrase. In the dashboard, a ref is a
link to that message wherever it is written, and a chat id an agent writes is a
link to that chat; Copy link on a message puts its ref on the clipboard, and the
composer shows a pasted ref as a chip. An agent can read any chat. It can message or answer
its own delegates, and any other chat whose permission mode orx can read and is
no broader than its own, and it can stop its own delegates.

Expand Down
13 changes: 10 additions & 3 deletions src/local/chat/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4790,12 +4790,13 @@ impl ChatHost {
text: project
.filter(|_| orx.is_none())
.map(|project| {
expand_slash_skills(
let text = expand_slash_skills(
&project,
&text,
Some(&session.harness),
Some(session_id),
)
);
delegation::expand_refs(&store, &text).unwrap_or(text)
})
.unwrap_or_else(|| text.clone()),
display: orx
Expand Down Expand Up @@ -5932,7 +5933,13 @@ impl ChatHost {
let mut turn_text = prepared_input.unwrap_or_else(|| {
let mut expanded = contextualize_messages(messages, |text| {
if orx.is_empty() {
expand_slash_skills(&project, text, Some(&session.harness), Some(&session.id))
let text = expand_slash_skills(
&project,
text,
Some(&session.harness),
Some(&session.id),
);
delegation::expand_refs(&store, &text).unwrap_or(text)
} else {
text.to_string()
}
Expand Down
9 changes: 6 additions & 3 deletions ui/messages/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,6 @@
"chat_panel_reject": "رفض",
"chat_panel_remove": "إزالة",
"chat_panel_remove_annotation": "إزالة التعليق",
"chat_panel_remove_file": "إزالة الملف",
"chat_panel_remove_image": "إزالة الصورة",
"chat_panel_remove_queued_message": "إزالة الرسالة من قائمة الانتظار",
"chat_panel_rename": "إعادة تسمية",
"chat_panel_reviewed_code_changes": "راجع تغييرات الشيفرة",
Expand Down Expand Up @@ -744,8 +742,8 @@
"a11y_trackio_charts": "مخططات Trackio لهذا التشغيل",
"experiment_overview_visualize": "تصوّر",
"detail_drawer_trackio_no_data": "لم يسجّل هذا التشغيل أي بيانات في Trackio بعد.",
"a11y_preview_skill": "معاينة مهارة /{name}",
"a11y_skill": "مهارة {name}",
"a11y_preview_skill": "معاينة مهارة /{name}",
"a11y_actions_for": "إجراءات {name}",
"a11y_browse_code_on": "تصفّح الشيفرة على {branch}",
"a11y_remove_annotation": "إزالة التعليق {number}",
Expand Down Expand Up @@ -1026,6 +1024,7 @@
"model_picker_mode": "الوضع",
"model_picker_permissions": "الأذونات",
"model_picker_fast_mode": "الوضع السريع",
"model_picker_ultracode_description": "جهد عالٍ جدًا مع مسارات عمل ديناميكية.",
"model_picker_new_chat_harness": "ابدأ محادثة جديدة لاستخدام هذا الوكيل",
"model_picker_autonomy": "الاستقلالية",
"model_picker_autonomy_agentic": "وكيل مستقل",
Expand Down Expand Up @@ -1210,6 +1209,7 @@
"copy_command_description": "نسخ آخر رد",
"export_command_description": "تنزيل هذه المحادثة بتنسيق Markdown",
"chat_copy_response": "نسخ الرد",
"chat_copy_message_link": "نسخ الرابط",
"chat_nothing_to_copy": "لا يوجد رد لنسخه بعد",
"chat_nothing_to_export": "لا يوجد شيء لتصديره بعد",
"chat_export_you": "أنت",
Expand Down Expand Up @@ -1628,6 +1628,9 @@
"account_offline_reason": "تعذر الوصول إلى OpenResearch على {url}. تحقق من تشغيله ثم حاول مجددًا.",
"account_server_reason": "أرجع OpenResearch على {url} خطأ{status}. تحقق مجددًا.",
"library_picker": "مكتبة alphaXiv",
"mention_menu_files": "الملفات",
"mention_menu_papers": "الأوراق",
"mention_menu_chats": "المحادثات",
"library_search": "البحث في المكتبة",
"library_recent": "المضافة مؤخرًا",
"library_no_matches": "لا توجد نتائج",
Expand Down
9 changes: 6 additions & 3 deletions ui/messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,6 @@
"chat_panel_reject": "Reject",
"chat_panel_remove": "Remove",
"chat_panel_remove_annotation": "Remove annotation",
"chat_panel_remove_file": "Remove file",
"chat_panel_remove_image": "Remove image",
"chat_panel_remove_queued_message": "Remove queued message",
"chat_panel_rename": "Rename",
"chat_panel_reviewed_code_changes": "Reviewed code changes",
Expand Down Expand Up @@ -745,8 +743,8 @@
"a11y_trackio_charts": "Trackio charts for this run",
"experiment_overview_visualize": "Visualize",
"detail_drawer_trackio_no_data": "This run has not logged to Trackio yet.",
"a11y_preview_skill": "Preview /{name} skill",
"a11y_skill": "{name} skill",
"a11y_preview_skill": "Preview /{name} skill",
"a11y_actions_for": "Actions for {name}",
"a11y_browse_code_on": "Browse code on {branch}",
"a11y_remove_annotation": "Remove annotation {number}",
Expand Down Expand Up @@ -1027,6 +1025,7 @@
"model_picker_mode": "Mode",
"model_picker_permissions": "Permissions",
"model_picker_fast_mode": "Fast mode",
"model_picker_ultracode_description": "Extra high effort with dynamic workflows.",
"model_picker_new_chat_harness": "Start a new chat to use this harness",
"model_picker_autonomy": "Autonomy",
"model_picker_autonomy_agentic": "Agentic",
Expand Down Expand Up @@ -1211,6 +1210,7 @@
"copy_command_description": "Copy the last response",
"export_command_description": "Download this chat as Markdown",
"chat_copy_response": "Copy response",
"chat_copy_message_link": "Copy link",
"chat_nothing_to_copy": "No response to copy yet",
"chat_nothing_to_export": "Nothing to export yet",
"chat_export_you": "You",
Expand Down Expand Up @@ -1628,6 +1628,9 @@
"account_offline_reason": "Can’t reach OpenResearch at {url}. Check that it’s running, then try again.",
"account_server_reason": "OpenResearch at {url} returned an error{status}. Check again.",
"library_picker": "alphaXiv library",
"mention_menu_files": "Files",
"mention_menu_papers": "Papers",
"mention_menu_chats": "Chats",
"library_search": "Search library",
"library_recent": "Recently added",
"library_no_matches": "No matches",
Expand Down
9 changes: 6 additions & 3 deletions ui/messages/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,6 @@
"chat_panel_reject": "Rechazar",
"chat_panel_remove": "Quitar",
"chat_panel_remove_annotation": "Quitar anotación",
"chat_panel_remove_file": "Quitar archivo",
"chat_panel_remove_image": "Quitar imagen",
"chat_panel_remove_queued_message": "Quitar mensaje en cola",
"chat_panel_rename": "Renombrar",
"chat_panel_reviewed_code_changes": "Revisó cambios en el código",
Expand Down Expand Up @@ -745,8 +743,8 @@
"a11y_trackio_charts": "Gráficos de Trackio de esta ejecución",
"experiment_overview_visualize": "Visualizar",
"detail_drawer_trackio_no_data": "Esta ejecución aún no ha registrado datos en Trackio.",
"a11y_preview_skill": "Vista previa de la skill /{name}",
"a11y_skill": "Skill {name}",
"a11y_preview_skill": "Vista previa de la skill /{name}",
"a11y_actions_for": "Acciones para {name}",
"a11y_browse_code_on": "Explorar el código en {branch}",
"a11y_remove_annotation": "Quitar la anotación {number}",
Expand Down Expand Up @@ -1027,6 +1025,7 @@
"model_picker_mode": "Modo",
"model_picker_permissions": "Permisos",
"model_picker_fast_mode": "Modo rápido",
"model_picker_ultracode_description": "Esfuerzo extra alto con flujos de trabajo dinámicos.",
"model_picker_new_chat_harness": "Inicia un chat nuevo para usar este agente",
"model_picker_autonomy": "Autonomía",
"model_picker_autonomy_agentic": "Agéntico",
Expand Down Expand Up @@ -1211,6 +1210,7 @@
"copy_command_description": "Copia la última respuesta",
"export_command_description": "Descarga este chat en Markdown",
"chat_copy_response": "Copiar respuesta",
"chat_copy_message_link": "Copiar enlace",
"chat_nothing_to_copy": "Aún no hay ninguna respuesta que copiar",
"chat_nothing_to_export": "Aún no hay nada que exportar",
"chat_export_you": "Tú",
Expand Down Expand Up @@ -1628,6 +1628,9 @@
"account_offline_reason": "No se puede conectar con OpenResearch en {url}. Comprueba que esté en ejecución y vuelve a intentarlo.",
"account_server_reason": "OpenResearch en {url} devolvió un error{status}. Compruébalo de nuevo.",
"library_picker": "Biblioteca de alphaXiv",
"mention_menu_files": "Archivos",
"mention_menu_papers": "Artículos",
"mention_menu_chats": "Chats",
"library_search": "Buscar en la biblioteca",
"library_recent": "Añadidos recientemente",
"library_no_matches": "Sin resultados",
Expand Down
9 changes: 6 additions & 3 deletions ui/messages/fa.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,6 @@
"chat_panel_reject": "رد کردن",
"chat_panel_remove": "حذف",
"chat_panel_remove_annotation": "حذف یادداشت",
"chat_panel_remove_file": "حذف فایل",
"chat_panel_remove_image": "حذف تصویر",
"chat_panel_remove_queued_message": "حذف پیام صف",
"chat_panel_rename": "تغییر نام",
"chat_panel_reviewed_code_changes": "تغییرات کد بازبینی شد",
Expand Down Expand Up @@ -739,8 +737,8 @@
"a11y_trackio_charts": "نمودارهای Trackio برای این اجرا",
"experiment_overview_visualize": "مصورسازی",
"detail_drawer_trackio_no_data": "این اجرا هنوز چیزی در Trackio ثبت نکرده است.",
"a11y_preview_skill": "پیش‌نمایش مهارت ‎/{name}",
"a11y_skill": "مهارت {name}",
"a11y_preview_skill": "پیش‌نمایش مهارت ‎/{name}",
"a11y_actions_for": "عملیات {name}",
"a11y_browse_code_on": "مرور کد در شاخهٔ {branch}",
"a11y_remove_annotation": "حذف یادداشت {number}",
Expand Down Expand Up @@ -1021,6 +1019,7 @@
"model_picker_mode": "حالت",
"model_picker_permissions": "مجوزها",
"model_picker_fast_mode": "حالت سریع",
"model_picker_ultracode_description": "استدلال بسیار بالا با گردش‌کارهای پویا.",
"model_picker_new_chat_harness": "برای استفاده از این عامل، گفت‌وگوی جدیدی شروع کنید",
"model_picker_autonomy": "خودمختاری",
"model_picker_autonomy_agentic": "خودکار",
Expand Down Expand Up @@ -1205,6 +1204,7 @@
"copy_command_description": "کپی آخرین پاسخ",
"export_command_description": "دانلود این گفت‌وگو به‌صورت Markdown",
"chat_copy_response": "کپی پاسخ",
"chat_copy_message_link": "کپی پیوند",
"chat_nothing_to_copy": "هنوز پاسخی برای کپی وجود ندارد",
"chat_nothing_to_export": "هنوز چیزی برای خروجی گرفتن وجود ندارد",
"chat_export_you": "شما",
Expand Down Expand Up @@ -1628,6 +1628,9 @@
"account_offline_reason": "اتصال به OpenResearch در {url} ممکن نیست. از اجرای آن مطمئن شوید و دوباره تلاش کنید.",
"account_server_reason": "OpenResearch در {url} خطایی برگرداند{status}. دوباره بررسی کنید.",
"library_picker": "کتابخانهٔ alphaXiv",
"mention_menu_files": "فایل‌ها",
"mention_menu_papers": "مقاله‌ها",
"mention_menu_chats": "گفتگوها",
"library_search": "جستجو در کتابخانه",
"library_recent": "تازه افزوده‌شده",
"library_no_matches": "نتیجه‌ای یافت نشد",
Expand Down
9 changes: 6 additions & 3 deletions ui/messages/hi.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,6 @@
"chat_panel_reject": "अस्वीकार करें",
"chat_panel_remove": "हटाएं",
"chat_panel_remove_annotation": "एनोटेशन हटाएं",
"chat_panel_remove_file": "फ़ाइल हटाएं",
"chat_panel_remove_image": "इमेज हटाएं",
"chat_panel_remove_queued_message": "कतार में लगा संदेश हटाएं",
"chat_panel_rename": "नाम बदलें",
"chat_panel_reviewed_code_changes": "कोड में बदलावों की समीक्षा की",
Expand Down Expand Up @@ -745,8 +743,8 @@
"a11y_trackio_charts": "इस रन के Trackio चार्ट",
"experiment_overview_visualize": "विज़ुअलाइज़ करें",
"detail_drawer_trackio_no_data": "इस रन ने अभी तक Trackio में लॉग नहीं किया है।",
"a11y_preview_skill": "/{name} स्किल का पूर्वावलोकन करें",
"a11y_skill": "{name} स्किल",
"a11y_preview_skill": "/{name} स्किल का पूर्वावलोकन करें",
"a11y_actions_for": "{name} के लिए क्रियाएं",
"a11y_browse_code_on": "{branch} पर कोड ब्राउज़ करें",
"a11y_remove_annotation": "एनोटेशन {number} हटाएं",
Expand Down Expand Up @@ -1027,6 +1025,7 @@
"model_picker_mode": "मोड",
"model_picker_permissions": "अनुमतियाँ",
"model_picker_fast_mode": "तेज़ मोड",
"model_picker_ultracode_description": "अतिरिक्त उच्च प्रयास स्तर, गतिशील वर्कफ़्लो के साथ।",
"model_picker_new_chat_harness": "इस एजेंट का उपयोग करने के लिए नई चैट शुरू करें",
"model_picker_autonomy": "स्वायत्तता",
"model_picker_autonomy_agentic": "एजेंटिक",
Expand Down Expand Up @@ -1211,6 +1210,7 @@
"copy_command_description": "आखिरी जवाब कॉपी करें",
"export_command_description": "इस चैट को Markdown के रूप में डाउनलोड करें",
"chat_copy_response": "जवाब कॉपी करें",
"chat_copy_message_link": "लिंक कॉपी करें",
"chat_nothing_to_copy": "कॉपी करने के लिए अभी कोई जवाब नहीं है",
"chat_nothing_to_export": "एक्सपोर्ट करने के लिए अभी कुछ नहीं है",
"chat_export_you": "आप",
Expand Down Expand Up @@ -1628,6 +1628,9 @@
"account_offline_reason": "{url} पर OpenResearch से संपर्क नहीं हो सका। जाँचें कि वह चल रहा है, फिर दोबारा कोशिश करें।",
"account_server_reason": "{url} पर OpenResearch ने त्रुटि लौटाई{status}। फिर जाँचें।",
"library_picker": "alphaXiv लाइब्रेरी",
"mention_menu_files": "फ़ाइलें",
"mention_menu_papers": "पेपर",
"mention_menu_chats": "चैट",
"library_search": "लाइब्रेरी खोजें",
"library_recent": "हाल ही में जोड़े गए",
"library_no_matches": "कोई परिणाम नहीं",
Expand Down
9 changes: 6 additions & 3 deletions ui/messages/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,6 @@
"chat_panel_reject": "却下",
"chat_panel_remove": "削除",
"chat_panel_remove_annotation": "注釈を削除",
"chat_panel_remove_file": "ファイルを削除",
"chat_panel_remove_image": "画像を削除",
"chat_panel_remove_queued_message": "待機中のメッセージを削除",
"chat_panel_rename": "名前を変更",
"chat_panel_reviewed_code_changes": "コードの変更をレビューしました",
Expand Down Expand Up @@ -745,8 +743,8 @@
"a11y_trackio_charts": "この実行の Trackio グラフ",
"experiment_overview_visualize": "可視化",
"detail_drawer_trackio_no_data": "この実行はまだ Trackio に記録していません。",
"a11y_preview_skill": "/{name} スキルをプレビュー",
"a11y_skill": "{name} スキル",
"a11y_preview_skill": "/{name} スキルをプレビュー",
"a11y_actions_for": "{name} の操作",
"a11y_browse_code_on": "{branch} のコードを閲覧",
"a11y_remove_annotation": "注釈 {number} を削除",
Expand Down Expand Up @@ -1027,6 +1025,7 @@
"model_picker_mode": "モード",
"model_picker_permissions": "権限",
"model_picker_fast_mode": "高速モード",
"model_picker_ultracode_description": "非常に高い推論レベルと動的ワークフロー。",
"model_picker_new_chat_harness": "このエージェントを使用するには新しいチャットを開始してください",
"model_picker_autonomy": "自律性",
"model_picker_autonomy_agentic": "自律エージェント",
Expand Down Expand Up @@ -1211,6 +1210,7 @@
"copy_command_description": "最後の応答をコピー",
"export_command_description": "このチャットを Markdown としてダウンロード",
"chat_copy_response": "応答をコピー",
"chat_copy_message_link": "リンクをコピー",
"chat_nothing_to_copy": "コピーする応答はまだありません",
"chat_nothing_to_export": "エクスポートする内容はまだありません",
"chat_export_you": "あなた",
Expand Down Expand Up @@ -1628,6 +1628,9 @@
"account_offline_reason": "{url} のOpenResearchに接続できません。起動していることを確認して、もう一度お試しください。",
"account_server_reason": "{url} のOpenResearchでエラーが発生しました{status}。もう一度確認してください。",
"library_picker": "alphaXiv ライブラリ",
"mention_menu_files": "ファイル",
"mention_menu_papers": "論文",
"mention_menu_chats": "チャット",
"library_search": "ライブラリを検索",
"library_recent": "最近追加した論文",
"library_no_matches": "該当なし",
Expand Down
Loading
Loading