Release Notes
What changed in each AMBA release. The app updates itself; you can also download the latest version.
0.6.9 — 2026-11-15
Fixed: a very wide spreadsheet no longer leaves the app slow after it opens (TASK-889). Rarely, opening a sheet with hundreds of columns kept the grid redrawing the same picture over and over, so the whole window crawled at a few frames per second until it was closed. The grid now redraws only when something on screen changed.
Internal (TASK-741 stage B): Word and slide edits by an agent record the run that made them on the Doc-Ops revision (
edit_docx/edit_pptxcalldoc_ops_record_revision_for_run; the owner's own edits keeprun_idNone).Internal (TASK-889): the canvas grid skips a scheduled repaint that would draw the same frame again (same view, data, selection, find, charts, palette and measured widths), so a paint request re-armed every frame costs a comparison instead of a full paint of a wide sheet;
flush()still always paints. QA harness:Harness.stepDeadlineMsfails an overdue step with a screenshot and ends the run with a report;grid-scroll-perfsets 90 s.Fixed: dragging a wrapped-text column down to width 0 no longer makes row 1 grow very tall (F-x-resize-wrap-row1). Automatic row heights now ignore wrapped text in hidden or zero-width columns, and hidden rows.
Added: links in Excel and slide PDFs, and a language for Word PDFs (F-pdf-leftovers). Cell hyperlinks in an exported Excel PDF are clickable (web and mail addresses; a link to another sheet jumps to that sheet's first page), a link on a merged cell covers the whole merge. Links on text and shapes of a slide are clickable in the slide PDF (not on rotated or flipped shapes). A Word PDF now declares the document's language (from its default or first run language) so screen readers and PDF tools pick the right voice and hyphenation.
Internal:
pnpm run sweeprunscargo sweep --installedandcargo sweep --time 3on src-tauri/target and every agent target slot;check:diskreports any target directory over 18 GB and--fixsweeps it first (Founder storage policy, 14/11).Fixed: Excel formulas saved without a result now show their numbers (TASK-879). Some tools (Python's openpyxl, for one) write formulas but no results, so the grid showed empty cells where Excel and OnlyOffice, which recalculate on open, showed numbers. AMBA now computes those cells for display, PDF export and find, marks them with a small corner triangle, and the bar above the grid says "Giá trị do AMBA tính (file chưa lưu kết quả)" with a [?] tip. A cell AMBA cannot compute shows
#AMBA?and the tip names the function; a lookup that finds nothing shows#N/Aas in Excel. The file itself is never changed. The formula engine now also computesINDEX,MATCH,VLOOKUP,HLOOKUP, and text and date functions applied cell by cell insideSUMPRODUCT((MID(range,4,7)=$A2)*range), so AMBA's own edits store these results too.Internal (TASK-879): view reader
xlsx/view/compute.rs: formula cells with no<v>or an empty<v/>are evaluated once per sheet load (the sheet and the sheets its uncached formulas reach, ≤ 2,000,000 cells, evaluator budgets), cached with the parsed sheet (per file version); cached values are never recomputed,fullCalcOnLoador not.ViewSheet::computed_cell/uncached_formula_count; tile format v1 gains optional trailing section 7 (computed cells and notes, decoded bytileCodec.tsasTileCell.amba). Evaluator: Excel error kinds (SheetGrid::errors,formula_error,set_error,evaluate_formula_result) propagate through references and are caught byIFERROR.recalc_packagerewrites only sheets that gained a value and reports every formula left without one (RecalcStats::unresolved_cells≤ 200 with reasons,changed_sheets). QA scenarioxlsx-uncached(fixtureuncached-xlsx).Fixed: numbers in Excel files the agent builds with a script show in AMBA (TASK-880). A workbook the agent wrote with its Python sandbox stored every formula without a result, so Excel recalculated it on open but AMBA's viewer, previews, PDF export, the phone app and Excel's protected view showed a whole sheet of blanks. Before such a file is saved, AMBA now calculates its formulas and stores the results. Formulas AMBA cannot calculate yet (and Excel errors) stay for Excel to calculate on open, never with a guessed value, and the agent is told which cells those are. Nothing else in the file changes: if the check after calculating finds any other difference, the file is saved as the script made it.
Internal (TASK-880):
office_sandbox::formula_cache::fill_cached_valuesruns inoffice_scriptafter verification and before the atomic write (inside the run's claim on the output, off the async thread):recalc_package, then only worksheet parts that gained cached values are copied into the original package (other parts raw-copied;workbook.xmlonly to addfullCalcOnLoadwhen values are left), then the office-verify model must compare equal, formula count unchanged and no new verifier problem, else the original bytes stay. Skips files over 30 MB; one info log per file (filled, left, ms). Previously the left count was always 0 becauserecalc_packagereports unresolved cells only for cells a batch wrote.Added: review what the agent changed in the grid (TASK-741). Cells an agent wrote to the open workbook get a small blue corner mark (hover shows "Agent đổi: cũ → mới" and the time) and a bar above the grid reads "Agent đã đổi N ô" with Nhận tất cả, Hoàn tác tất cả and previous/next buttons that jump to each change, switching sheet. Right-click a selection → "Nhận thay đổi của agent" / "Hoàn tác thay đổi của agent" for just those cells. An undo is one step of the grid's own undo: ⌘Z puts the agent's cells back. Cells you edited since are no longer marked and are skipped (with a notice). Disabled while an agent is writing the file.
Added: speaker notes, layout, image and shape on a slide. The notes pane under the slide is now editable (saved a moment after you stop typing and when you leave it, IME-safe, collapsible, remembered); right-click a slide in the strip for "Bố cục" to switch its layout (the text moves to the matching placeholders, the rest keeps its place); right-click a picture for "Thay ảnh…" (pick a PNG or JPEG of the project, fitted into the same frame) and any shape for "Xoá", or select a shape and press Delete. Each change is one undo step (⌘Z) and the view is read-only while an agent writes the file.
Added: type on a slide. Double-click a title or text box on the slide (or select it and press Enter or F2) and type right there, Vietnamese included: Enter starts a new paragraph, Shift+Enter breaks the line, Esc leaves. It saves a moment after you stop typing, each save is one ⌘Z step, and the text keeps its font and colour. Text in tables, charts and groups is not editable yet; a file the agent is writing stays view-only.
Added: page setup and an up-to-date table of contents in the Word page view (W3e-A). "Thiết lập trang" in the format bar sets paper (A4, A5, Letter, Legal or a size in mm), orientation and margins for the section in view or the whole file, with presets including the Vietnamese official-letter layout of Decree 30/2020 (A4, margins 20/20/30/15 mm); the pages are laid out again at once and one ⌘Z undoes it. A file with a table of contents shows fresh entries and page numbers on the pages (the file is not touched), and "Cập nhật mục lục" writes them into the field (headings by level, links, right tab with dot leader, field code kept, one undo step). Contents with custom styles or figure tables, inside content controls or with tracked changes are refused with a short note. 30 strings × 4 locales.
Added: edit Word tables and insert page breaks in the page view (W3d). With the caret in a table, the format bar's "Bảng" menu inserts a row above or below, a column left or right, deletes a row or column, merges and splits cells and sets the cell borders; a colour button shades the cells; the same items are in the right-click menu on a table. "Ngắt trang" (button or ⌘Enter) puts a page break at the caret outside tables. Each action is one undo step (⌘Z); tables with tables inside, tracked rows or an odd grid are refused with a short note. 23 strings × 4 locales.
Added: follow the agent while it edits an open file (TASK-877). When an agent writes to the Excel, Word or slide file you have open, a slim bar shows what it is doing and where ("Agent đang sửa · điền 36 ô · CĐKT!B5:D16", "đoạn 3–6", "slide 3"), next to the read-only notice. Turn on Theo dõi on the bar and the view goes to each place before the agent writes there: the grid switches sheet and scrolls the range into view, the Word page scrolls to the paragraphs, the slide view selects the slide. It is on by itself when you open a file the agent is working on, and your own choice is remembered per kind of file. It never moves while you type or select, and waits 5 seconds after you scroll or click. After each write the changed cells, paragraphs or slides light up for a moment (a still outline with reduced motion). The bar's history button lists the agent's last 50 edits of the file with time, what and where; click one to jump there. Nothing in the file changes.
Internal (TASK-877 stage 2):
onAgentFileActivityandinjectAgentFileActivityinservices/api/fileActivity.ts(DEV hookwindow.__ambaAgentActivity.inject), sharedcomponents/office/activity(useAgentFollow,AgentActivityBar, summary text for everyamba_office::activitykey, log merge by run and sequence, follow rules), viewer adaptersuseGridActivity,useWordActivity(body blocks rebuilt from the layout's paragraphs),useSlideActivity; dangling intents dropped on the next entry or when the claim ends; 82 strings × 4 locales; QA fixtureheadings-docxand scenarioagent-follow(real writes throughqa_agent_apply; a dangling intent injected).Internal (TASK-877 stage 1):
amba_office::activity: where an op batch lands (intent_xlsx/docx/pptx, pure, with the batch's own shifts and renames),resolve_docx,applied_xlsx/docx/pptxfrom the gate scopes,whole_file; serdeTarget/TargetSetwith a closed summary key list.Internal (TASK-878): runtime side of "Theo dõi agent". Every agent write of an office file announces webview event
agent-file-activity{runId, projectRelativePath (null without a project), canonicalPath, phase: intent|applied, targets: TargetSet, fileVersion? (applied only, the viewers'<mtime ns>:<size>), seq (per file, monotonic), at}(runtime/doc_ops/activity.rs, hookset_activity_hooklikeset_busy_hook): engine writes (spreadsheet_edit,workbook,document_edit,presentation_edit,document,deck,pptx_write) give exact places fromamba_office::activity(intent from the ops inside the file lock, docx headings resolved in the current bytes; applied from the gate scope) for the run holding the file's claim (claims::active_holder);filesystem_write,office_scriptoutputs and the older writers givewhole_filefrom the runner (runner/file_activity.rs). A failed write announces its intent and no applied. The last 50 entries per file stay in memory for ten minutes after the file's latest entry: async commandagent_file_activity(projectId, path). Debug-only QA commandqa_agent_apply(path, kind, opsJson, projectId?)(claim → engine write → release as a fake run). TS:AgentFileActivityin@/domain,agentFileActivityin@/services/api, mock flagagent-follow.Fixed: opening a big Excel file no longer freezes the app (TASK-875). Opening a 20,000-row workbook stopped the whole window from drawing for about 0.7 s (0.2 s for a 300 × 200 sheet), which felt like lag when you started scrolling right away. The grid now gets only the sheet names when it opens a file (the cells already came as tiles), so the sheet appears about five times sooner on a long sheet and scrolls at once. Find in the grid now searches the whole sheet, as shown on screen (it used to search only the first 5,000 rows).
Internal (TASK-875):
read_project_spreadsheet(fileId, summary?)runs off the app's main thread (#[tauri::command(async)]; a synchronous command ran on it and stopped the WebView's frames while it parsed); withsummary: truean xlsx/xlsm/xltx/xltm or CSV/TSV file returns its sheet names without cells (readers::spreadsheet_summary), whichusePreviewDocumentasks for while the canvas grid is the viewer (spreadsheetSummary; the classic grid, its fallback and other formats still read the whole workbook, lazily when the canvas falls back). New commandspreadsheet_find(projectId, filePath, sheetName, query, locale) -> {cells: [row, col, …], truncated}(runtime/projection_find.rs, shown text in the viewer's locale and=formula, case-insensitive, at most 20,000 matches) behinduseCanvasFind(one search in flight, latest query wins). QA scenariogrid-open-perf(longest frame gap and script task, first frame, first scroll after it; 5 fresh copies per file, medians, budgets, trend).Internal (TASK-874): scroll perf measuring for the canvas grid. Dev builds report scroll events, painted frames (rAF start, paint, end of the frame's microtasks, placeholder tiles, measure misses, canvas resizes, optional raster probe), tile requests and tile answers (IPC, decode, visible/dropped) to
window.__ambaGridPerfwhen a recorder is installed (canvas/gridPerf.ts, every call site behindimport.meta.env.DEV); the host times eachspreadsheet_tilein QA mode (qa::perf,qa_tile_timings, debug-only). QA scenariogrid-scroll-perf(fixturesperf-bctc-xlsx,perf-long-xlsx,perf-wide-xlsx, plusbloated-xlsx) measures open-then-scroll, cold and warm vertical flings, a horizontal fling and a far jump, 5 rounds each with medians and budgets, and appends its numbers toqa-report/grid-scroll-perf/trend.jsonl. No grid behaviour changed: every measured main-thread and raster cost of a scroll start was within one frame.Internal (TASK-876): 68 synchronous Tauri commands that read or write user files, parse documents, walk folders, copy the database, read large ledgers or touch the keychain, plus 5 debug-only QA harness commands that read or parse files, now run off the app's main thread (
#[tauri::command(async)]; same names, arguments and results), so the window keeps drawing while they work (e.g. opening an 8.5 MB Word file: main thread blocked 664 ms before, ~1 ms after).resync_files_in_storageruns one at a time; a chat tab switch whose messages arrive after a later switch's no longer replaces them. Guard testcommands/sync_command_guard.rsfails the gate for a new sync command with file IO, parsing, keychain, network or process calls (allowlist with reasons). Inventory:.agent/PLAN/2026-11-13_sync-command-sweep/README.md. Tests: Rustsync_command_guard(3; allowlists the debug-onlyqa_keep_file/qa_finish), VitestconversationSwitchRace.spec.ts(1).Fixed: big Excel files with a wide frozen pane scroll and resize smoothly (TASK-872). A sheet opens at the zoom it was saved with (the zoom picker above the grid keeps your own choice per file). When the frozen columns or rows are wider than about 60 % of the view, they scroll with the cells so every column can be reached; a [?] note says so and the freeze line stays drawn. Empty formatted cells that show nothing (no value, fill or border) no longer stretch the scroll range out to column XFD. Resizing a column or row in a workbook with millions of such cells takes about 0.3 s instead of half a minute: only the sheet's column and row sizes are rewritten and checked, the other parts of the file are copied as they are, and the open view is updated in place. Resizing again while a write is running no longer shows a "busy" notice: the new width shows at once and is saved with the next write; ⌘Z puts the file back exactly as it was before each write.
Added: "Dọn file" for bloated workbooks (TASK-872). A workbook carrying more than 100,000 empty formatted cells outside its data or more than 10,000 named cell styles shows a "Dọn file" button (and right-click item) with a [?] tip. After a confirm that says exactly what goes, it removes the empty cells formatted like their row or column, the empty cells with a format of their own that show nothing only when you tick them (ticked by default above 100,000; typing into such a cell later takes the row or column format), and the named styles no cell uses. While it runs, the grid is read-only and its steps (scanning, removing, verifying, writing) and the elapsed seconds are shown. It keeps values, formulas, names, conditional formats, data validation and every visible format; the result passes the verification gate and a check that every sheet looks the same. ⌘Z restores the file byte for byte.
Added: sheet tabs you can manage in the spreadsheet (TASK-873, X2d). An Excel workbook opened from the file panel now has a slim Excel-style tab row under the grid: "+" adds a sheet after the current one, the list button shows every sheet (hidden ones marked) to jump to, and many tabs scroll with the wheel or the ‹ › arrows. Double-click a tab to rename it (Excel's name rules are explained as you type), drag a tab to move it, and right-click for insert, duplicate, delete, move left/right, hide, unhide and tab colour. Formulas, names, charts, validation and conditional formats that use a renamed sheet follow the new name; deleting a sheet first says how many formulas will show #REF!. Each change is one ⌘Z. The grid's scrollbar now has its own track above the tabs, so a click meant for a tab no longer hits it.
Internal (TASK-873): commands
spreadsheet_sheet_tabs(projectId, filePath) -> {fileVersion, sheets: [{name, state, tabColor, chart}], activeTab},spreadsheet_sheet_delete_preview(projectId, filePath, sheetName) -> {refErrors}andspreadsheet_sheets(projectId, filePath, ops: [{kind: add|rename|delete|duplicate|move|hide|unhide|tabColor, …}], baseVersion) -> {fileVersion, revisionId, sheets, active}(office/sheet_tabs.rs, one owner write throughowner_write, undo viaspreadsheet_revert_owner_edit); engine opsmove_sheet,set_sheet_hidden(neververyHidden),set_tab_color(xlsx/sheet_tabs.rs:localSheetId,activeTab/firstSheet,tabSelectedand app.xml titles follow) andref_errors_if_deleted; the gate accepts a moved tab order (EditScope::sheets_moved) and the verifier model rewrites conditional-format and validation formulas on a sheet rename or delete. QA scenariox2d-sheets.Fixed: Japanese, Chinese, Korean and Thai text in exported PDFs (TASK-871). PDFs made by AMBA ("Xuất PDF" on Markdown and Word files, Excel and slide exports, and the agent's PDFs) showed every Japanese, Chinese or Korean character as an empty box, although copying still gave the right text. Characters AMBA's own fonts lack now use a font installed on the computer for that script (Hiragino, PingFang, Apple SD Gothic Neo and Thonburi on a Mac; Yu Gothic, Meiryo, Microsoft YaHei, Malgun Gothic and Leelawadee UI on Windows; Noto CJK where installed), embedded in the PDF so it looks the same on any computer. Chinese characters follow the document's language: Japanese shapes next to kana or in a Japanese document, Korean next to Hangul, Chinese in a document marked Chinese. The Word page view shows the same fonts. Fonts whose licence forbids embedding are skipped. When no installed font has a script (for example Arabic, or Japanese on a computer without Japanese fonts), a notice next to the export message names it ("Thiếu phông cho chữ Nhật…") instead of leaving silent boxes.
Internal (TASK-871):
amba_office::textper-script fallback to system faces (FallbackScriptlists, Han variant from kana/Hangul in the paragraph, thenRunStyle::east_asian_langfromw:lang w:eastAsiaorMarkdownOptions::east_asian_lang, then Japanese → Simplified Chinese); lists resolved once and graphemes memoised per library, faces read lazily; system faces with Restricted LicensefsType(or no-subsetting / bitmap-only) skipped (FontLibrary::embeddable).display::pdfembeds CID-keyed CFF faces asCIDFontType0+FontFile3/CIDFontType0C(identity charset, duplicated glyphs for per-text CIDs) and subsets a TTC face by index;collect_missing_scripts+ one warn log per PDF;display::pdf::audit(fonts used and.notdefcodes per page). Commandsexport_project_file_to_pdfandpptx_export_pdfreturn{path, missingScripts},spreadsheet_export_pdfgainsmissingScripts; UIPdfMissingFontsNotice.vuein the preview; 12 strings × 4 locales; QA commandqa_pdf_glyphs, fixturescjk-md,cjk-docx,arabic-md, scenariocjk-pdf. Limits: Arabic and Hebrew have no list (no bidi layout yet), name-keyed CFF and CFF2 faces are still drawn as outlines.Added: clickable links and bookmarks in exported PDFs (TASK-868, M124 F4). PDFs made by AMBA from Word, Markdown, Excel and slides now have a bookmark panel: the headings of a Word or Markdown document (nested by level), one entry per sheet of a workbook, one per slide (its title, or "Slide N"). Links in Word and Markdown documents are clickable: web and e-mail addresses open, and links to a bookmark or a heading (
x) jump to its page. Pictures stored as JPEG (photos in slides, sheets and Word files) now appear in the PDF at their original quality instead of being left out or converted, and the PDF records its title, language, creation date and "AMBA Office" as producer (never an author name or a folder path). Copying or searching text, Vietnamese included, gives the exact text.Fixed: "Xuất PDF" includes edits you have not saved yet (TASK-868). Pressing "Xuất PDF" while a Markdown or text file has unsaved edits in the source view exported the old text from disk. The edits are now saved first, then exported; if saving fails, its usual error shows and nothing is exported. In the Word page view, text typed in the last moment before the export is written first too.
Changed: PDFs the agent makes look like the ones you export yourself (TASK-867, M124 F3b). A PDF the agent writes from a report (
pdf_generate, and the PDF made automatically next to a Markdown report) is now set on A4 pages by the office engine, the same way as "Xuất PDF" on a Markdown file: headings, lists, tables, code, Vietnamese text you can select and copy, pictures from inside the project, and a "Trang N/M" footer. When the agent saves a Word document with a PDF next to it, the PDF now shows the document's own pages as the Word page view lays them out instead of its plain text. Pictures outside the project are never read; the previous PDF writer is used only if the new one fails.Changed: "Xuất PDF" on a Markdown or text file is set like a Word document (TASK-866, M124 F3a). The preview's PDF button no longer opens the print dialog: it writes
desk/<name>.pdfat once and shows the same notice as the Word export. Headings, lists (nested, task lists), tables with a repeated header row, code blocks, quotes, links and local pictures are laid out on A4 pages by the office engine, with real selectable text (Vietnamese included) and a page footer "Trang N/M" ("Page N of M" in English). Remote pictures are not downloaded and show their description instead. A Word or Excel file that cannot be laid out falls back to its text set the same way.Added: a format bar in the Word page view (TASK-862, W3). A Word file opened from the file panel now has the same format bar as the spreadsheet above its pages: paragraph style (Normal, Title, Heading 1–3 and the document's own styles), font and size, bold, italic, underline, strikethrough, font colour and highlight colour, alignment (left, center, right, justify), line spacing and space before/after a paragraph, bullets and numbering, and indent steps. The bar shows the format where the caret is or over the selection (blank where the selection is mixed). A selection is formatted in one go, inside a paragraph or across several; with only a caret, bold, italic and the other text formats apply to the word around it, as in Word, and paragraph formats to the caret's paragraph. ⌘B, ⌘I and ⌘U work while typing. Each action is saved to the file at once and is one ⌘Z step. Paragraphs the typing cannot change (tracked changes, fields, content controls …) are refused with the same message.
Internal (TASK-862): engine
amba_office::docx::owner_format(format_span: runs split at the selection's edges keeping their other properties, paragraph marks inside the selection,w:pStyle,w:numPrtoggled against the document's own lists (noListrefusal otherwise), indent steps of 720 twips, highlight asw:highlightfor Word's 16 colours elsew:shd;read_format: the resolved readout throughdocx_layout's style sheet, mixed valuesnull). Hostoffice/docx_format.rs:docx_format(projectId, filePath, range, action, baseVersion) -> {fileVersion, revisionId}over the paragraphowner_writeflow (errorsconflict|busy|refused|invalid|failed),docx_run_format(projectId, filePath, range); undo throughdocx_revert_owner_edit. UI: Word adapterword/wordFormatAdapter.ts,word/useWordFormat.ts(runs in the typing queue viauseWordTyping.exclusive), editor stepformat, sharedofficeKey(⌘B/I/U) used by the Excel adapter too,word/wordInput.tsmoved out of the viewer; 17 strings × 4 locales.Internal (TASK-861 follow-up): the
workbooktool'sset_formatstyle object listsstrike,border_edges,cell_style,font_color"auto" andfill"none" (border_edgesas{side: style}, e.g.{"bottom": "thin", "top": "none"}; the engine also accepts that short form); wire snapshots regenerated; tool-definition ceilings +≈ 235 B (chief-of-staff 26,976 B).Added: Excel → PDF with page setup and live preview (TASK-864, M124 F1b). The "PDF" button above an Excel sheet, its right-click menu and the preview's PDF button open a page setup dialog: all sheets, the current sheet or chosen sheets; portrait or landscape; A4, A3 or Letter; actual size 100 %, fit all columns on one page, fit the sheet on one page or a custom scale; print area and repeated title rows from the selection (or cleared); gridlines and row/column headings; normal, narrow or wide margins. The preview shows the page count and each page as it will print, with previous/next, and follows every change. Export writes
desk/<name>.pdfand shows the same notice as the Word export. "Save settings to file" (off by default) also writes the page setup into the workbook as one undoable edit (⌘Z); otherwise the file is never touched. Every other Excel PDF export (dossier, classic grid) now prints by the page setup too instead of a plain table.Internal (TASK-863, M124 F1a): Excel → PDF on AMBA's own engine. amba-office
xlsx::printpaginates each sheet by its page setup (xlsx::view::PageSetupread frompageSetUpPr/printOptions/pageMargins/pageSetup/headerFooter/rowBreaks/colBreaks;ViewWorkbook::defined_namesfor_xlnm.Print_Area/_xlnm.Print_Titles): paper, orientation, scale or fit to N×M pages (never enlarges; manual breaks kept on an automatic axis), margins, centring, page order, repeated title rows/columns, used range without a print area, hidden rows/columns skipped; paints cells into the shared display list (fills, optional gridlines and headings, number-formatted text with alignment, indent, wrap, rotation,*fills,#for numbers too wide, overflow into empty neighbours, centre across selection, merges, heavier-edge border precedence, charts) and header/footer (&L/&C/&R,&P,&N,&D,&T,&F,&A, size/bold/italic). APIsheet_plan,sheet_pages,workbook_pdf(bytes, All|Active|Named, PrintOptions)/workbook_pdf_with;PrintOptionsoverrides for a preview. Hostruntime/xlsx_pdf.rsxlsx_to_pdfand commandspreadsheet_export_pdf(projectId, filePath, sheets?, overrides?, locale?, output?) -> {path | bytes, size}(writesdesk/<name>.pdflike the Word export, or returns base64 for a preview); TSservices/api/spreadsheetPdf.ts. No button yet (TASK-864). Limits: pictures, conditional formats, rich text runs in a cell, chartsheets.Added: Export PDF from the slide view (TASK-865, M124 F2). A PowerPoint file open as slides now has an "Export PDF" button in its toolbar and in the right-click menu. The PDF is made by AMBA from the same slides you see: one page per slide at the slide's own size (16:9 or 4:3), with the same fonts and layout, real text you can select and copy (Vietnamese included), charts as sharp vector drawings, and pictures and video poster frames. Hidden slides are left out. The small arrow next to the button offers "Include speaker notes": each slide on an A4 page with its notes below. The PDF is saved in the project's desk folder (
<name>.pdf, or<name>-notes.pdfwith notes) and the same notice as the Word export shows where.Internal (TASK-865): engine
amba_office::pptx_layout::pdf(deck_pdf(bytes, fonts, &DeckPdfOptions),slides_pdf(&SlideDeck, …)for a drawn deck,chosen_slides; optionsslides(1-based list),include_hidden,notes_pages(A4, slide embedded with its fonts/images remapped, notes in Calibri→Carlito 12 pt, continuation pages, slide number),pdf: PdfOptions(title, lang, creator),locale;DeckPdfError);display::pdfuntouched. Hostruntime/pptx_pdf.rs:pptx_to_pdfreusesPptxViewCache(same path/version/locale as the viewer), commandpptx_export_pdf(projectId, filePath, opts?, locale?) -> "desk/<stem>[-notes].pdf"with the viewer's confinement and size cap, atomic write, files resync. UISlideExportPdf.vue(button, options menu, notes choice in localStorage),useSlidePlacesextraItems,DeliverablePreviewhandleSlidesPdf, APIexportSlidesPdf; 4 strings × 4 locales. Tests: engine 5 (+1 ignored bench: 72 slides in ~0.1 s debug), host 1, VitestSlideExportPdf.spec.ts(3),SlidePdfReachability.spec.ts(2).Fixed: a built-in cell style shows as that style after you apply it (TASK-870). Applying Good, Bad, Neutral, Total, Title or Heading 1/2 from the format bar (or by the agent) to a workbook that did not have that style yet only copied its look, so the bar's cell style readout stayed empty and Excel did not list the cell under that style. Now the style is added to the workbook on first use, as Excel does (
cellStyleXfsentry plus<cellStyle name builtinId>with Excel's ids: Normal 0, Title 15, Heading 1 16, Heading 2 17, Total 25, Good 26, Bad 27, Neutral 28), the cells are linked to it throughxfId, and later uses reuse it; a workbook's own definition is kept. The agent'sset_formatcell_styleaccepts these built-in names on any workbook; unknown custom names are still refused.Internal (TASK-869): automated QA against the real app.
node scripts/qa/run.mjs --scenario <name>runs a Control Room checklist in a debug build (real Rust runtime, WKWebView and Office engine) through an in-page runner (tests/qa, injected only by the Vite dev server withAMBA_QA=1), and writesqa-report/<scenario>/<timestamp>/report.jsonwith ✓/✗, notes and a webview snapshot per step;scripts/qa/summary.mjsprints one line per step. The QA instance is isolated (scratchHOME, in-memory keychain, own Vite port, synthetic fixtures) and invisible (activation policy Prohibited, no tray, transparent click-through window behind everything, watchdog that quits on any breach). Host sidesrc-tauri/src/qa(qa_config,qa_fixture,qa_snapshot,qa_hold_file,qa_office_check,qa_keep_file,qa_guard,qa_log,qa_finish) exists only withcfg(debug_assertions);tests/qa/gating.spec.ts,scripts/qa/check-release-gating.mjsandcheck-dist-no-mockkeep it out of releases. First scenarios:smoke,task-861(Excel format bar, 6/6).Changed: PowerPoint files open as slides on canvas by default (d-slide-canvas-default). .pptx files in a project open in the slide view for everyone, without turning on the Experimental Lab: slides drawn by AMBA, thumbnails, speaker notes, find, places to point the agent at, and adding, duplicating, deleting and reordering slides. Its switch moved from the Experimental Lab to Settings → Advanced → File viewer, next to the Word page view; turning it off keeps the previous preview. Old .ppt files, and decks that cannot be drawn, still open in the previous preview.
Added: tracked changes in the Word page view (TASK-859). A Word file with tracked changes now shows them on the page as Word's "All markup" does: inserted text underlined and deleted text struck through in each author's colour, with a change bar beside every changed line (also in tables, lists, headers and footers). A switch in the toolbar shows the text as it reads after accepting everything ("Bản cuối") and is remembered. The review pane lists every change with its author, date and text; a click goes to it on the page, ↑/↓ step through them, and Accept / Reject work on the current change, the changes in the selection, from the right-click menu on a change, or on all at once. Each action is saved to the file at once and ⌘Z undoes it; the file keeps opening in Word with the right text. Typing inside a paragraph with tracked changes says to accept or reject them first.
Internal (TASK-859):
docx_layoutLayoutOptions::markup,PagedDocument::revisions(docx_layout/revisions.rs; ids, kinds, author, date, paragraph and character places in the view's text, author colours; deleted paragraphs and rows take no room in the final view but keep their indexes), change bars fromLineBox::bar→Placed::bars. Enginedocx::review::review_changes(ins/del/moves, rPr/pPr/tbl/tr/tc/sectPr changes, paragraph-mark joins, rows; byw:idor all; empty move ranges dropped). Host:docx_page_layout/docx_pagetakemarkup(each view cached),office/docx_review.rsdocx_review_changes+docx_revert_owner_edit(revert::revert_owner_editwith a WordOwnerFile). UI:useWordReview.ts,reviewItems.ts,WordReviewPane.vue,pinchZoom.ts(moved out of the viewer); the editor's check refuses a changed paragraph without asking Rust; 25 strings × 4 locales. Tests: Rust engine 13 + layout 4 + host 6; VitestreviewItems.spec.ts4,WordReview.spec.ts9, reachability +1.Added: a format bar above the spreadsheet (TASK-861, X2c). An Excel workbook opened from the file panel now has Excel's formatting tools over the formula bar: font and size, bold, italic, underline, strikethrough, font and fill colour (palette plus recent colours), horizontal and vertical alignment, wrap text, merge & center / unmerge, borders (all, outside, thick outside, none, top, bottom, left, right), number formats (General, Number, Accounting the way Vietnamese financial statements write it:
1.234.567and(1.234.567)for negatives,-for zero, with 0 or 2 decimals, Percent, Date dd/mm/yyyy, Text), more/fewer decimals, thousands separator, cell styles (Normal, Title, Heading 1/2, Total, Good, Bad, Neutral and the workbook's own styles), format painter and clear formats. The bar shows the selected cell's format; each action formats the whole selection, is written to the file at once and is one ⌘Z step. ⌘B, ⌘I, ⌘U, ⌘⇧$ (accounting), ⌘⇧% (percent), ⌘⇧! (number) and ⌘⇧# (date) work on the grid. At narrow widths the less used tools move into a "…" menu.Internal (TASK-861): commands
spreadsheet_format_cells(projectId, filePath, sheetName, areas, action, baseVersion) -> {fileVersion, revisionId, cleared}(office/format_cells.rs; actionsstyle | border | number | decimals | thousands | cellStyle | merge | unmerge | clear | copyFormat, ≤ 64 areas and 200,000 cells, owner_write flow, errorsconflict|busy|invalid|failed, undo viaspreadsheet_revert_owner_edit) andspreadsheet_cell_format(projectId, filePath, sheetName, row, col, locale)(the engine's resolved format, merge and cell style list). Engine (amba_office::xlsx):StyleSpec/StyleChangegainstrike,border_edges(per-side keep/draw/remove),cell_style(linksxfIdto the workbook's named style),font_color: "auto"andfill: "none"; newxlsx::format(border presets, number presets,step_decimals,with_thousands, built-in cell styles,cell_formatreadout);StyleTablegainsstyle_idsandnamed. Frontend: the shared toolbarcomponents/office/OfficeFormatBar.vue(+FormatBarControl,FormatBarPalette,formatBar.ts) fed by the Excel adapterspreadsheet/canvas/formatAdapter.tsanduseCanvasFormat.ts.Changed: deleting in a Word document never waits (TASK-858, W3c). In the Word page view, Delete at the end of a paragraph now joins the next one at once, like Backspace at its start, also when the next paragraph is on another page or in the next column; Backspace right after an Enter you just pressed takes it back at once. Backspace right after a page or column break removes the break (Delete right before it too); a paragraph that held only a page break goes with it and the heading below moves up, keeping its style. A selection across several paragraphs can now be deleted, cut (⌘X) or typed over: it is removed in one step that ⌘Z puts back exactly. Joins across a table cell's edge or a section break are still refused, and a refused join keeps what you typed.
Internal (TASK-858): engine
docx::para_delete(delete_breakwith optionaldropof a break-only paragraph,delete_range/check_rangeacross sibling paragraphs with whole tables between, bookmarks and comment ranges kept at the junction, refusals aspara_edit;restore_paragraphsputs paragraphs back from a revision snapshot). Hostoffice/para_delete.rs:docx_delete_break,docx_delete_range,docx_check_range,docx_restore_paragraphs(undo reads the edit's own owner revision.bak, pre-hash checked).docx_page_layoutgainsbreaks([paragraph, offset]) andsectionEnds. Client:useWordTypingsplit intotypingSession/typingJoin/typingDraw; joins, break removals and range deletions run in the write chain beside the input queue; taken-in paragraphs on another page or column are hidden by moving the band below them (typingPatch.hideSteps).Added: add, duplicate, delete and reorder slides from the thumbnail strip (TASK-860, slide view on canvas, Experimental Lab). The strip's "+" adds a slide after the selected one with the same layout (after a title slide, "Title and Content"); ⌘D duplicates, Delete or Backspace removes, ⌥↑/⌥↓ moves, dragging a thumbnail reorders it with a drop line, and ⇧/⌘-click selects several slides. A right-click on a thumbnail offers the same actions next to "Ask AMBA about this". Each action is one step of ⌘Z / ⌘⇧Z; the last slide of a deck is never deleted; while the agent writes the deck the strip shows "Chỉ xem". The file is written with the same checks as the spreadsheet and Word edits, and the agent sees the change in the file's history.
Internal (TASK-860): command
pptx_edit_slides(projectId, filePath, ops: [{kind: add, after} | {kind: duplicate, slide} | {kind: delete, slide} | {kind: move, slide, to}], baseVersion) -> {fileVersion, revisionId, slideCount, selected}(office/slide_edit.rs, engine slide ops, gate, owner revisionpresentation.edit, atomic write,PptxViewCache::invalidate) andpptx_revert_owner_edit(the TASK-805 snapshot revert generalised:owner_write::OwnerFileWORKBOOK/DECK,revert::revert_owner_edit); errorsconflict|busy|invalid|failed. EngineDeck::keep_empty_placeholders. UISlideThumbStrip.vue,useSlideStrip.ts,useSlideEdits.ts,slideStrip.ts; APIservices/api/slideEdit.ts; mockpptx_edit_slides/pptx_revert_owner_edit(flagslide-edit-busy). 9 strings × 4. Tests: Rustoffice::slide_edit(7); VitestSlideStripEdits.spec.ts(11),SlideEditReachability.spec.ts(1).Fixed: scrolling up in a long project chat shows earlier turns again (TASK-857, Founder report). In a long chat, scrolling up showed the earlier turns once and then just stopped at the top, and the ↑ button of the turn header added only one turn per press. Now earlier turns keep coming 20 at a time as you near the top, also when you are already at the very top, and ↑ shows a whole batch of earlier turns before it goes to the previous one. A quiet "Xem các lượt trước" link at the top of the shown turns adds them by hand, and goes away once the whole chat is shown.
Internal (TASK-857): root cause in
chat/useTurnWindow.tsshowFrom(TASK-855):pendinghelddone.finally(...)but was cleared onlyif (pending === done), never true, so after the first revealcheck()bailed onpendingforever;ensureRendered(rail, ↑) still worked because it awaitspendinginstead of bailing, and revealed exactly down to its target. Fix:pendingis the promise cleared in its ownfinally. The reveal no longer hangs onscrollevents:ChatEarlierTurns.vue([data-turn-sentinel]) is observed by anIntersectionObserverwith the scroller as root androotMargin600 px top, re-observed after each reveal so a sentinel still in reach reports again; the scroll check stays as a backup.revealStep(the turn nav'sreveal) renders at leastTURN_WINDOW_STEPturns, or down to the target;revealMorebacks the link. Position still kept by distance from the bottom; nocontent-visibility. 1 string × 4 locales. Specs:ProjectChatWindow.spec.ts(+5: a second scroll reveal, the sentinel without scroll events, re-observe, the link, ↑ revealing a step; 4 fail before the fix).Fixed: long project chats stay smooth while the agent works (TASK-855, Founder report on a 62-message BCTC chat). Before, every update of a running turn (streamed text, a step, the clock, the run starting or ending, the thread re-read when it ends) redrew every earlier turn of the chat at once, 230–350 ms each time, and it got worse as the chat grew. Now only the turn that is working redraws; earlier turns stay as they are. A long chat also opens with its last 20 turns and shows earlier ones as you scroll up, keeping your place; the turn rail and "Xem agent làm việc" still go to any turn. The folded "Đã xử lý" card of an earlier turn builds its derived step plan only when you open it.
Internal (TASK-855):
chat/chatTurnEnv.tsprovides the chat-wide values (isRunning, live steps and plan, the 30 s clock, copy and error states) toChatAgentTurn,ChatUserTurn,ChatTurnTimeandChatRunBusyby inject; their props stay as optional overrides.agentRun/stableMessages.ts(reuseStoredLines, used bysetMessages) keeps unchanged message objects on a reload and marks stored metadata raw.agentRun/frameQueue.tsbatches liverun:events with stream and reasoning deltas in one ordered per-frame queue (first event of a quiet moment at once, 100 ms fallback when frames pause).chat/useTurnWindow.tsrenders the last 20 turns and 20 more near the top (scroll kept by the distance from the bottom), remembered per conversation;useTurnNavand focused/board turns render down to their target first.ChatErrorCardsandChatMilestoneSteppermount only when they have something to show. Specs:ProjectChatRenders.spec.ts,ProjectChatWindow.spec.ts,useAgentRunBatching.spec.ts.Fixed: the agent starts answering at once in a long conversation (TASK-856, Founder log). Before each turn of a long chat, AMBA used to wait 30–60 s while it wrote the summary of earlier turns ("Thu gọn phiên"), and when that took too long the work was thrown away and the next turn waited again. The summary is now written in the background: the turn waits a few seconds at most and goes on with the short summary it used before, and the next turn uses the new one. A long chat is summarized in parts, each saved as it is done, so nothing finished is lost; if the summary cannot be written it is retried after a minute or more instead of on every turn. An edit you make to the summary while it is being written is kept.
Internal (TASK-856):
session_memo::fold::fold_chunks(chunks ≤CHUNK_TOKENS8,000, memo saved per chunk, stops when the stored memo changed),fold::scaled(wait = base + 2 ms/token, ≤ 3 × base),session_memo::background(startspawns the fold holding the conversationGuard, waitsTURN_WAIT3 s,CALL_TIMEOUT60 s; back-off 1 → 15 min after a fold that saved nothing);runner/session_compact.rscompact_with;context_buildsession_memo/fallbackgainsbackground: trueorretryInS. No DB change. Tests:session_memo/tests_background.rs(7),runner/session_compact_tests.rs(1).Fixed: a message sent on the computer shows the agent working at once (TASK-854, Founder). In a long chat, the agent first tidies up the earlier conversation before it starts on a new message, which can take up to a minute; until then the chat showed only your message, as if nothing were happening, and only switching to another project and back showed the turn. The working card now appears as soon as you send, also when you answer the agent's question, and it fills in as the agent works.
Internal (TASK-854): root cause in
useAgentRun: the desk's own run opened its live turn only on the first work event (model_request,tool_call, …, TASK-717), while session compaction (TASK-748) emits onlyuser_input/context_buildfor 30–60 s before the first model request; a run the chat attaches to (attachToActiveRun, phone runs, a remount) opens its card at once.openOwnLiveTurnopens the card on thestart_runreply and on the own run'srun:started(whichever comes first, never afterrun:finished), its clock from the reportedstartedAt. Rust unchanged:run:startedis already emitted bycreate_run_record, beforebuild_contextand its compaction. Tests:chat/deskRunLive.spec.ts(5: run:started after the reply with compaction, run:started before the reply, the answer to a card as a new run, a failure before any work, a run ended before the reply);useAgentRun.spec.ts,useAgentRunLiveTurn.spec.ts,ChatInterrupted.spec.tsupdated to the new contract.Fixed: the phone app no longer gets stuck on old data or an old version (TASK-852, Founder). Pull a list down at its top (home, a project's chats, the folders, a chat) to read it again from the computer, or tap the new refresh button at the top left of home. When a newer version of the phone app is out, a small "Có bản mới · Tải lại" pill shows under the top bar; one tap loads it, even on the Home Screen app, which has no reload button. The phone also reads the computer's state again whenever you come back to the app and when a read failed, so after the computer is updated the 📎 button and the computer's folder view show up without closing the app. Settings has a "Xóa bộ nhớ đệm" button that clears what the phone keeps and reloads the app, keeping the pairing, and shows the app's version.
Internal (TASK-852): phone only, protocol v1 unchanged.
RemoteConnection: a failedsnapshotis retried twice (1.5 s, 3 s), only the newest request applies,refreshSnapshot()returns a promise,reconnectNow()with the socket up reads the snapshot again.deskMarks.ts:markNoUpload/markNoTreehold for one snapshot's desk, not oneapp_version;deskLacksTreetrustsops.pullRefresh.ts(pure gesture),usePullRefresh.ts,PullIndicator.vue,refresh.ts(per-layer hub,useRefresher),update.ts(__MOBILE_BUILD__+/build.json,checkForUpdate,applyUpdate→registration.update()then/?fresh=…,clearAppCache,vite:preloadErrorreload).sw.js:/?fresh=…is network-only unless offline; the replaced page's start assets stay one build. 7 strings × 4 locales. Spec §7 and §12 "As built (TASK-852)". Tests:pullRefresh.spec.ts(8),update.spec.ts(10),refresh.spec.ts(4),components/pullView.spec.ts(6),connection.spec.ts(+1),upload.spec.ts(+1),chatAttach.spec.ts(+1),sw.spec.ts(+1, 1 updated).Fixed: the phone no longer shows a green dot while the computer does not answer (TASK-853, Founder). After the computer restarted or reconnected, a chat on the phone could stay on old messages and every action said "Máy tính không trả lời" until the app was closed. The phone and the computer now notice a broken link on their own and connect again ("Đang kết nối lại…" in the top bar meanwhile); what was being sent or read goes through afterwards, without sending a message twice. A chat that could not be read from the computer says it is showing the copy saved on the phone, and a chat now has its own refresh button next to the files icon.
Internal (TASK-853): protocol v1, additive. Root cause: with two hellos in flight (the 10 s repeat, or
readyanddesk onlineclose together) the phone keyed its session from the first reply and the second hello's nonce; every frame it sealed was rejected (auth, thenreplay: its counter was ahead), the desk ended the session on the third strike and sent{t:"hello", reset:true}, which the phone ignored (it only read hello replies while a hello was in flight). Desk: the hello reply echoesnonce_p; strikes count in a row;resetfor a frame of an unknown session at most every 2 s per phone (conn.rsask_hello,RESET_EVERY). Phone (RemoteConnection):resetstarts a hello unless one is in flight; a reply naming another hello is ignored, an old desk's late second reply re-keys; two request timeouts in a row, asnapshottimeout, or a refresh after a timeout (or a snapshot silent for 4 s,refresh()) start a hello; reads andclient_idrequests in flight are parked and sent again with new ids and counters; a frame sealed for a session that ended while sealing is dropped;state.resyncingdrives "Đang kết nối lại…".refreshDesk()→conn.refresh(). Chat: header refresh button (m-chat-refresh), stale note whenmessages.listfailed. 3 strings × 4 locales. Spec §5, §6 "Session healing", §12, §13; vectorssession_heal(generatorscripts/remote-vectors.mjs). Tests:conn/tests_session.rs(4),session.rs(+1),connection.spec.ts(+8),pullView.spec.ts(+3).Changed: AMBA can lay a Word document out on the pages you ask for (TASK-850). Asked to fit a contract on 2 A4 pages like the original, the agent used to say its Word tool could not change margins, font size or page breaks. It now sets the paper size, orientation and margins, changes the font, size, bold, alignment, spacing and line spacing of a section, a range of paragraphs or the whole document, and starts a part on a new page, all in place in the same file. It checks the page count before and after and keeps every clause as written.
Internal (TASK-850): the
documenttool v2 offers the TASK-849 engine ops asset_page {size?, orientation?, margins_mm?, section?},format {heading | blocks | body, occurrence?, size_pt?, font?, bold?, italic?, align?, space_before_pt?, space_after_pt?, line?, keep_next?}(split intoformat_paragraphsand/orformat_runs; aheadingcovers its whole section asreplace_sectionfinds it, hand-typed "Điều 3." headings included;lineis a multiple) andpage_break {heading | before_block, occurrence?}(→insert_page_break). The engine names, itstargetobject and its other fields (underline,color,indent_mm,keep_lines,page_break_before, an exactline, a custom size in mm) are accepted, not offered. Aset_pageresult carriespage(size, orientation, margins and text area in mm). The description, the business-writer and chief-of-staff prompts and the document-analysis skill give the fit-to-N-pages recipe (readpart "p1" fortotal_pages, then margins,size_pt, spacing, read again). Tool definitions:document3,198 → 4,413 B (+1,215 B on every profile offering it; chief-of-staff 26,741 B, the v2 target raised from 25 to 27 KB). Tests: 6 new intools/v2/document/tests.rs(normalization, the paragraph/run split over a hand-typed section, set_page and page_break planning, contract errors, a synthetic 3+-page contract fitted to ≤ 2 pages through the tool and checked withread), lowering snapshots regenerated.Added: attach photos and files to a chat from the phone (TASK-851, Founder). In a phone chat, the new 📎 button next to the message box offers Thư viện ảnh, Chụp ảnh and File. Each file shows as a chip above the box with its progress and a ✕; the message goes once every file is on the computer (files alone can be sent too). The computer saves them in the project's Sources → Bạn tải lên, exactly as when you drop files on the chat there (same names, no duplicates, a name already taken gets " (2)"), and the agent gets them like files attached on the computer. Photos are made smaller before sending (long side 2560 px), and iPhone HEIC photos become JPEG. A dropped connection resumes the upload. In the chat, a message's files show as chips you can tap to open, also for files dropped on the chat on the computer. The 📎 button appears only once the computer runs this AMBA version; with AMBA 0.6.8 on the computer it stays hidden.
Internal (TASK-851): additive remote ops
file.put.begin,file.put.chunk,file.put.commit,file.put.abort(runtime/remote/upload.rs: 160 KiB chunks at fixed offsets, idempotent per chunk and per commit, size and sha256 checked, names refused when hidden, lock, engine or with a path; staged under.amba/staging/phone-uploads/, 30 min idle expiry, at most 4 open per phone, kept across relay reconnects inShared; placed withintake::import_uploads+resync_files_in_storage);chat.sendattachments:[{path}](≤ 10, confined; prompt = text +@pathtags asinsertFileTags, plus explicit mentions);messages.listuser messages gainattachmentsfrom their tags (wire::tagged_files);snapshot.desk.ops; limitsfile.put.chunk600/min,begin/commit30/min. Phone:upload.ts,attachments.ts,AttachSheet.vue,AttachChips.vue,MsgFiles.vue,PHONE_MDIicons; 10 strings × 4 locales. Spec §9.1, §9.3, §11.1, §12 "As built (TASK-851)", vectorsupload; privacy (4 locales) names attached files. Tests: Rusttests_upload.rs(11),limits.rs(+1); Vitestupload.spec.ts(17),chatAttach.spec.ts(5).Internal (TASK-849): the Word edit engine gains layout ops for fitting a document to pages:
set_page(page size A4/A5/Letter/Legal or mm, orientation, margins merged per key; the result reports the page and margins in mm),format_paragraphsandformat_runson a block, a block range, a heading's section or the whole body (table cells included, field codes and section breaks untouched, tracked asw:pPrChange/w:rPrChange/w:sectPrChange), andinsert_page_break. The gate accepts a changed page size and margins only for the sectionsset_pagedeclared. Not yet exposed to the agent'sdocument_edittool (wired in a follow-up). Tests:tests_layout_ops.rs(13), including a 3-page synthetic contract laid out on 2 pages.Changed: the phone shows the project's folders, opens chats at once and remembers what it showed (TASK-848, Founder review of TASK-845/847). The files button in a chat and the File tab now always show the project's folders the way the computer's file panel does (Sources with dated folders newest first, Bàn làm việc with Bản cuối and File mẫu first, folders first in name order), also when the computer still runs AMBA 0.6.8: the phone then reads the file list and builds the folders itself, so year/month/day folders show as folders instead of one long list. The files panel in a chat is just the project's folders (no more "Trong cuộc trò chuyện này" or a folded "Tất cả file"); search still lists matching files. Opening a chat shows its last messages at once, even before the computer answers, and the newest ones first; home, a project's chats and the folders also show what the phone saw last time and then update. What the phone keeps is encrypted on the phone and erased when you unpair. Opening the app again no longer downloads the app itself again.
Internal (TASK-848): phone only, protocol v1 unchanged.
treeBuild.ts(pure port oftree.rsordering: sections, pinned folders, natural accent-insensitive order, dated folders, hidden names, default expansion) andtreeListing.ts(allfiles.listpages, 200 each, at most 40,rate_limitedretried) feedFileTree.vuewhenfiles.treeisunknown_op(remembered per desk version,fileTree.ts); the flat list is search-only.ChatFilesPanel.vueholds only the tree and loads on first opening (defineAsyncComponent); the phone no longer callsconversation.files(the desk op stays);panel_chat_files,panel_chat_none,panel_all_files,panel_created,panel_modifiedremoved.ChatScreenrenders the newest 12 messages first and the rest after 420 ms;ScreenStackends a slide that never ticks after 590 ms.cache.ts: IndexedDBamba-mobile-cache, AES-GCM (non-extractable key, per-record IV, key-bound additional data), LRU per kind and 16 MB, versioned, tied to the pairing, cleared on unpair; home, conversation lists, the last 50 messages of 20 chats, trees and listings.sw.jsamba-shell-v2: precaches the page's start assets, navigation falls back to the cache after 3 s, prunes assets missing fromasset-manifest.json(new build plugin);_headersmarks/assets/*immutable. Tests:treeBuild.spec.ts(11),cache.spec.ts(9),sw.spec.ts(3),chatPanel.spec.ts(4, rewritten),filesView.spec.ts(1 rewritten),chatView.spec.ts(+1).Changed: the phone app is a simpler version of the desktop (TASK-847, Founder). A project's File tab now shows the files the way the computer's file panel does: Sources (each source by its name and icon, then "Bạn tải lên" and "Lưu trữ", dated folders newest first) and Bàn làm việc (Bản cuối and File mẫu first, Nháp last), folders first in name order with the same icons; tap a folder to open it in place, and Back from a file keeps the open folders and the scroll. Searching still lists matching files newest first. In a chat, the new files button at the top right slides in a files panel: the files this conversation made or changed, and all the project's files; tap one to open it and Back returns to the chat with the panel still open; close it by tapping outside, swiping it right or ✕. For Word, Excel, PowerPoint and other documents the big button is now "Xem nhanh" (the iPhone's own preview, with its share button for Numbers or Office), and "Mở bằng ứng dụng khác" is a small link under it. The phone's chat list no longer shows conversations the computer does not list (the sessions of process agents, also of deleted processes, and Telegram threads of processes) and names each chat like the computer's agent tabs.
Internal (TASK-847): additive remote ops
files.tree(runtime/remote/tree.rs) andconversation.files(chat_files.rs);conversations.listfilters throughdispatch::chat_conversations(project_agents::agent_conversations, nowpub(crate), minusprocess_threads_of) and titles byproject_agent_configname;files.tree120/min. Protocol v1; an older desk degrades to the flat list and the result cards' files. Phone:fileTree.ts,fileIcons.ts(MDI paths from the offline bundle),chatPanel.ts,components/FileTree.vue,FileIcon.vue,ChatFilesPanel.vue;KIND_ICONemoji andfile_open_with_shortremoved. Specmobile-remote.md§9.1, §11.1, §12 "As built (TASK-847)". Tests: Rusttests_tree.rs(5); VitestfilesView.spec.ts(+5, 4 updated),chatPanel.spec.ts(4),files.spec.ts(+4),chatSync.spec.ts(1 updated).Added: scatter, bubble and radar charts are drawn, on slides and in the spreadsheet grid (TASK-825). These charts no longer show the "Chart: …" box (or the saved picture): scatter charts draw their points on two number axes as markers only, straight lines with markers or smooth lines, with Office's marker shapes and the file's colours; bubble charts draw semi-transparent circles sized by area (or width) and the file's bubble scale, hiding negative sizes unless the chart shows them; radar charts draw one spoke per category from the top, clockwise, with ring gridlines and value labels on the first spoke, as lines, lines with markers or filled shapes. Titles, legends, data labels, theme colours and number formats work as for column and line charts. Stock, surface, pie-of-pie and the newer Excel chart types still show the box; trendlines, error bars and log scales are not drawn yet. Internal:
amba_office::chartKind::Scatter/Bubble/Radar,Series::x_values/sizes, newxy.rsandradar.rs; testschart/tests/xy.rs,radar.rs, samples, slide and grid tests.Changed: the phone app feels like a native app (TASK-845, Founder). Opening a screen slides it in from the right over the one before, which moves a little left and dims; Back slides it away again. From the left edge you can drag a screen back with your finger and let go to go back, or drag it back to stay (on the Home Screen app; in a Safari tab Safari's own swipe works as before). With "Reduce motion" on, screens change without moving. The top bar stays at the top, see-through, with the screen title and the computer's state as a dot (words only when it is connecting or off). Lists are grouped cards, the project's Trò chuyện / Quy trình / File tabs are a native-looking switch, and the status bar follows light and dark mode. Home lists the projects in the same order as the computer's sidebar, and no longer has the "n việc chờ bạn" row; projects carry no waiting count and a project lists no waiting items (Founder: too busy). Questions and approvals show in their chat, and a notification still opens the full list. A new conversation is the round "+" button at the bottom right of a project's chats.
Internal (TASK-845): phone only, protocol v1 unchanged (the snapshot's
projectsorder is the desk'slist_projectsorder, which the phone now keeps).nav.tsgainsmotion,layers(top two entries, keyed per entry),useEntry,back({ animate });swipeBack.tsis the pure edge-swipe state;components/ScreenStack.vueandScreenLayer.vuedraw the layers (CSS transforms and WAAPI, no dependency);mobile.csslayers, pressed states, grouped lists, segmented control,.phone-fab;theme.tssetscolor-schemeandtheme-color;demo.ts(dev only,/?demo). Tests:nav.spec.ts(9),shellView.spec.ts(+4),chatView.spec.ts(layer layout).
0.6.8 — 2026-11-10
Fixed: Backspace that joins two Word paragraphs, or takes a line off a table cell, no longer stalls the page (TASK-839 follow-up, Founder retest). Backspace at the start of a paragraph now joins it with the one above at once, like Enter splits: the caret sits at the join, the next keys go there and the text below moves up while the file is joined in the background (before, the keys waited for a save, a full layout, the join and another layout, and the page showed the two paragraphs apart meanwhile). If the file refuses the join, the caret goes back to the start of the paragraph and nothing typed after it is written. A table row whose cell loses a line now shrinks at once instead of when the pages are laid out again. Joins across a page, a text column or a table cell's edge, or right after an Enter not laid out yet, still wait for the file. Internal:
useWordTypingpending joins (PendingJoin,joinAtOnce/writeJoin),layoutPatchabsorband row shrink;WordPagesReflow.spec.ts,typingPatch.spec.ts.Changed: the phone app opens documents with the phone's own apps (TASK-843, Founder decision). Only Markdown still shows inside the app, and a PDF shows in the phone's own PDF viewer inside the app (iPhone and iPad; on Android it opens in the phone's PDF app). Word, Excel, CSV, PowerPoint, images, text and other files show their name, size and date with one big "Mở bằng ứng dụng khác" button that opens the phone's share sheet ("Open in…"), or downloads the file. The phone's table viewer for spreadsheets is gone.
Internal (TASK-843): phone only, protocol v1 unchanged.
openerFor(src/mobile/files.ts) returnsmarkdown(≤ 1 MB),pdf(≤ 25 MB,<iframe>on an object URL wherecanShowPdf:navigator.pdfViewerEnabledor iOS/iPadOS) orshare; the in-app text, JSON and image views andSheetViewer.vue(TASK-838) are removed with their strings. The desk'sfile.tableop stays (read-only, allowlisted) and is marked unused by the phone. Spec §12 "As built (TASK-843)".Fixed: a line break typed into a spreadsheet cell shows as separate lines, in AMBA and in Excel or ONLYOFFICE (TASK-841, Founder retest). Like Excel after Alt+Enter, a value with a Ctrl+Enter or ⌥+Enter line break now turns on Wrap Text for that cell (other cells that shared its format keep theirs) and the row grows so every line shows (written as an automatic height, so ONLYOFFICE and LibreOffice show it too; a row height you set yourself is kept). The lines show as soon as you commit, and one ⌘Z puts back the value, the wrap and the row height. Internal:
spreadsheet_edit_cellsaddswrapto the cell's style and agrow_row_heightop in the same write, resultwrapped; undo reverts the owner revision. Tests:cell_edit_wrap_tests.rs(5), VitestCanvasLineBreak.spec.ts(2).Fixed: your answers stay in the phone chat (TASK-842, Founder iPhone test of M123). When the agent asked you to choose or confirm something and you answered on the phone, the question used to disappear and only "Agent đang làm…" remained. Now a small reply bubble shows what was asked and what you chose ("✓ 6427"), with the time, like the desktop chat. This works for questions at the end of an answer, questions and approvals during a run, and answers given from the "việc chờ bạn" list. If sending the answer fails, the question stays so you can try again.
Internal (TASK-842): phone only, protocol v1 unchanged.
src/mobile/chatMessages.tskeeps an ask card's reply as a sent prompt with the desk's reply text (resultAskReply, moved to the import-lightsrc/features/projects/chat/askReply.tsand re-exported byresultAsk.ts; wire→desk answertoDomainAnswer), hiding the answered card until the desk's stored reply settles it; in-run question and approval replies are kept for the session and placed before their run's final message;AnsweredBubble.vuedraws any "question → answer" user message. Spec §12 "As built (TASK-842)".Fixed: the phone chat keeps your message, stays put and jumps between prompts smoothly (TASK-837, Founder iPhone test of M123). A message sent from the phone no longer disappears when the answer arrives (it stayed in the list but could jump to the very top, and was dropped when the chat was read again or a new chat got its id); the streamed answer stays on screen until the final one is in, and a run that ended while the phone was in the background no longer shows "Agent đang làm…" for ever. The app no longer zooms on a pinch or double tap, and the text field no longer zooms in when tapped. In a chat only the messages scroll: the send box stays at the bottom, above the keyboard. ↑/↓ jump smoothly to the previous or next prompt, also when tapped quickly or from the middle of an answer, and the "3/12" button that opens the list of prompts now sits at the top right of a chat in place of the settings button (settings stay on the home and project screens); when older messages are not loaded it shows "3/12+" and the list offers to load them.
Internal (TASK-837): phone only, protocol v1 unchanged.
src/mobile/chatMessages.ts(sent prompts kept per conversation until a new server user message with the same text appears; desk list, then unsent prompts, thenrun.finishedfinals; no clock sorting; a reload keeps earlier loaded pages and only the newest read applies),viewport.ts(installNoZoom,trackVisualViewport→--m-vvh/--m-vvtop,lockChatLayout→html.m-chat-lock),turnJump.tsin list coordinates (currentTurn,prevTurn,nextTurn,chatTurns),TurnJumper.vue(smooth list scroll, in-flight target),AppHeader.vueturn button;state.tsapplySnapshotends runs missing fromactive_runs(5 s grace). Tests: VitestchatSync.spec.ts(10),turnJumper.spec.ts(16),viewport.spec.ts(3),chatView.spec.ts(+2, turn tests moved).Added: Excel and CSV files open in the phone app (TASK-838, M123). Opening an .xlsx, .xls, .ods, .csv or .tsv file on the phone now shows it as a table: a tab per sheet, the first row and first column stay in view while you scroll, numbers and dates as the file shows them, and more rows load as you scroll. Up to 2000 rows × 50 columns of a sheet are shown; a bigger sheet says so, and "Mở" still hands the file to another app. A computer with an older AMBA says to update it and offers the file to another app as before.
Changed: the phone's home screen is calmer, and Back keeps your place (TASK-838). What waits for you is one row on the home screen ("3 việc chờ bạn") that opens the list; a notification still opens the list directly. Opening a file from a project's File tab (or a process from its Quy trình tab) and going back now returns to that tab, with the file search and scroll position as you left them.
Added: theme and more languages in the phone app's Settings (TASK-838). Choose Theme (same as the phone, light or dark) and Language: Tiếng Việt, English, 日本語 or 한국어, like the desktop app. Both are remembered on the phone and applied when the app opens.
Internal (TASK-838): remote op
file.table({project_id, path, sheet?, offset_row?, limit_rows≤500, locale?}→{sheets:[{name, rows, cols}], sheet, origin, offset_row, rows:[[string]], next_row?, max_rows, max_cols};src-tauri/src/runtime/remote/table.rs), reusing the desk viewer's readers:projection_xlsx::get_xlsx_viewport_withover theamba-officeview reader and workbook cache (formatted text),CsvViewfrom the cache for CSV/TSV, calamine for xls/xlsb/ods; caps 2000 rows × 50 columns, 500 characters per cell, 160 KiB of cell text per page (under the 256 KiB frame), paths confined asfile.get, 25 MB cap, 120/min per phone, log op + outcome only. Additive, protocol v1; specmobile-remote.md§9.1, §9.3, §11.1, §12 "As built (TASK-838)". Phone:SheetViewer.vue,theme.ts,locales/ja.ts,locales/ko.ts,desktopShared.tsja/ko,nav.remember. No new dependencies. Tests: Rusttests_table.rs(4); VitestshellView.spec.ts(9),filesView.spec.ts(2 updated),desktopShared.spec.ts(4 languages).Fixed: the phone still reaches the computer after its screen turns off (TASK-836, Founder report on M123). With "Giữ máy tính không ngủ" on and a phone paired, the computer no longer goes to sleep on its own while idle (the screen still turns off as usual), and AMBA is not slowed down in the background, so the phone keeps reaching it. After the computer does sleep and wake (for example the lid was closed), AMBA reconnects for the phone within seconds instead of up to a minute and a half. A sleeping or switched-off computer still cannot be woken from the phone, and a closed lid on battery still sleeps; the setting is renamed "Giữ máy tính không ngủ khi cần" and its [?] tip explains this.
Internal (TASK-836):
policy::keep_awake_wantedandno_throttle_wanted/no_throttle_reasontake the paired-phone count (background::remote_phones, 0 while the remote is off), newpolicy::phones_reason; the throttling opt-out for phones does not depend on the keep-awake setting.runtime/remote/client.rsWakeWatch(wall vs monotonic clock every 5 s, gap > 20 s = slept): a connected desk ends withremote.wokeand reconnects without backoff, a backoff wait ends at once. Locale keybackground_keep_awake_tip(4 locales),BackgroundSettingCardshows it as a [?]. Specmobile-remote.md§12 "As built (TASK-836)", ADR-093 update note,platforms.md§6. Tests: Rusttests_policy(+1),power(+1, 1 updated),client(+1); VitestBackgroundSettingCard.spec.ts(updated).Changed: a calmer agent turn in the desktop chat (TASK-835, Founder request). Each answer now shows the conversation first. The files a turn changed are no longer a separate "N file đã thay đổi" card and "File đã ghi" list under the answer: the collapsed "Đã xử lý" card says how many ("Đã xử lý trong 2m · 12 lần gọi công cụ · sửa 3 file"), and when opened lists them in a "File đã sửa" section as chips that open the file (a deleted file is struck through; the changed range of a workbook is a 📍 chip next to it). The token count, cache share and "Lưu cục bộ · SQLite" left the footer of the answer: they are at the foot of the opened card, or, for a plain answer without work, in the hover tip of the turn time. The "Kết quả" block, key figures, numeric checks, files that were not produced, recalled memory and every button that needs you stay under the answer.
Internal (TASK-835):
chat/turnFiles.ts(turnChangedFilesmerges the write ledgerdeliverables.writtenand the draft list),ChatWorkFiles.vue;ChatWorkGrouptakesfilesand emitsopenFile, its header token badge moved into the body stats line;ChatDeliverablesBlockkeeps figures, warnings and claimed-unchanged only;ChatAgentTurnno longer rendersDraftDeliverableBar(still used by routine turns) or the usage footer;ChatTurnTimetakesdetail. Locale keyschat_work_files,chat_work_files_count(_one)added,chat_deliverables_written_titleandchat_deliverables_updatedremoved (4 locales). Tests: VitestturnFiles.spec.ts(2),ChatWorkGroup.spec.ts(+3, 1 updated),ChatAgentTurn.spec.ts(+1, 4 updated),ProjectChat.spec.ts(draft-card tests now check the Worked card through the chat timeline),OfficePreviewReachability.spec.ts,CitePlaces.spec.ts,chatTimelinePolish.spec.tsupdated.Fixed: Ctrl+Enter starts a new line in a spreadsheet cell (TASK-841, canvas spreadsheet grid). Like ⌥+Enter (Alt+Enter), Ctrl+Enter now inserts a line break at the caret, in the cell and in the formula bar, instead of committing the cell; ⌘+Enter still commits.
Fixed: Enter in a centred or right-aligned Word paragraph stays centred or right-aligned (TASK-840, Founder retest). The caret of the new, empty paragraph sat at the left edge until you typed; it now sits in the middle or at the right like Word, also while the new paragraph is still being written to the file. The file already gave the new paragraph the same alignment (now covered by a test).
Fixed: the text below stays on screen when a typed Word paragraph gets a new line (TASK-839 follow-up, Founder retest on a 44-page file with VNI). When the line you type in wraps, or Enter splits a paragraph, the text and tables below it now move down one line at once instead of being hidden under the new line until the pages were laid out again (about a second); in a table cell that no longer holds its text, the row grows and everything below the table moves down with its borders. Deleting a line moves them back up. The new layout then replaces the page in one paint, pictures included. Internal:
layoutPatchreturnsreflowsteps (moves and a stretched row strip, clipped above the footer) thatWordPageCanvasapplies to the painted page; page parts of a paragraph spanning pages are matched before and after the edit (partOf);useWordPagesdecodes the new pages' pictures before it swaps them in;WordPagesReflow.spec.ts.Fixed: typing and Enter stay quick all through a long Word document (TASK-839, Founder retest of TASK-829 on a 44-page file with VNI). Enter now shows the new paragraph at once and takes the next keys while the file is split in the background (before, the keys waited for the write and the new layout, about a second on a long file). Saving after a pause no longer lays the whole document out again each time: the pages are laid out once when you stop typing, and the viewer, its pages and the typing share one layout of a version instead of each running it. Internal:
useWordTypingpending splits (PendingSplit,"\n"rows inlayoutPatch),useWordPageshold, single-flightDocxViewCache::get, per-paragraph fragment lookups; timing reportpara_perf_tests.rs(perf_report, ignored) andWordTypingPerf.spec.ts.Fixed: a message sent from the phone shows in the open chat on the computer (TASK-834, Founder test of M123). When the chat the phone writes to is open in AMBA, the phone's message appears at once, the agent's work streams in as for a message typed on the computer, and the answer shows when it is done, without switching to another agent or project and back. A new chat started from the phone, and the order of chats, update in the session list too. Internal:
useChatRunSession.attachExternalTurnfollows any run started elsewhere on the open conversation;useAgentRunonRunActivity; no event changes. Tests: VitestexternalRunLive.spec.ts(4).Added: a project's files on the phone (TASK-833, M123). The phone's project screen has a File tab (Trò chuyện · Quy trình · File): every file of the project, newest first, with a search box that ignores accents, smooth also with thousands of files. Markdown, text, CSV and JSON files open right in the app, and small pictures show inline; Word, Excel, PowerPoint, PDF and other files go to the phone's share sheet ("Open in…", Files, Word) or download. Files in a result card, file links and 📍 places in answers, and references in questions now open the file instead of saying "open on the computer" (at the top of the file; the exact place still needs the computer). Files over 25 MB are opened on the computer. The phone's inbox tab is gone: a new file waiting for its date opens that file, and its date is confirmed on the computer. A computer with an older AMBA says to update it.
Changed: the phone's process history is readable (TASK-833). Runs show their state in words ("Xong", "Lỗi", "Đang chờ") with how long they took, steps show their names, a failed run says what went wrong in a sentence with the code kept small, and "Xem lần chạy cũ hơn" loads older runs. The phone still never edits a process.
Internal (TASK-833): remote ops
files.list({project_id, cursor?, limit≤200, query?}, reusesorchestrator::project_files, keyset cursor) andfile.get({project_id, path, offset, length}clamped to 160 KiB so a chunk fits the 256 KiB session frame,too_largeover 25 MB, path canonicalised inside the project root, hidden segments refused), per-minute limitsfiles.list60 /file.get600;process.runstakesbeforeandProcStep.title(fromagent_turn::step_title, now naming every step kind). Additive, protocol v1.src-tauri/src/runtime/remote/files.rs; phonefiles.ts,processView.ts,FileList.vue,FileScreen.vue;InboxList.vueremoved. Specmobile-remote.md§9.1, §9.3, §11.1, §12 "As built (TASK-833)"; privacy policy (4 locales): files go to the phone only when listed or opened there, end-to-end encrypted. Tests: Rusttests_files.rs(5),limits(+1 assertion); Vitestfiles.spec.ts(13),filesView.spec.ts(12),chatView.spec.ts(1 updated).Added: Settings → Phone (Điện thoại) (TASK-814, M123), off by default. When turned on, AMBA connects to the AMBA relay, and you can pair up to 3 phones by scanning a QR code; the phone app then chats with your agents, answers their questions and approvals, and follows runs and processes, end-to-end encrypted (the relay sees only ciphertext; files, keys and runs stay on this computer). High-risk approvals, file plans and cancelling a process still need the computer. Each phone can be renamed or removed (Gỡ) at once, and a collapsed log lists what each phone did (never message content). While a phone is paired, closing the window keeps AMBA in the tray. Needs the relay deployed (TASK-813) and the phone app (TASK-815).
Internal (TASK-814):
runtime/remote/(ring crypto reproducingmobile-remote-vectors-v1.json,tokio-tungstenite+ rustls/ring client with backoff and 25 s pings, QR pairing, sessions, mailbox, the §9.1 allowlist with per-phone rate limits andclient_ididempotency, owner-event mapping with cleaned 250 ms deltas, push requests); migration V056 (remote_phones,remote_actions,remote_requests); keychain itemsamba.remote.identity,amba.remote.phone.<id>; IPCremote_*; new dependenciestokio-tungstenite0.30,rustls/webpki-roots(already in the tree), npmuqr0.1.3 (QR). Spec decisions indocs/ARCHITECTURE/mobile-remote.md§12 "As built (TASK-814)". Tests: Rust crypto vectors, wire, session, events, dispatcher (14), a fake-relay integration test (register → auth → pair → hello → snapshot → chat.send → deltas → mailbox → push → revoke); VitestPhoneSettingsTab.spec.ts(4).Fixed: typing in Word tables, multi-column pages and long documents (TASK-829, Founder retest of TASK-824). In a table, a click now puts the caret in the cell you clicked (also below a short cell's text and in an empty cell), typed text appears there, and the table's border lines stay whole while you type; ↓/↑ move to the cell below or above. In two-column sections the caret lands in the column clicked and Enter, Backspace and Delete split and join paragraphs as elsewhere, also in a paragraph that holds a column or page break (the break stays where it is). In long documents typing stays smooth with Vietnamese VNI/Telex: letters show at once while the text is saved, and the pages are laid out again only after a pause of about 1.5 s or when you leave the paragraph (sooner when the text no longer fits its cell); centred and right-aligned paragraphs keep their alignment while you type. A section's last paragraph (the one holding the section break) still cannot be split or joined.
Internal (TASK-829):
docx_layout::ParagraphFragmentgainsalignandcell(the table cell's box inside its border lines), served as optionalalign/cellondocx_page_layoutfragments;docx::para_edit::LayoutTextmaps the layout's text (page and column breaks read as nothing) onto the runs' text, socheck_paragraph,edit_paragraph_text,split_paragraphandmerge_paragraphsacceptw:br w:type="page|column"and refuse only an edit that would remove one. Viewer:pageTextkeeps the runs of different hit regions (cells, columns) on separate lines ordered region by region, adds an empty line for a region without glyphs, andcaretAtweighs the distance to a line's box;typingPatchclips its cover and text to the cell, reportsoverflow, follows centre/right/justify; text writes run beside the input queue and askuseWordEditor.relayout()only afterRELAYOUT_IDLE_MS(1500 ms) or on leaving the paragraph;fragmentsOnPagegroups fragments once per layout.[profile.dev.package.amba-office] opt-level = 2: relayout of a 43-page synthetic report in a debug build 750 ms → 172 ms (opt-level 1: 398 ms); the typing write itself ~90 ms. Tests: amba-officepara_split_tests(+2),docx_layout::tests::flow(cell boxes, alignment), hostprojection_docx(+1), ignored probeoffice::para_edit::tests::typing_save_cost; VitestWordPagesTable.spec.ts(7),typingPatch.spec.ts(3),WordPagesEdit.spec.ts(+2, one updated for the deferred layout).Fixed: notifications reach a locked phone (TASK-832, Founder iPhone test of M123). When the phone app was in the background or the phone was locked, the relay still saw its connection as open and sent no notification. The phone app now closes its connection when it goes to the background and reconnects when it comes back, and the relay counts a phone as connected only if it heard from it in the last minute, so a question or approval on the computer now shows "AMBA: n việc chờ bạn" on the locked phone.
Internal (TASK-832): relay
DeskRoom.livePhoneSocket(authed and heard withinLIMITS.phoneLiveMs60 s: last message time in the socket attachment or the auto-response ping timestamp) decidespushandready.phones[].online, closes stale sockets with 1001 and sends the desk presence offline; deskConn::pushno longer skips phones it believes online (30 s limit kept); PWARemoteConnection.suspend()andsrc/mobile/lifecycle.ts. Protocol v1 unchanged; spec §2.6, §2.7 point 13, §11.2, §12 "As built (TASK-832)". Tests: gatewayremote.spec.ts(+3), Vitestlifecycle.spec.ts(3),connection.spec.ts(+1), Rust fake-relay test updated (push while the desk believes the phone online).Fixed: the phone chat fits the screen, jumps between prompts and shows the result (TASK-831, Founder iPhone test of TASK-815). Long words, links, tables and code in a message no longer push the page wider than the phone: tables and code scroll sideways in their own box. In a long chat, small ↑/↓ buttons above the send box jump to the previous or next prompt, and the "3/12" counter opens the list of prompts to jump to any. An answer that handed in a result shows a compact "Kết quả" card: status, key figures, files (open on the computer) and what is still open.
Internal (TASK-831): phone
Msggains optionalresult({status, files[≤20], figures[≤6], open_items[≤10]}, built byruntime/remote/result_card.rsfrommetadata.result; additive, protocol v1);src/mobile/ResultCard.vue,TurnJumper.vue,turnJump.ts(reusesuseTurnNav.tshelpers),.phone-msgoverflow rules inmobile.css.Added: AMBA on the phone (TASK-815, M123; not yet published). A web app for
m.ambadesk.comthat pairs with your computer by scanning the QR code in AMBA (Cài đặt → Điện thoại): see what waits for you, chat with a project's agents with the answer streaming in, answer their questions, deny tool requests (risky ones are approved on the computer), watch process runs live, run a process now or answer its question, and confirm dates of new inbox files. When the computer is off the phone says so with the last-seen time, and messages and answers to ask cards wait and are delivered when it is back. Notifications (optional) say only how many things wait. On iPhone the app guides you to add it to the Home Screen first, which notifications need. Everything between the phone and the computer is end-to-end encrypted; the relay sees only ciphertext.Internal (TASK-815):
src/mobile/(separate Vite entryvite.mobile.config.ts,pnpm build:mobile→dist-mobile/,pnpm dev:mobileon port 1450,tailwind.mobile.config.js), WebCrypto protocol v1 (remote/crypto.ts,connection.ts,pairing.ts,store.ts), service worker and manifest;features/projects/studio/refOpenerContext.tssplit fromuseRefOpener.ts(re-exported). Specmobile-remote.mdsection 12 "As built (TASK-815)". Tests: Vitestsrc/mobile/**(44).Added: answer a process's question in AMBA (TASK-812, M123). A process step that asks you something ("Hỏi") no longer skips itself while Telegram replies are paused: the run waits, and Lịch sử chạy shows the question under that run with its choices as buttons, or a text field and Gửi. Your answer goes into the process (and is saved as a decision when the step records one), and the run continues. Without an answer by the step's deadline (or within 48 hours when it has none) the run goes on as unanswered. Nothing is sent on Telegram.
Internal (TASK-812):
runtime/process/answer.rs(ProcessEngine::answer_askunder the run's drive claim,AskAnswer), IPCprocess_answer(runId, stepKey, answer),amba/ask@v1waits withchannel: "app"outputs whileINBOUND_PAUSED; coded errorsprocess.ask_*(4 locales);ProcessAskCard.vue,processAsk.ts, mock flagprocess-asks. Tests: Rusttests_answer.rs(5), VitestProcessAskCard.spec.ts(5),ProcessHistory.spec.ts(+1).Added: type directly in Word documents (TASK-824, W3b lean; Founder 2026-11-09). In the Word page view, click in the text and type: the caret is back (arrows, ⌥/⌘ arrows, Shift to select), letters, Backspace/Delete (⌥ for a word), Tab and paste of one line go in at the caret and show at once, and are saved to the file after a short pause (or when you click elsewhere), keeping the formatting; each pause is one ⌘Z step. Vietnamese Telex/VNI, other IMEs and macOS accent keys work in place, the text being composed underlined. Enter starts a new paragraph with the same style and numbering; Backspace at a paragraph's start or Delete at its end joins two paragraphs. Typing over a selection inside one paragraph replaces it. The double-click text box is gone (a double click selects the word again). Paragraphs with fields, footnotes, tracked changes, content controls, pictures, text next to a link, headers, footers and text boxes still take no typing and say why; a file an agent is writing, or one shown read-only, never does.
Internal (TASK-824): amba-office
docx::para_split(split_paragraph(input, index, expected, at): runs cut at a grapheme boundary, untouched runs and paragraph properties kept, an empty second part takes the last run's formatting on its mark, a paragraph ending a section or a cut inside a hyperlink refused;merge_paragraphs(input, index, expected, expected_next): siblings only — two body blocks or two paragraphs of one cell — first paragraph's properties kept, never across a section break); commandsdocx_split_paragraph/docx_merge_paragraphs(src-tauri/src/office/para_split.rs) sharepara_edit::owner_write(busy, version, gate, owner revision, atomic write, view cache dropped). Viewer:useWordTyping(hidden textarea at the caret,beforeinput/composition/paste, a per-paragraph text model drawn bytypingPatchas an SVG over the canvas, one input queue so keys typed during a write or relayout apply in order, 400 ms idle save),typingModel(grapheme steps, word deletes, link ranges),useWordEditornow writes text/split/merge steps (undo of a split is a join and back) and tracks its own versions while a relayout is on its way;WordParagraphEditor.vueremoved;WORD_CARET_ENABLED = true. Relayout after a save is the whole document: about 125 ms for a 75-page synthetic document (release build), split + gate about 14 ms. Tests: amba-officepara_split_tests(7), hostpara_split_tests(3, incl.refused_while_claimed), VitestWordPagesEdit.spec.ts(10, rewritten),typingModel.spec.ts(5), caret and reachability specs updated.Fixed: a formula with open parentheses is closed when committed (TASK-830, Founder retest of TASK-828, canvas spreadsheet grid). Like Excel, Enter, Tab, ✓ or clicking away writes
=SUM(A1,'Sheet 1'!B4as=SUM(A1,'Sheet 1'!B4)instead of failing with "unbalanced parentheses"; parentheses inside strings and quoted sheet names do not count.Added: ⌘+click adds another reference while typing a formula (TASK-828, Founder retest of TASK-804, canvas spreadsheet grid). Right after a reference, ⌘+click (Ctrl+click on Windows) on a cell adds it after a comma instead of replacing the last one (
=SUM(A1→=SUM(A1,C3), ⌘+drag adds a range (,C3:D5), and further ⌘+clicks keep adding, also on another sheet (,'Sheet 2'!B4). A plain click still replaces the last pointed reference. Each added reference gets its own colour. A formula already separated with;keeps;.Fixed: ⌥ / Ctrl on the fill handle shows what it does (TASK-827, Founder retest of TASK-804). Pressing or letting go of ⌥ (Ctrl on Windows) while dragging the fill handle now updates the tooltip at once, without moving the mouse, and the tooltip names the mode where the key changes the result ("4 · Series", "2 · Copy"). The keys held when you release decide, so letting go of ⌥ before releasing fills without the switch. Internal:
spreadsheet_fill_previewreturns{text, mode: "series" | "copy" | null}; tests: Rustoffice::fill(+1),fill_series(+1 assertion), VitestCanvasFillHandle.spec.ts(+2).Fixed: charts made with python-pptx draw on slides (TASK-808, Founder retest of TASK-807). Column, bar, line and area charts in decks written by python-pptx (the agent's scripts) showed the "Chart: …" box instead of the chart, because those files number their chart axes with negative ids; all of them now draw, with their titles, legends, data labels and 12 pt default text. A chart whose saved values are missing or empty now takes them from the workbook embedded in the deck, and keeps its box only when neither exists. Charts the agent adds to Excel files now carry their values too, so other viewers show them without recalculating, and line and area charts no longer cut off their last category label. Scatter, bubble and radar charts still show the box.
Fixed: large decks, Word documents and workbooks open in the canvas views (TASK-808). Files over 20 MB were refused before the canvas views were tried, although they read the file in AMBA and only send drawn pages. .pptx, .docx and .xlsx files up to 200 MB now open in the canvas slide view, Word page view and canvas grid, with an "Opening slides…" state while a deck loads; PDF, images, CSV and other previews keep 20 MB. When a file is over its limit, or its canvas view is off, the notice says the limit (20 MB or 200 MB) and how to open it.
Internal (TASK-808): amba-office chart axis ids
i64,chart::needs_source,DataSource::preferred,pptx_layoutreadsc:externalDataworkbooks (Package::workbook, ≤ 40 MB, cached per deck) throughxlsx::view::BookCells;xlsx::chart_cache(caches foradd_chart);examples/slide_charts.rs(per-chart native/stand-in report and PNGs for a deck path). Host:MAX_CANVAS_VIEW_SIZE_BYTES(200 MB) besideMAX_IN_APP_PREVIEW_SIZE_BYTES(20 MB) incommands/projects/files.rs,preview_size(Full / CanvasOnly / refused with the limit named),readers_large.rs(names and counts only for 20–200 MB Office files: slide count and size, sheet names, no content),MAX_PPTX_BYTES(was 300 MB) andMAX_DOCX_BYTESnow that constant,ViewCache::getrefuses workbooks over it; frontendpreviewKind.isCanvasOnly/sizeLimitBytes,DeliverablePreviewshows only the canvas viewer for such files,PreviewFallbacknames the limit (4 locales). Peak RSS opening a synthetic 189 MB deck (180 MB of pictures) throughlayout_pptx: 1.07 GB, about 1 s. Tests: amba-officechart/tests/python_pptx.rs(5, pixel checks),pptx_layout/tests/chart_sources.rs(2),pptx/tests_chart_caches.rs(2),xlsx/tests_chart_caches.rs(1); hostcommands/projects/tests_size_caps.rs(4); VitestpreviewFile.spec.ts(+1),LargeDeckReachability.spec.ts(4).Changed: Word files open as real pages by default (TASK-821, closes the Word page view epic W1). .docx files in a project open in the page view for everyone, without turning on the Experimental Lab: true pages laid out by AMBA, thumbnails, a heading map, find, places to point the agent at, and Export PDF of those pages. Its switch moved from the Experimental Lab to Settings → Advanced → File viewer, next to the canvas spreadsheet grid; if you had turned it off, it stays off. Old .doc, .rtf and .odt files, and any file the page view cannot lay out, keep the previous view.
Added: Export PDF from the Word page view (TASK-821). With a .docx open in the page view, the print button writes the same pages as a PDF: the same page breaks, page sizes per section (portrait and landscape), headers, footers and fonts as on screen, with real text you can select, search and copy, Vietnamese included. The PDF goes where exports always went (
desk/<name>.pdf). A file the page view cannot lay out still exports as before.Internal (TASK-821):
runtime/docx_pdf.rs(docx_to_pdf(path, title): the sharedDocxViewCachelayout throughamba_office::display::pdf::render_pdfwith the viewer's font library, subset-embedded fonts and ToUnicode; refuses a truncated layout).export_project_file_to_pdftries it first for docx/docm/dotx/dotm and falls back to the text compiler; the command is now async on the blocking pool. DeliverablePreview sends Export PDF to the runtime whenever the page view is shown (docx-preview keeps the webview print).Changed: no text caret in the Word page view for now (TASK-823, Founder decision). Until in-place editing ships, a click no longer draws the blinking caret, and the arrow keys, PageUp/PageDown and Home/End (⌘↑/⌘↓) scroll the pages like a document viewer instead of moving a caret; Shift+arrows no longer select and Enter/F2 no longer open the paragraph editor. Selecting with the mouse (drag, double and triple click, Shift+click), ⌘C, the right-click place menu with references and quotes, ⌘F, double-click to edit a paragraph (at the clicked place) and ⌘Z / ⌘⇧Z stay as they were; the edit tip now says double-click.
Internal (TASK-823):
word/wordFeatures.tsWORD_CARET_ENABLED = falsegatesuseWordCaret(newenabledoption, defaulting to the flag: noboxForbar,onKeyscrolls bySCROLL_STEP/ a view / the ends) and Enter/F2 inWordPagesViewer; the TASK-797 code is kept andWordPagesCaret.spec.ts/WordPagesEdit.spec.tsrun with the flag mocked on. Tests:WordPagesCaretOff.spec.ts(4),WordPagesReachability.spec.ts(+1, through ProjectStudio → DeliverablePreview).Changed: Word page view breaks lines and pages much closer to Word (TASK-820, W1). Paragraph spacing, justified lines in Word 2013+ documents, table borders, rows kept together with the next row, page breaks on their own line, numbered section breaks and two-column sections now lay out as Word does: on the docx corpus every document has Word's page count (13/13, was 12/13), 28 of 32 pages break their lines like ONLYOFFICE (was 19), and 93 % of lines have the same text (was 78 %). Layout time unchanged.
Internal (TASK-820): amba-office
docx_layout(para_gap= max(after, before);MCell::rule_top/rule_bottomborder widths in the row height;MRow::keep_next+MTable::keep_needinplace_tableandchain_need; bare page-break mark inplace_segment; bare section-break paragraphs skip numbering;compatibilityModeread from settings →ParaFmt::justify_shrink; continuous column regions start below the pending space after),text(ParagraphProps::justify_shrink,Prepared::run_fontsfor line metrics), tests +8 (docx_layout/tests/fidelity.rs7, text 1 + 1 assertion);scripts/office-fidelity/docx.mjscompares Symbol bullets (U+00B7/U+F0B7) equal to U+2022;docx_lines --y.Added: charts are drawn, on slides and on spreadsheets (TASK-807). Column, bar, line, area, pie and doughnut charts, stacked and 100 % stacked, and combinations of them with a second value axis, now appear as real charts: in the canvas slide view (Experimental Lab → "Slide view on canvas") instead of the "Chart: …" box, and in the spreadsheet grid on top of the cells where the chart is placed, scrolling with the sheet. Titles, legends, axis numbers in the file's number formats, gridlines, data labels and the theme's colours are shown as PowerPoint and Excel draw them; numbers follow your language (
2,5in Vietnamese). A chart shows the values saved in the file; it is not recalculated. Scatter, bubble, radar, stock, surface and the newer Excel chart types (waterfall, treemap, …) still show the "Chart: <title>" box (on a sheet: "Open in Excel to view"), or the picture of the chart saved in the file when there is one.Internal (TASK-807): amba-office
chart(parse/parse_xmlfromc:chartSpacewith aChartThemeand an optionalDataSourcefor parts without a cache;draw/renderinto a display list;nice_scaleafter Excel's auto-scale rules; model inchart::model); DrawingML colours moved todml_color. Slides:pptx_layout/charts.rsdraws a frame's chart natively when it parses and its type is supported (preferred over themc:AlternateContentfallback picture), else the TASK-806 picture or stand-in. Grid:xlsx::view::ViewWorkbook::sheet_charts(two-cell, one-cell and absolute anchors in grid pixels, workbook theme, stored cells for the agent's cacheless xlsx charts, stand-in naming Excel), commandspreadsheet_sheet_charts(projectId, filePath, sheetName?, locale?) -> {charts: [{id, name, from, to, width, height, native, list (AMBD base64)}]}cached per file version inViewCache;canvas/sheetCharts.tspaints the lists in every grid region after the cells. Tests: amba-office chart parse (10), scale (7), draw (8, PNG pixel checks), slidesnative_charts.rs(3: agent deck drawn natively with pixels in the theme accent, native over a stored picture, unsupported keeps the stand-in), sheetstests_charts.rs(3: the agent's xlsx chart at its anchor from stored cells, Excel-written chart, scatter stand-in), hostprojection_charts(1); VitestsheetCharts.spec.ts(4),CanvasCharts.spec.ts(reachability through DeliverablePreview, 1).Added: point at cells while typing a formula, like Excel (TASK-804, canvas spreadsheet grid). After
=,(, a comma or an operator, click a cell to insert its reference (B2), drag for a range (B2:D9), or click another sheet's tab and then a cell for'Sổ cái'!A1; the edit stays on your cell and Enter saves it there. Arrow keys move the inserted reference and Shift+arrows extend it; F2 switches to moving the caret instead. F4 cycles the reference at the caret through$A$1,A$1,$A1,A1. Every reference in the formula gets its own colour, in the cell, in the formula bar and as a coloured frame around its cells on the grid. Dragging a coloured frame to move a reference is not there yet.Added: fill handle (TASK-804, canvas spreadsheet grid, xlsx). Drag the small square at the selection's bottom-right corner down, up, right or left to fill: a dashed outline shows the cells and a tooltip the value the last one will get. Two or more numbers continue their trend (1, 2 → 3, 4); a single number is copied; dates go on by day, or by month when they are a month apart;
Item 1becomesItem 2; weekday and month names continue (Monday,Jan,Thứ Hai,Tháng 1); formulas are copied with their references moved ($parts stay); formats come with the cells. Hold Ctrl or ⌥ when releasing to switch between series and copy, as in Excel. Double-click the square to fill down as far as the column beside it has data. One ⌘Z / Ctrl+Z undoes the whole fill, values and formats. No handle on CSV files, read-only files or while the agent writes the file.Internal (TASK-804): amba-office
xlsx::fill_series(plan_fill(source, target, read, toggle, date1904) -> Vec<FilledCell>: lines along the fill, offsetskfrom the source's first cell (negative up/left),LinePlanCopy / Linear (least squares) / Months / Numbered / Names / PerPeriod, formulas viaoffice_verify::refs::edit_formula(Translate), ≤ 50 000 cells);style_fromalso takes#<cellXfs index>(Workbook::check_style_index). Commands insrc-tauri/src/office/fill.rs:spreadsheet_fill(projectId, filePath, sheetName, source, target, toggle?, baseVersion) -> {fileVersion, revisionId, before, after: [{row, col, value, formula?, style}], recalculated},spreadsheet_put_cells(…, cells, baseVersion)(undo/redo) and read-onlyspreadsheet_fill_preview(…, locale?) -> string | null; same owner flow and errors asspreadsheet_edit_cells. Frontend:canvas/formulaRefs.ts(TS reference finder, colours,canInsertRef,refText, F4cycleAbsolute),useFormulaPoint.ts(capture pointer handler, editor key hookeditorKey, sheet switch kept while pointing),useFillHandle.ts,CanvasEditOverlay.vue(reference frames, the cell editor's coloured mirror, handle, outline, tooltip),useOverlayBoxes.ts(moved out of the viewer),services/api/spreadsheetFill.ts;EditStep.replayfor steps written by another command; the editor keeps the edited cell's sheet; the formula bar takesrunsand forwards F4;SpreadsheetFooterholdFocus. Tests: Rustfill_series(7),office::fill(6, incl. refused while claimed); VitestformulaRefs.spec.ts(6),CanvasFormulaPoint.spec.ts(6),CanvasFillHandle.spec.ts(5),CanvasRefsFill.spec.tsreachability (2).Added: paste from Excel or Google Sheets, and insert or delete rows and columns, in the spreadsheet grid (TASK-805). ⌘V / Ctrl+V on an .xlsx pastes the copied cells at the selected cell with their formatting: bold, italic, underline, font and size, text and fill colours, number formats (dates, %,
#,##0), alignment, wrap, borders and merged cells; numbers like1.234,5and dates like09/12/2025are read in your language. ⌘⇧V / Ctrl+Shift+V, or right-click → Paste values only, pastes the values and keeps the sheet's formatting. Selecting an area that is a multiple of the copied block fills it, as in Excel. Cells copied in the grid itself paste their formulas with the references moved, and their formatting. Right-click a row or column header (or a cell) to insert rows above/below, columns left/right, or delete them, as many as are selected; ⌘⇧= / ⌘- do the same (on a few cells a small box asks for entire row or entire column; shifting only some cells is not supported). Formulas on every sheet follow the moved cells; references to deleted cells become#REF!as in Excel; merged cells, conditional formats, validation, names, row heights and column widths move too. A table's header row or columns, pivot tables and part of an array formula cannot be changed this way; a message says why and nothing is written. Each paste, insert or delete is one step in the file's history, and ⌘Z / Ctrl+Z undoes it. Column widths are not pasted (Excel's default too); at most 200,000 cells per paste.Internal (TASK-805): commands
spreadsheet_paste,spreadsheet_structure,spreadsheet_revert_owner_edit(src-tauri/src/office/{paste,structure_edit,revert,owner_write}.rs, contracts in the ADR-092 note); amba-officeStyleSpec/StyleChangegainedunderline, font name, vertical alignment,border(four sides, Excel line styles) andreplace(start fromcellXfs0). Frontend:canvas/clipboardParse.ts(Excelx:numandmso-number-format, Sheetsdata-sheets-value/data-sheets-numberformat, class and inline CSS, colspan/rowspan, Excel TSV quoting, locale numbers),pastePlan.ts(anchor, Excel tiling, the grid's own copy recognised by its text: formulas with their source cell, formats viastyle_from),useCanvasPaste.ts(nativepasteevent after ⌘V, Clipboard API fallback after 150 ms or from the menu),useCanvasStructure.ts+CanvasStructureDialog.vue,useCanvasEditOps.ts;EditStep.replayruns these steps' undo (snapshot) and redo (same request). Tests: Rust paste (8), structure (8, including refused while claimed for each command and the revert); VitestclipboardParse.spec.ts(7),pastePlan.spec.ts(6),CanvasPasteStructure.spec.ts(8), reachabilityCanvasPasteReach.spec.ts(1).Fixed: find in the spreadsheet grid marks matches in yellow (TASK-806, follow-up to TASK-801). Matching cells get a soft yellow fill with a thin amber line, and the current match a stronger yellow with a 2 px dark amber outline, as ONLYOFFICE and Chrome mark search results, instead of light blue that looked like a selection. The cell text stays readable under the marks, also in the dark theme (the sheet stays white).
Fixed: charts on slides are never an empty space (TASK-806, follow-up to TASK-799, Experimental Lab → "Slide view on canvas"). A chart AMBA cannot draw yet (every chart the agent adds to a deck, and charts without a stored picture) now shows a clear box at its place with a small chart icon, "Biểu đồ: <title>" (the chart's title, else its name) and "Mở bằng PowerPoint để xem", in the app's language; before, it was at best a faint grey box with a small grey label, easy to take for empty space. The same applies to SmartArt and embedded objects; an embedded object's own stored picture is shown when it has one. Charts that fill a layout placeholder (no position of their own) and charts inside groups are placed correctly, and a stored chart picture that cannot be decoded falls back to the box instead of nothing.
Internal (TASK-806): amba-office
pptx_layout/stand_in.rs(StandIn,labels,chart_titlefromc:chart/c:titlerich text orc:strRefcache, no longer an axis title,paint_stand_inwhich always draws the box even if its text cannot be laid out);SlideOptions.locale;frametakes the inherited placeholder position;mc:AlternateContentdrawsChoicewhenFallbackdrew nothing.pptx_slide_layout/pptx_slidetake an optionallocale(the drawn-deck cache is keyed by it), sent byuseSlideDeckfrom the UI language. Tests: amba-officepptx_layout/tests/stand_ins.rs(6: the agent'sadd_chartwith and without a title and in a placeholder, layout-placeholder and group positions, undecodable fallback, SmartArt/OLE, title extraction, labels), hostprojection_pptx(+1), VitestSlideDeckViewer.spec.ts(+1 assertion).Changed: the canvas spreadsheet grid is now the default (TASK-803). xlsx, CSV and TSV files in a project open in the canvas grid for everyone, without turning on the Experimental Lab: the whole sheet scrolls, with frozen panes, merged cells, find that jumps to cells and in-cell editing for xlsx. Its switch moved from the Experimental Lab to Settings → Advanced → File viewer; if you had turned it off, it stays off. Old .xls files, and any file the canvas grid cannot open, use the classic grid.
Added: select and copy text on slides, and ask AMBA about a place on a slide (TASK-802, Experimental Lab → "Slide view on canvas"). Drag across the slide to select text, also across lines and from one text box to the next, in reading order (top to bottom, then left to right); double-click selects a word, triple-click a paragraph, Shift+click extends the selection. ⌘C / Ctrl+C copies it (a line break between paragraphs and text boxes, a tab between cells of a table row); "copy slide text" stays. Right-click (or Shift+F10 / the ContextMenu key) opens AMBA's place menu: Ask agent about this, Quote to Chat, Copy ref, then Copy and Find. Its place is the selection (
deck.pptx#s2:"Doanh thu tăng"), else the shape under the pointer (deck.pptx#s2:shape=Title 1), else the slide (deck.pptx#s2); right-clicking a thumbnail gives that slide. A 📍 link to a shape opens its slide with the shape outlined; a shape or quote the slide no longer has opens the slide.Internal (TASK-802): reference grammar (Rust
runtime/refs, TSrefGrammar.ts, shared fixture +7 cases):RefTarget::Slidegains optionalquoteandshape(s2:"…",s2:shape=Name; read part stayss2; the quote is the chip preview). amba-officepptx_layout::Slide.shapes(SlideShape {id, name, rect}, the slide's own top-level shapes that draw something), sent bypptx_slide_layoutasslides[].shapes. Frontend:slides/slideSelection.ts(reading order, carets, word/paragraph, text with separators, rects, quote across shapes, shape naming and lookup),useSlideSelection.ts,useSlidePlaces.ts(pointer, ⌘C, menu, Escape; the Word view's host-port contract),SlideCanvasmarksselandshape;DeliverablePreviewwires the slide view'splaceSelected/requestContextMenutouseViewerHostPorts. Tests: amba-officepptx_layoutshapes (+1 assertion block), hostprojection_pptxandrefs(+1); VitestslideReading.spec.ts(5),SlideDeckSelection.spec.ts(8),SlideCanvasReachability.spec.ts(+1). Limits: rotated text selects whole lines; a quote place is at most 200 characters (longer: its shape, else the slide).Fixed: find in the spreadsheet grid highlights every match (TASK-801, Founder retest of TASK-800). Typing in the grid's find box (⌘F) now marks every matching cell on screen with a soft blue fill, as ONLYOFFICE does, and the match Enter / next / previous jumped to with a stronger outline; emptying the box or Escape removes the highlights. Works for xlsx and CSV / TSV.
Internal (TASK-801):
canvas/paintFind.tspaintFindMarkspaints after the cell regions, per region binary-searching the row-major match list (useCanvasFind.marks), so only visible matches cost anything;PalettegainsfindFill,findLine,findCurrentFill,findCurrentLine; a new query resets the current match.Internal (TASK-801): regression tests for typed dates and the UI language. With the OS set to en-US, both the cell editor and the formula bar send the UI language (
vi);vi,vi-VN,vi_VNall read09/12/2025typed into an empty cell as 9 December, shown09/12/2025;ja/koread year-first and otherwise month-first;32/13/2025stays text. No defect found on that path; a cell that already has a month-first format (mm/dd/yyyy) stores 9 December but shows12/09/2025in its own format, as Excel does.Fixed: hidden columns and rows are visible and easy to show again (TASK-800, follow-up to TASK-793). Where columns or rows are hidden, the header now shows a double line, as in Excel. Pointing at that line (or a few pixels right of / below it) grabs the hidden column or row: drag to show it at the dragged size, or double-click to show it fitted to its content (at the default width when it is empty). Hidden column A or row 1 is grabbed at the first header border.
Fixed: double-click AutoFit with several columns or rows selected fits every one of them (TASK-800, follow-up to TASK-793). With whole columns selected by their headers, a double-click on one of their borders now fits all selected columns in one step (one undo), the same as dragging resizes them all; also when the sheet's first or last row (or column A) is hidden, which used to make the selection count as not whole so only one column was fitted. A press on a border that moves a single pixel during a double-click no longer writes a resize first.
Fixed: typing a date into a General cell makes it a date in your language's order (TASK-800, follow-up to TASK-795). In Vietnamese
15/3/2025,15-03-2025or15/03/25typed into an empty or General cell is saved as 15 March 2025 and the cell gets thedd/mm/yyyyformat (English:m/d/yyyy), written out so the file shows the date the same way in any Excel; before, the cell took Excel's built-in short date, which follows the reader's system.32/13/2025stays text. Undo of such an edit also puts the cell back to General.Internal (TASK-800):
parse_inputgives a date the locale'sshort_datecode instead of built-in 14;spreadsheet_edit_cellscells take an optionalformat, results carrypreviousFormat(General) when a typed value changed the cell's format, and the canvas editor's undo sends it back.Fixed: ⌘F / Ctrl+F finds in spreadsheets, CSV and Markdown (TASK-800, Founder retest). ⌘F did nothing in a CSV or an xlsx: the canvas grid had a find box but no shortcut, and the classic grid (Experimental Lab switch off) had no visible find at all. Now ⌘F in the canvas grid puts the cursor in its find box with your last search selected, as in Excel (Enter / Shift+Enter jump to the next / previous cell, Esc goes back to the grid); in the classic grid it opens a filter bar over the rows; in a Markdown or text file it opens a find bar that highlights every match (Enter / Shift+Enter step through them). It works wherever the focus is after a click on the file list or the tab bar, not only inside the document; the chat input keeps ⌘F for itself.
Internal (TASK-800):
preview/previewFind.tsrouteFindKeyinDeliverablePreview's window keydown routes an unhandled ⌘F to the shown viewer'sopenFind()(canvas grid, DOM grid, Word pages, Markdown) unless the preview is hidden, the event wasdefaultPrevented, a text field outside the preview or a cell edit session has the focus. Newcomponents/find/ViewerFindBar.vue(shared bar) anduseDomFind(<mark class="doc-find-mark">over text nodes, cross-element matches, cleared before re-render).useCanvasFindnow owns the find input,open()and its keys.Added: edit a paragraph's text in the Word page view (TASK-798, Experimental Lab → Word page view). Double-click a paragraph (or press Enter or F2 with the caret in it): a text box opens over it with the caret where you clicked. Type as usual, Vietnamese Telex and VNI included; Enter saves, Esc cancels, clicking elsewhere saves. Only the words you changed are rewritten in the .docx, so bold, italics, colours and fonts of the rest stay exactly as they were; new text takes the formatting of the text just before it. The pages are laid out again and the caret lands after your edit. ⌘Z / Ctrl+Z undoes the last edit, ⌘⇧Z redoes it; every edit is in the file's change history as your own. A paragraph with a field, a footnote, tracked changes, a content control, a picture or a line break does not open the box at all: a short message says why right away, before you type anything. In a paragraph with a link a short tip says so when the box opens; an edit on or right next to the link is refused when you save, and then the box stays open with your text so nothing you typed is lost (the same for a file that changed on disk or that an agent is writing at that moment). A file an agent is writing, and .dotx templates, stay read-only. No new paragraphs yet.
Internal (TASK-798): amba-office
docx::para_edit—edit_paragraph_text(input, index, expected, new)finds body paragraphindexin the page layout's order (locate_paragraph: body, tables, rows and cells throughsdt/customXml/inswrappers asdocx_layout::readwalks them; a paragraph inside a wrapper is refused), checks its content (plainw:t/w:tabruns, bookmarks, comment ranges and references, hyperlinks), compares its runs' text with the text the viewer read, and appliestext_diff(common prefix/suffix snapped to grapheme boundaries) throughreplace::{insert_text, replace_range}(nowpub(crate)); refusals areParaRefusalcodes. Commanddocx_edit_paragraph(projectId, filePath, paragraph, expected, text, baseVersion) -> {fileVersion, revisionId, paragraph, previous, text}(src-tauri/src/office/para_edit.rs; errorsconflict | busy | refused{reason} | invalid | failed) runsedit_docx::edit_docx_in_place_checked(version check under the file lock, docx gate, Doc-Ops revision authorowner, atomic write;edit_file_withshares itscommittail) and drops the path fromDocxViewCache(invalidate). Read-only pre-check (TASK-798b):para_edit::check_paragraph(input, index, expected) -> Result<ParaInfo{text, links}, ParaError>sharesparagraph_path+inspect(content rules, text read asexpected) with the edit, so every rule but the link one (it depends on where the edit lands;touches_link) is decided before typing; commanddocx_check_paragraph(projectId, filePath, paragraph, expected, baseVersion) -> {fileVersion, paragraph, links}(links in UTF-16 units; same errors; no lock, no write, no revision; the version is checked before and after the read). Viewer:useWordEditor(session, undo/redo steps{paragraph, before, after},useFileBusy, notices;open()waits for the check, cached per file, version and paragraph and cleared after every write or conflict; a refused, conflicting, busy or failed save keeps the box with the draft, remounted bysession.attempt;reset()on file change);word_edit_refused_*texts read "Can't edit here" where they show before typing, newword_edit_link_hint,useWordEditView(box geometry, caret placed after the write once the new layout is painted),WordParagraphEditor.vue(textarea; IME-safe keys);paraOffset.tsaligns a paragraph's painted lines with its fragment text, andcaretParagraphOffsetnow uses it (earlier lines and wrap spaces count).WordPagesViewergains propreadOnly; its styles moved toword/WordPagesViewer.scss.Added: a text caret in the Word page view (TASK-797, Experimental Lab → Word page view). Click in the text and a blinking caret appears exactly between two letters. Move it with ←/→ (a letter; a Vietnamese letter with its marks is one step), ⌥←/⌥→ (a word), ↑/↓ (a line, keeping the column over short lines), Home/End or ⌘←/⌘→ (the line's start or end), ⌘↑/⌘↓ (the start or end of the document) and PageUp/PageDown. Hold Shift with any of them, or Shift-click, to select from the caret, also across pages; the view follows the caret. Copy (⌘C), the right-click menu and find (⌘F) work on that selection; Esc drops the selection and keeps the caret. The caret hides when the page view loses focus. Viewing only: the text cannot be edited yet.
Internal (TASK-797):
word/caretNav.ts—DocCaret {page, line, index}(index = grapheme of the page's text line,ENDfor a place on a page not decoded yet, clamped byclampCaretonce its text exists),hitCaret,caretBox,indexAtX,stepChar,stepWord(Mac ⌥ rules overpageText.classOf, a line break counts as a space),stepLine(sticky x, crosses pages, skips pages without text),lineEdge,docEdge,caretParagraphOffset(paragraph + code-point offset of the layout's fragment, for W3a).useWordSelectionnow holds{anchor, focus}document carets (a selection may span pages; collapsed = the caret;range,covers,setFocus,collapse,normalize; text of pages in the range not painted yet comes from their layout fragments) and drags follow the pointer onto other pages.word/useWordCaret.tshandles the keys, the sticky column, PageUp/PageDown by the view height, scrolling to the caret and focus;WordPageCanvasdraws the bar (caret,caretKeyprops). The Lab switch default is unchanged (off). Vitest +12 (caretNav.spec.ts7,WordPagesCaret.spec.ts5).Added: slide view on canvas (TASK-799, Experimental Lab → "Slide view on canvas", off by default). With the switch on, a project's
.pptxopens as slides drawn by AMBA itself, the same on every machine: a thumbnail strip, the slide fitted to the width with zoom (50–200 %, ⌘+/⌘−/⌘0), speaker notes in a pane you can close, ←/→/Page Up/Page Down/Home/End to move, find across every slide (⌘F) with each match highlighted, and "copy slide text". 📍 references such asdeck.pptx#s2or a quote open the right slide. What it draws: the master and layout behind each slide, theme colours and fonts, backgrounds, common shapes (rectangles, rounded rectangles, ellipses, lines and arrows, triangles, block arrows, chevrons and more), pictures with crop, groups, rotated and flipped shapes, text with bullets, numbering and shrink-to-fit, and tables with their style. Charts, SmartArt and embedded objects show as a labelled box for now. A deck it cannot draw opens in the usual preview; old.pptfiles keep the usual preview.Internal (TASK-799): amba-office
pptx_layout(layout_pptx(bytes, fonts, &SlideOptions) -> SlideDeck: per slide aDisplayList, title, notes, hidden flag andSlideTextlines with page rect and caret x per character; top-level shapes asLocation::Slide { index, shape }hit regions;fallbackscounts presets drawn as their box and chart/object stand-ins). Modules:theme(colour scheme,p:clrMap/p:clrMapOvr, lumMod/lumOff/tint/shade/alpha/sat/hue,+mj-lt/+mn-eafonts, fmtScheme fill/line/background styles),style(list levels master txStyles → placeholder lstStyles → shape →a:pPr/a:rPr,a:bodyPr),geom(presets with adjust values,a:custGeomincl.arcTo),fill(solid, gradient as clipped bands/rings, picture, pattern, group fills; outlines with dashes, caps, joins, arrowheads;p:stylerefs),text(text engine layout, bullets/auto-numbers, insets, anchors, wrap none, vertical text,normAutofitstored or computed shrink),table(grid, merges, row growth, tableStyles.xml plus a built-in "Medium Style 2 – Accent 1"),walk(master → layout → slide trees, placeholder matching by idx/type, group child spaces, rotation/flip transforms,mc:AlternateContentfallbacks),package(per-deck caches of roots, rels, pictures; EMF/WMF/TIFF skipped). Tauri:runtime/projection_pptx.rs—pptx_slide_layout(fileVersion, slide size, titles/notes/hidden, text lines) andpptx_slide(AMBD bytes,conflicton a stale version),PptxViewCacheLRU (4 decks) per path and file version, same fonts as the Word view (projection_docx::fontsnowpub(crate)); lab settingviewer.slideCanvas(lab_set_slide_canvas,viewer_slide_canvas,slideCanvasin the lab state). Frontend:src/components/slides/(SlideDeckViewer.vue,SlideCanvas.vue,useSlideDeck.ts,slideText.tsfind/targets/copy,slideCanvasSetting.ts),services/api/slidePages.ts, routing inDeliverablePreviewwith fallback toPresentationViewer. Not in P1a: selecting text with the mouse, shape anchors (#s2:shape=…), native charts, shadows. Tests: amba-officepptx_layout(22 + doc test), hostprojection_pptx(2) and lab (1); VitestslideText.spec.ts(3),SlideDeckViewer.spec.ts(5),SlideCanvasReachability.spec.ts(3), lab switch (1).Changed: CSV and TSV files open in the canvas spreadsheet grid (TASK-796, Experimental Lab → canvas spreadsheet grid). With the switch on, a project's
.csvor.tsvscrolls as one whole sheet like an xlsx: right-click for Hỏi trợ lý về chỗ này / Trích dẫn vào Chat with a 📍 link such asso.csv#B2:C4, copy as TSV, find (⌘F), the formula bar and keyboard navigation. CSV stays read-only: no cell editor, no Edit cell item, no column resizing. Values show exactly as written in the file (007,1.50,2026-11-08are not reformatted); numbers sit on the right and text on the left, as in Excel. Columns are 64 px wide, wider (up to about 45 characters) when their first 200 rows hold longer text. Files in legacy Vietnamese Windows-1258 encoding and UTF-16 files with a BOM now open in both grids (they used to fail), and a CSV separated by;or tabs is recognised from its first line even when values contain commas. The "Source" view of a CSV stays the code view.Internal (TASK-796):
runtime/csv_view.rs—decode_text(UTF-8 BOM dropped, UTF-16 LE/BE by BOM, valid UTF-8 as is, else Windows-1258 viaencoding_rs(already in the tree, now a direct dependency) composed to NFC),delimiter_for(tab for.tsv/.tab, elsecontext::adapters::csv::detect_delimiter: most frequent of,;tab on the first line),Records(RFC 4180 record iterator:""escapes, delimiters and line breaks inside quotes,\n/\r\n/lone\r, trimmed fields; record n = sheet row n),general_align, andCsvView(decoded text + a sparse index of every 64th record's offset, rows/cols extent, auto widths from the first 200 records:len + 2characters clamped to the 64 px default .. 45; a tile parses only its rows; 200 MB cap like the docx page view).ViewCachenow holds xlsx workbooks andCsvViews in one LRU per (path, mtime, size) (get_csv).spreadsheet_sheet_layout/spreadsheet_tileaccept.csv/.tsv(one sheetSheet 1, the sheet name the preview sends is not checked).read_project_spreadsheet(DOM grid data, 20 MB cap unchanged) reads CSV through the same decoder, delimiter rule andRecords, so both grids number rows alike. amba-office:xlsx::tile_text::encode_text_tilewrites tile v1 for a plain text grid (one default style, text cells with the General alignment flag, default row height, given column widths). Frontend:useCanvasGridregex inDeliverablePreviewtakes csv/tsv;useCanvasHostPortsgainssheetless(places without a sheet,placeOf(null, …)) andactions.hideEdit(no Edit cell item for CSV/TSV). Tests: Rustcsv_view(4), amba-officetile_text(1),projection_tileupdated; VitestCanvasCsv.spec.ts(2),CanvasPlaces.spec.tsCSV case now opens the canvas.Changed: Word page view uses the fonts installed on your computer (TASK-784). A document in a font your Mac or PC has (Georgia, Tahoma, Segoe UI, .VnTime, …) is now laid out and drawn in that font instead of a plain sans font. A font that is not installed is replaced by one of the same kind: serif fonts (Georgia, Garamond, Palatino, .VnTime, VNI-Times, …) by Liberation Serif, sans fonts (Tahoma, Verdana, Segoe UI, Aptos, .VnArial, …) by Liberation Sans, code fonts (Consolas, Lucida Console, …) by Liberation Mono. Calibri, Cambria, Arial, Helvetica, Times New Roman, Times, Courier New and Courier always use AMBA's own fonts with the same letter widths, even when Office is installed, so their pages break the same on every machine; pages in other fonts can now differ slightly between computers that have different fonts.
Internal (TASK-784, amba-office
text):FontLibrary::resolveorder is metric alias (DEFAULT_ALIASES, now pinned: wins over a loaded face of the same family;set_aliasmakes one ordinary,set_metric_aliasadds one) → the family itself (bundled/caller faces before system faces of the same family) → class alias (CLASS_ALIASEStable, thenclass_substituteby name: mono → sans → serif hints,.Vn/VNI-/VNprefixes skipped) → fallback (Noto Sans) → face 0. System faces are no longer per-character fallback (avoids reading every font file for one missing glyph); family lookup goes through a name index (layout time with ~900 system faces equal to bundled-only).projection_docx::fonts()= bundled +load_system_fonts()once in itsOnceLockon the blocking pool; the docx view cache is in memory per process, so nothing goes stale. Canvas draws by the resolved family (bundled twins frombundledFonts.css, installed fonts by name). Measured on an M4 Pro (debug build): font library init 3–5 ms → 48 ms on the first open (15 ms warm), layout unchanged (PSA template 11 pages ~170 ms both).pnpm run fidelity:docx(new--system-fonts,docx_lines --system-fonts): pages equal 12/13 → 12/13, lines per page 19/32 → 19/32, same line text 795/1025 → 797/1027 (Consolas → Liberation Mono), identical with and without system fonts on this corpus. Tests: crate +1 (resolution order with renamed fake system faces), host +1 (viewer library holds system fonts, twins pinned).Fixed: a date cell opens in the editor as a date, not as a number (TASK-795). F2, a double-click or Enter on a date now shows
09/12/2025(in Vietnamese;12/9/2025in English) instead of46000; a date with a time shows09/12/2025 14:30:00, a time14:30:00, a percentage12.5%, as in Excel. A date you type in that form (or as2025-12-09) is saved as a real date: the cell keeps its date format, and a General cell gets the short date format as in Excel. In Vietnamese03/04/2026is 3 April. An impossible date such as31/02/2026, anything typed into a Text cell, and anything starting with'stay text. Undo of a date edit brings the same date back.Internal (TASK-795): amba-office
numfmt::input—NumFormat::input_class(General / Text / DateTime / Percent / Number),NumFormat::edit_text(locale short date, short date + long time when the serial has a time, long time alone for a time format under one day,n%for percentages;Nonekeeps the raw number) andparse_input(locale-order or ISO dates with optional time,H:mm[:ss]with AM/PM or SA/CH,n%; workbook date system and the 1900 leap-year bug viaserial, returns the format a General cell takes:mm-dd-yy= built-in 14,<short date> h:mm,h:mm[:ss][ AM/PM],0%/0.00%).StyleTable::num_format/edit_text. Tile v1 gains cell flag bit 7 (CELL_EDIT, editor text as astr) additively, like TASK-753's fill; golden tile regenerated (the date cell carries15/03/2023).inputOfuses it.spreadsheet_edit_cellstakes an optionallocale(the viewer sends its language; defaulten):cell_specreads the input by the target cell's format class,input_ofgives undo'spreviousin the same locale form, and General cells that receive a date, time or percentage get their format through a separateset_cellsop withstyle.num_format. Tests: Rustnumfmt::input(3),cell_edit(+2), golden tile; VitestCanvasDateEdit.spec.ts(3).Changed: the spreadsheet formula bar edits like Excel and ONLYOFFICE (TASK-794). Click in the fx box to edit the selected cell there: select text with the mouse or Shift+arrows, ⌘A, copy, cut and paste, type with Telex or any input method; what you type shows in the cell at the same time, and typing in the cell shows in the bar. Enter saves and moves down, Tab moves right, Esc cancels, ⌥Enter adds a line break; ✓ and ✗ appear left of fx while you edit, and clicking the grid saves. The box takes the whole width; the chevron at its right opens it to five wrapped lines, and its bottom edge drags taller. Type an address such as B12 in the Name box and press Enter to go there. Files you cannot edit (not .xlsx/.xlsm, or while the agent writes them) keep a bar you can select and copy from.
Internal (TASK-794):
SpreadsheetFormulaBaris a<textarea>with propseditable,editing,navigable(all default false, so the DOM grid keeps a read-only bar) and emitsbegin,input,key(Enter/Tab while editing, Esc),pointer,blur,commit,cancel,goto; the canvas viewer routes them touseCanvasEditor(onedraftfor both views).useCanvasEditor.open(initial?, from: "cell" | "bar")recordsorigin, anduseCanvasEditorViewleaves the focus in the bar for"bar";onEditorBlur(e)keeps the session when focus moves to another[data-edit-session]element (cell editor ↔ bar, ✓/✗). Vitest +11 (CanvasFormulaBar.spec.ts10,CanvasPlaces.spec.tsreachability +1).Added: resize columns and rows in the spreadsheet grid, as in Excel (TASK-793). Point at the border between two column headers (or below a row number): the cursor changes; drag it and a guide line shows the new size, "Width: 8.43 (64 pixels)" or "Height: 15.00 (20 pixels)"; release and the size is saved to the file. Double-click the border to fit the column to its widest text or the row to its content. With whole columns or rows selected, all of them get the size. Dragging to zero hides the column or row; dragging just right of (below) the border of a hidden one shows it again. ⌘Z / Ctrl+Z undoes a resize like a cell edit. Not available while the agent is writing the file.
Internal (TASK-793): command
spreadsheet_resize(projectId, filePath, sheetName, cols: [{col, width}], rows: [{row, height | null}], baseVersion) -> {fileVersion, revisionId, cols: [{…, previous}], rows: [{…, previous, shown}]}(src-tauri/src/office/resize.rs, errors asspreadsheet_edit_cells): the same engine-A owner flow as cell edits (busy refusal, version check under the file lock, gate, owner revision, atomic write, view cache invalidated). amba-office: new opSetRowHeight {sheet, rows: {row: pt | null}}(owner-only, not in the agents' op table;nullclearsht/customHeightso the row is sized automatically, 0 setshidden), andset_col_widthnow setshidden="1"at width 0 and clears it at any other width, as Excel's Column Width does. Frontend:canvas/resize.ts(boundary hit-test with a 3 px grip, Excel's px ↔ width ruletrunc((px − 5)/7 × 100 + 0.5)/100→ storedtrunc((chars × 7 + 5)/7 × 256)/256, points = px × 0.75, whole-column/row targets, AutoFit = widest displayed line with glyphs snapped to whole pixels + 5 px,withSizeslayout overlay),useCanvasResize.ts(capture-phase pointer handlers on the scroller, guide viaCanvasResizeGuide.vue),useCanvasGrid.previewSizes/textWidth,MeasureCache.excelWidth;useCanvasEditorgainssend(the shared owner-write path) andrecord, and resize steps (EditStep.resize) join its undo/redo stack. Tests: Rustoffice::resize(8); Vitestresize.spec.ts(12),CanvasResize.spec.ts(7).Changed: a workbook the agent is writing shows "Chỉ xem" for as long as it writes (TASK-792). The grid no longer lets you start typing in a cell whose save the agent's write would refuse; it becomes editable again a few seconds after the agent's run ends.
Internal (TASK-792):
useFileBusy(asksspreadsheetFileBusyon open and on path change;file-busy-changedwith a matchingprojectRelativePathonly triggers a new question, so same-named files of two projects never cross; latest answer wins; an error never locks) feedsuseCanvasEditor's newfileBusyoption;readOnly= busy or the BUSY_MS window after a refused save. Vitest +4.Fixed: Word page view: selecting text on a line with a footnote mark, superscript or raised text (TASK-791). Such a line used to split in two for selection, so a drag stopped short or picked the wrong words; it now selects like any other line. New: double-click selects a word, triple-click its paragraph, as in Word.
Internal (TASK-791):
pageTextgroups glyph runs into lines by vertical overlap (half the smaller box) around the line's tallest run instead of a baseline tolerance; the line spans all its runs.charAt,wordAt(letters, digits, marks, an apostrophe inside a word),paragraphAt(lines of the same fragment paragraph on the page);useWordSelection.selectAt;WordPagesViewercounts clicks itself (500 ms, 4 px; pointer events carry no click count in every WebView). Vitest +3.Fixed: a file the agent is working on stays read-only for you until its turn ends (TASK-790). The canvas grid used to refuse your cell edit only during the few milliseconds of the agent's actual write, so while the agent was thinking between steps you could still edit the file it was about to overwrite. Now, from the agent's first write to a file until a few seconds after its turn ends, your edit there is refused with "Chỉ xem" and the cell goes back to its value; the grid reloads with the agent's changes.
Internal (TASK-790):
runtime::doc_ops::claims— a run claims every project file it writes (the target of each write tool before it runs,office_scriptoutputs, and every recorded changed file) until the run returns (RunClaimsguard inrun_scoped, any exit path) plus a 3 s grace; a claim not refreshed by a write for 15 min lapses.is_file_locked(the owner'sspreadsheet_edit_cellsbusy probe) checks the claims as well as the Doc-Ops write mutex. Dry runs claim nothing. Commandspreadsheet_file_busy(projectId, filePath) -> bool(frontendspreadsheetFileBusy) probes it; eventfile-busy-changed {projectRelativePath?, canonicalPath, busy}(FileBusyChange,FILE_BUSY_CHANGED_EVENT) fires when a path's first claim starts and once its last claim has lapsed after the grace (a hook set inlib.rs, soclaims.rsstays free of Tauri).Fixed: the gridline beside a column ONLYOFFICE auto-fitted no longer disappears (TASK-789). On a Retina screen, text in a column sized to fit it (Times New Roman in particular) was taken as overflowing by half a pixel or so and hid the gridline next to it; the grid now measures as ONLYOFFICE Desktop does on the same screen.
Internal (TASK-789): on screens with
devicePixelRatio> 1 the canvas grid snaps glyph advances to device pixels (cellFit.snap(advance, dpr),MeasureCache.setDpr) and fits text in the column's stored width at device precision,round(chars × 7 × dpr) / dpr(fitCellWidth,SheetGeometry.colChars), instead of Excel's truncated pixel width. Evidence: the Founder's ONLYOFFICE auto-fit widths hold their longest text exactly by this rule (268.5 vs 268.52 px, 57.5 vs 57.45 px). At 1x nothing changes (x2t's print rule of TASK-788). Vitest +3.Fixed: canvas spreadsheet grid, cell text as wide as in ONLYOFFICE (TASK-788, Founder round 4). Numbers and dates (also "Tháng Giêng" long-month dates) in Calibri, Arial, Times New Roman and Cambria now show at the same column width as in ONLYOFFICE and Excel instead of
###until the column is widened,###fills the cell with the same number of#, and text sits where ONLYOFFICE puts it: left, right, centred and overflowing text, so Times New Roman values no longer spill a little into the next cell.Internal (TASK-788): new
src/components/spreadsheet/canvas/cellFit.tsholds the grid's horizontal cell rules measured against ONLYOFFICE: 2 px padding (max(ceil(MDW/4), 1), was 3 px) plus the 1 px gridline, so a W px cell holds W − 5 px; glyph advances snapped to whole pixels as ONLYOFFICE/Excel lay cell text out (seven Calibri 11 digits: 49 px, not 52); centred text on a whole pixel.MeasureCachetakessnap(on for the grid, off for the cell editor) andruns(), sopaintCellsdraws each glyph within 0.5 px of its snapped position; the cell editor's padding follows (2 px). Newpnpm run fidelity:grid-fit(scripts/office-fidelity/grid-fit.mjs, synthetic xlsx viaxlsx-mini.mjs, x2t, @napi-rs/canvas):###decisions on 8,154 cells (9 font/size variants × 6 values × widths 20–170 px) 218 → 0 mismatches,#counts equal on 2,967/2,967###cells, pen x 5.94 → 0.00 px max error on 99 placed texts. Tests:cellFit.spec.ts(18),paint.spec.tsandeditorLayout.spec.tsupdated for the 2 px padding.Fixed: right-click while typing shows the system's Cut / Copy / Paste menu (TASK-787). In the desktop app, right-clicking inside a text field (the spreadsheet cell editor, chat input, search boxes) now opens the macOS text menu instead of nothing, and right-clicking selected text in a Markdown, CSV or Word preview opens AMBA's Copy / Ask / Quote menu again; elsewhere the WebView menu stays hidden.
Internal (TASK-787):
src/lib/nativeContextMenu.ts(installContextMenuGuard,keepsNativeMenu) replaces the blanket capture-phasecontextmenupreventDefaultinmain.ts(since 0.5.0): it now runs in the bubble phase onwindow, after every element handler, and exempts text areas, text-like inputs andcontenteditable. This also fixes the preview's DOM-selection menu (TASK-162, markdown/CSV/old Word view), which never opened in the desktop app because the guard had already prevented the event. Vitest +4.Fixed: Word page view: a page with footnotes ends at a continuous section break (TASK-786). A short section with a footnote followed by a continuous section break used to share its page with the next section; the next section now starts on a new page, as ONLYOFFICE lays it out, so such a file shows the same number of pages.
Internal (TASK-786, amba-office
docx_layout):start_sectiontreats a page that carries footnotes as closed for a continuous section (new page), and columns are not balanced when the section's own page ends with footnotes (dry run intry_balance). Pages elsewhere (no footnotes on the page with the break) are unchanged;pnpm run fidelity:docxunchanged (12/13, 19/32, 795/1025). Tests +2 indocx_layout::tests::columns.Added: the agent reads the Word paragraph or page you point at (TASK-779). A reference such as
hop_dong.docx#para=12orhop_dong.docx#p3now gives the agent the text of body paragraph 12 or of page 3, numbered exactly as the Word page view shows them, and the reference chip's hover shows that text; a paragraph or page past the end of the document is reported as out of range.Internal (TASK-779):
readtakespartpara=N,pNandpN-Mon.docx/.docm/.dotx/.dotm(from the page viewer's layout throughruntime::docx_places; pages page with the PDFPagescursor,page_range,total_pages);refs::resolve::checkchecks Word pages and paragraphs against the layout (out_of_range, text preview); the layout cache is one per process (projection_docx::shared_cache) shared by the viewer and the agent;project_ref_resolveruns on the blocking pool.Added: Word files as true pages (TASK-778, Experimental Lab → Xem Word đúng trang). With the switch on, a project's
.docxopens as real pages laid out by AMBA itself, stacked on a grey background as in Word, with the same page breaks on every machine: Trang 3/12 in the toolbar, zoom to fit the width or 50–200 % (⌘+ / ⌘− / ⌘0), a side panel with page thumbnails and the document's headings, find (⌘F) with every hit highlighted and next/previous, drag to select text and ⌘C to copy, and right-click for Hỏi trợ lý về chỗ này / Trích dẫn vào Chat with a 📍 link to the paragraph or the selected words. 📍 links open at the heading (#h=Kết luận), the words (#"…"), the page (#p3) or a paragraph (new:#para=12) and highlight it. When the file changes on disk the pages are redrawn without going blank. A file AMBA cannot lay out opens in the usual view; old.docfiles keep the text view.Internal (TASK-778, M122 W1b): commands
docx_page_layout(projectId, relativePath) -> {fileVersion, pageCount, pages: [{width, height, label}], headings: [{paragraph, level, label, text, page, y}], fragments: [{paragraph, page, rect, start, end, text}], paragraphCount, truncated}anddocx_page(projectId, relativePath, page, fileVersion) -> AMBD bytes(raw IPC response; typed errors{kind: conflict|invalid|failed},conflictwithcurrentVersionwhen the file changed since the layout) insrc-tauri/src/runtime/projection_docx.rs: layout with the bundled fonts on the blocking pool, an LRU of 4 laid-out documents keyed by path andfileVersion(AppState::docx_view_cache), the spreadsheet commands' path confinement,.docx/.docm/.dotx/.dotmonly, 200 MB cap. Lab settingviewer.wordCanvas(lab_set_word_canvas,viewer_word_canvas,wordCanvasin the lab state). Reference grammar:RefTarget::Paragraph/{kind: "paragraph", paragraph}written#para=N(1-based, Word body paragraphs incl. table cells),#p3now valid on Word files (project_ref_resolve), shared cases intests/fixtures/refs.json. UI:WordPagesViewer.vue+src/components/word/(useWordPageslayout/page cache with double-buffered version swaps,pageTextlines and character boxes from glyph runs,wordDocfind and targets,useWordFind,useWordSelection,WordPageCanvas,WordPagesSidebar). docx-preview stays as the fallback. Tests: Rustprojection_docx(3),refs(+1),lab(+1); VitestWordPagesViewer.spec.ts(13),wordDoc.spec.ts(4),WordPagesReachability.spec.ts(3),ExperimentalLab.spec.ts(+1).Internal (TASK-777, M122 W1b, amba-office): the Word page layout engine
docx_layoutnow lays out text columns (balanced before a continuous section, separator line, column breaks), footnotes at the page bottom (continued on the next page) and endnotes, floating pictures and text boxes with square and top-and-bottom wrapping (or in front of / behind the text), nested tables, pictures inside a line of text, and realPAGE/NUMPAGESvalues in the body; JPEG pictures are converted to PNG so the PDF and PNG outputs draw them (imagecrate, already in the app, now also a crate dependency). No public API change. Newpnpm run fidelity:docx(scripts/office-fidelity/docx.mjs+ exampledocx_lines): page counts and lines per page against ONLYOFFICE'sx2ton the synthetic and non-private corpus docx — pages equal 12/13 documents, lines per page equal 19/32 pages.Changed: Arial, Times New Roman and Courier New text now has the right width without Microsoft Office (TASK-772). AMBA ships Liberation Sans, Serif and Mono, free fonts with the same letter widths as Arial, Times New Roman and Courier New, so spreadsheets in those fonts wrap and overflow where Excel does, with real bold and italic, and Vietnamese is drawn entirely in one font. If the Office font is installed, AMBA uses it.
Internal (TASK-772, amba-office): Liberation Sans/Serif/Mono 2.1.5 (official release, SIL OFL 1.1 with Reserved Font Names, unmodified, SHA-256 in
src-tauri/crates/amba-office/fonts/README.md) behind the featurebundled-fonts;FontLibrary::bundledappends them as faces 10–21 (earlier ids unchanged), so Arial/Helvetica, Times New Roman/Times and Courier New/Courier resolve to them. Wrapped text in these fonts is measured with them for xlsx row heights (the golden tile's Arial 9 wrapped row: 2 → 3 lines); row heights themselves keep Excel's Calibri table (the Office fonts'VDMXmakes the win-metric rule unreliable for them). App:bundledFonts.{css,ts}add the three families after their Office names in the canvas grid, DOM grid and cell editor font chains.pnpm run fidelity:textnow also covers Arial, Times New Roman and Courier New: identical line breaks 100 %, mean width error 0.05 / 0.08 / 0.02 pt against ONLYOFFICE with the Office fonts (all families: 97.8 %, 0.084 pt). Size: +4.4 MB of fonts in the Rust binary and in the WebView assets (cratefonts/now 7.1 MB).Internal (TASK-773, amba-office): documentation bar D2 —
#,cargo doc -D warningsclean, examplesread_workbook,edit_with_gate,render_tile,number_format_vi, and a Tests column in the crate README's feature matrix. Doc-only; no behaviour change.Internal (TASK-774, amba-office D3): CI as for a public crate, inside the crate so it travels with the export —
src-tauri/crates/amba-office/.github/workflows/ci.yml(fmt, Clippy-D warningsdefault/no-default/all features, tests on Linux/macOS/Windows, rustdoc-D warningsallowed to fail until D2, MSRV job,cargo-denywithdeny.toml,cargo-semver-checksfrom 0.1, weekly/manual fuzzing; nested, so it never runs in this repository),rust-version = "1.88"(floor from the lockedtime0.3.55), cargo-fuzz targetspackage,xml_parts,numfmtincrates/amba-office/fuzz/(own workspace, excluded fromsrc-tauri/) with a generated 24 KB seed corpus thattests/fuzz_seeds.rsreplays on stable inpnpm run gate. Newpnpm run office:ci(scripts/office-ci.mjs) runs the local subset: rustfmt and rustdoc advisory for now, Clippy both feature sets, a--no-default-featurestest build, the seed replay,cargo-denywhen installed.Internal (TASK-775, M122 W1a, amba-office):
docx_layout::layout_docxlays a Word document out into pages, each a display list (styles with inheritance and theme fonts, paragraphs, multi-level and legal numbering, sections, page breaks, keep-with-next and widow/orphan control, headers and footers with page numbers, tables with merges, borders, shading, repeated header rows and rows split across pages, inline pictures), plus the page of every paragraph and a heading map. Examplecargo run -p amba-office --example docx_pages -- IN.docxwrites a PDF and PNGs. Not wired into the Word viewer yet (still docx-preview).Changed: Calibri and Cambria text in spreadsheets now has the right width (TASK-770). AMBA ships Carlito and Cambria's twin Caladea, free fonts with exactly the same letter widths as Calibri and Cambria, so on a computer without Microsoft Office a sheet's text is as wide as in Excel: it wraps and overflows where Excel does, numbers that fit in Excel fit here too (they were drawn 10% smaller or squeezed before), and bold and italic are real bold and italic. Vietnamese in Calibri is drawn entirely with these fonts; in Cambria some Vietnamese letters (ơ, ư, ạ, ệ …) still come from another font. If Calibri or Cambria is installed, AMBA uses it. Rows with large Calibri text get Excel's height, and rows with wrapped text get the number of lines Excel shows.
Internal (TASK-770, amba-office): Carlito and Caladea (SIL OFL 1.1, unmodified,
src-tauri/crates/amba-office/fonts/with licences and README) behind the default cargo featurebundled-fonts;FontLibrary::bundledloads them (faces 2–9), so the alias table gives real bold and italic.RunStyle::kerning(default off, as in Word). Row heights for Calibri/Cambria up to 22 pt from the fonts' win metrics (line_height_pt_for; reproduces Excel's table, Excel's measured table kept above 22 pt), wrapped Calibri/Cambria text measured with the text engine. App:src/components/spreadsheet/bundledFonts.{css,ts}serves the same files as@font-face"Carlito"/"Caladea" (Vite emits them as hashed assets; one copy in the repository), named after "Calibri"/"Cambria" in both grids' font chains, so an installed Office font wins; the canvas grid waits up to 0.8 s for Carlito before its first paint and repaints once when a face arrives; the "Calibri drawn 10% smaller" and number-squeeze workarounds are gone. Harnesses:pnpm run fidelitymean 0.963 → 0.972 (vietnamese 0.898 → 0.950); newpnpm run fidelity:text(docx paragraphs vs ONLYOFFICE x2t): identical line breaks 88.9 % → 94.4 %, mean width error 0.67 → 0.15 pt after turning kerning off. Size: +3.0 MB of fonts in the Rust binary and +3.0 MB of WebView assets (about 1.0 MB brotli-compressed).Internal (TASK-768): the office engine crate
amba-officecan write its display lists as PDF (display::pdf::render_pdf): shapes, clips, transforms, opacity, cropped PNG images, and real text in embedded font subsets whose Vietnamese copies out as typed. Not wired into the app yet.lopdfandallsortsmoved to[workspace.dependencies](no new crates).Fixed: canvas spreadsheet grid, cell editing, round 2 (TASK-771 Founder retest). A long text now widens the editor to the grid's visible edge, then wraps and grows down to the bottom of the view and scrolls inside (a cell with wrap text keeps its width and grows down), also in the macOS app. A saved value (and undo/redo) stays painted while the file is written and reloaded: the old value no longer flashes. Scrolling with the wheel while editing keeps the edit: the editor moves with its cell, hides while the cell is out of view and keeps what you typed, the caret and the IME; typing scrolls the cell back. Scrolling never saves or cancels.
Internal (TASK-771):
editorRecttakes anEditorDom(the textarea's own one-linescrollWidthand wrappedscrollHeight, measured in a post-flush watcher with its inline style restored);cellOverlay.ts(optimistic cells over the shown tiles,useCanvasGrid.preview(), settled by the write's version and dropped by the next load that holds it, or at once on conflict/busy/failure); the editor box is the cell's unclipped box, clipped to its pane withclip-pathand kept mounted; the scroll lock is released by the wheel and pointer and times out after 1.5 s without a keyup.Internal (TASK-769): canvas side of
amba-officedisplay lists insrc/components/office/display/—decodeDisplayList(AMBDv1/v2 withDataView, refuses everything the Rust decoder refuses with a typedAmbdError),paintDisplayList(ctx, list, {scale, dpr, origin, viewport, resolveFont, createLayer})(clips, transforms, opacity groups through offscreen layers with the raster fallback past 8, dashes, crop images decoded once viacreateImageBitmap, glyph runs asfillTextin the CSS font withletterSpacing),hitTest(same asDisplayList::hit) andcssFont. Parity fixturestests/fixtures/display_v{1,2}.jsonwritten by the crate testdisplay::tests::parity. No viewer uses it yet.Fixed: canvas spreadsheet grid, cell editing (TASK-755 Founder retest). After typing, an arrow key saves and moves exactly one cell; after F2, a double-click or a click in the editor, Left/Right move the caret, Home/End go to the line's ends and Up/Down move between lines without leaving the cell — no arrow key scrolls the sheet while a cell is being edited, and nothing happens while Telex/VNI is still composing a word. Saving (Enter) and ⌘Z/⇧⌘Z no longer flicker: the sheet keeps showing until the updated cells are ready, a file that did not really change is not redrawn, and the "Đã hoàn tác" notice floats over the grid instead of pushing it down. Long text in the editor widens to the visible edge (or stays at the cell's width when the cell wraps text), then wraps and grows down to the bottom of the view and scrolls; ⌥+Enter / Alt+Enter adds a line.
Internal (TASK-755 retest):
useCanvasGrid.load()double-buffers same-sheet reloads (replacement tile client filled for the viewport before one swap; no-op when the layout'sfileVersionis unchanged; host watch keyed by strings, no longer byprops.dataidentity);editorCaret.ts(edit-mode caret keys),useCanvasEditorView.ts(editor box/style moved out of the viewer, DOM text measuring, input handled while composing, scroll lock for caret keys),editorRecttakeswrapTextand returnsscrolls; canvas stageoverflow: clip. Tests:editorCaret.spec.ts(5),editorLayout.spec.ts(7),CanvasCellEdit.spec.ts(+5).Fixed (TASK-767): the right-click menu of the canvas spreadsheet grid now closes when you click another cell (it closed only on an item, another right-click or Esc). Sao chép liên kết tới chỗ này now copies the chat link (
BCTC.xlsx,<…>around paths with spaces) instead of the barepath#place, so pasting it into the chat and sending shows a 📍 chip in your message; clicking a 📍 chip in your own message now opens the file at that place, as in the agent's replies. Web links stay web links.Added: right-click menu on the canvas spreadsheet grid (TASK-765, Experimental Lab → Bảng tính canvas). Right-click a cell (outside the selection it selects that cell first, like Excel), a row number or a column letter (selects the whole row or column), or press Shift+F10 / the menu key: the menu offers Hỏi trợ lý về chỗ này, Trích dẫn vào Chat and Sao chép liên kết tới chỗ này for the selected range (a 📍 chip such as
desk/BCTC.xlsx#'Bảng 1'!B12:D20plus the values as shown), then the grid's own Sao chép, Chỉ sao chép giá trị (numbers without their format), Tìm and Sửa ô. Very large selections quote only the first part (10,000 cells / 256 KB) and say so. While a cell is being edited, right-click keeps the normal text menu. The selected range is also reported to the preview as the current place, so a copied ref opens the same range again.Internal (TASK-765, amba-office):
location::Location(sheet + A1 range, page, paragraph span, slide + shape),SheetLayout::cell_at/SheetGrid::hitwith the same geometry as the canvas grid (shared case tabletests/fixtures/sheet_hit_cases.json), and display-list hit regions (DisplayListBuilder::region,DisplayList::hit;AMBDv2 only when regions exist, v1 unchanged).Changed: spreadsheet rows and columns sized like Excel (TASK-766). In the spreadsheet viewer, rows with larger text grow to fit it as Excel does (a 14 pt title gets an 18.75 pt row, so Vietnamese capitals keep the marks above them), rows with wrapped text and no saved height grow to show every line, and default columns are 64 px wide like Excel's (they were 59 px in the classic grid). Date formats in Vietnamese show January as "Tháng Giêng", as Excel does.
Internal (TASK-766):
spreadsheet_sheet_layoutaddsdefaultColWidthPx(the crate's pixel value; the canvas grid uses it instead of a hard-coded 64 px) anddefaultColWidthis now a stored width (9.140625 for Excel's default column instead of 8.43). Row heights in the layout and tiles include Excel's automatic heights. Fidelity harness (TASK-754, ONLYOFFICE 10 + Chrome): vietnamese 0.890 → 0.898, fonts 0.967 → 0.989, numfmt-vi 0.980 → 0.984 (18/18 value cells match), sizes 0.938 unchanged.Added: edit cells in the canvas spreadsheet grid (TASK-755, Experimental Lab → Bảng tính canvas). In a project's
.xlsx/.xlsm, double-click a cell, press Enter or F2, or just start typing: an editor opens exactly over the cell, in the cell's font, colours and alignment, and widens over the next columns as you type (to the left for right-aligned cells), then wraps. A value starting with=is a formula;'keeps text as typed. Enter, Tab and the arrow keys save and move, as in Excel: after typing, arrows save and move; after F2 or a double-click, Left/Right move the caret (F2 switches). Esc cancels, Delete clears the cell. Each save is written into the file itself (styles kept, dependent formulas recalculated) and into its change history as your edit, so the agent's file history shows it and it can be rolled back. ⌘Z / Ctrl+Z undoes your edits of this session, ⇧⌘Z / Ctrl+Y redoes. If the file changed on disk since it was opened, nothing is overwritten: "File đã đổi trên đĩa — đã tải lại" and the sheet reloads. While an agent is writing the file, the grid is read-only for a moment (Chỉ xem, [?] explains). Dragging over cells or row/column headers now selects cells only, never text, and keeps scrolling past the edge.Internal (TASK-755, ADR-092): command
spreadsheet_edit_cells(projectId, filePath, sheetName, edits: [{row, col, value}], baseVersion) -> {fileVersion, revisionId, cells: [{row, col, value, previous}], recalculated}(src-tauri/src/office/cell_edit.rs; 0-based sheet coordinates as tiles; ≤ 1,000 cells) — inputs become oneset_cellsbatch through the engine-A file flow (newoffice::edit::edit_in_place_checked: the version check runs under the file lock right before the read; confinement, gate, recalc, Doc-Ops revision, atomic write); typed errors{kind: conflict|busy|invalid|failed}.fileVersion=<mtime ns>:<size>, also added to thespreadsheet_sheet_layoutresponse (additive). Owner revisions: authorowner, summaryowner_edit: …;files {op:'history'}lists them (file_history::owner_edits).doc_ops::is_file_locked(busy probe),ViewCache::invalidate. UI:useCanvasEditor.ts(modes, undo/redo of the session's own edits as{before, after}inputs, conflict/busy handling),editorLayout.ts(Excel-like editor rect), textarea overlay, drag by cells/rows/columns with auto-scroll,user-select: none;CanvasSpreadsheetViewernow emitscellEdited(same payload as the DOM grid; row = 0-based sheet row). APIeditSpreadsheetCells,SpreadsheetSheetLayout.fileVersion. 8 strings × 4 + Lab help text. Mock:spreadsheet_edit_cells, flagscanvas-edit-busy,canvas-edit-conflict. Tests: Rustoffice::cell_edit(8),file_history(+1); VitestCanvasCellEdit.spec.ts(11),editorLayout.spec.ts(4).Internal (TASK-764, AMBA host ports): the host side of the office viewer context menu.
src/domain/viewerPorts.tsdefinesViewerMenuItem,ViewerContextMenuRequest(x,y,place: RefTarget,text?,textTruncated?,items?) andDocumentQuotePayload.DeliverablePreviewlistens forplaceSelected/requestContextMenuon the canvas grid (preview/useViewerHostPorts.ts; refs only viaformatRefon the file's project path) and keeps the DOM text-selection menu (TASK-162) for other viewers.DocumentContextMenugains a place mode: Hỏi trợ lý về chỗ này, Trích dẫn vào Chat, Sao chép liên kết tới chỗ này, then the viewer's items (run after the menu closes; disabled items stay disabled), menu height clamped to its item count, Esc and arrow keys.quoteToChat/askAgentcarryref?andtextTruncated?; the composer getsfile:(a 📍 chip,refLinkTextmirrors the runtime'slink_text) followed by the values (a ```tsv block for grid values) and a note when the viewer cut the selection. Visible once the canvas grid emits these events (TASK-765). Tests:ViewerHostPorts.spec.ts(6, studio entry path with a fake viewer),DocumentContextMenu.spec.ts(+9),documentQuote.spec.ts(4),refCite.spec.ts(+1).Added: Experimental Lab: canvas spreadsheet grid (TASK-753). Settings → Nâng cao → Thử nghiệm → Bảng tính canvas opens a project's
.xlsxin a new grid drawn on canvas: the whole sheet scrolls (no pages), frozen rows and columns stay put, merged cells span their rows and columns, long text runs into empty neighbours as in Excel, wrapped text, rotated text,####for numbers that do not fit, borders, fills and fonts from the file, sharp on Retina screens. Click, drag, Shift+click, the arrow keys (Ctrl/⌘+arrow jumps to the edge of the data), Tab, Enter, Home/End, PgUp/PgDn and ⌘C (copies the selection as tab-separated text) work; the formula bar and sheet tabs are the usual ones. Tìm ô jumps from match to match instead of filtering rows. 📍 places open highlighted at the real sheet row. CSV,.xlsand files outside a project keep the usual grid; editing cells comes later (TASK-755).Internal (TASK-753, ADR-092 note): crate
amba-office:xlsx::view::sheet_layout(SheetLayout: content extent incl. merges and the frozen edge, default sizes, rows/columns that differ as runs, frozen pane, gridlines, merges) andViewSheet::rows_hidden_by_default; tile v1 gains cell flag bit 6, a*xfill (UTF-16 position + code point, additive: the golden tile is unchanged). App: commandspreadsheet_sheet_layout(runtime/projection_tile.rs), lab settingviewer.canvasGrid(lab_set_canvas_grid,viewer_canvas_grid= switch on and lab shown,canvasGridinlab_get_state). UI:CanvasSpreadsheetViewer.vue(same props/emits asSpreadsheetViewer+fileVersion) andcomponents/spreadsheet/canvas/—axis.ts(prefix sums over sparse runs),geometry.ts(regions for frozen panes, hit-testing, overlay boxes, reveal),cellSource.ts(row index per tile),textLayout.ts(fonts with a Vietnamese-capable fallback chain, Calibri drawn 10% smaller without Calibri/Carlito, measure cache, wrap, overflow rule,####,*x),paintCells.ts/paintGrid.ts(regions, gridlines, fills, merges, text, borders, rotation, headers),useCanvasGrid.ts(layout, tile client, rAF paint),useCanvasSelection.ts,useCanvasTarget.ts(ADR-089 on real sheet rows),useCanvasFind.ts,canvasGridSetting.ts,tileEncoder.ts(format v1 in TS for tests and the mock).tileClienttakes several rectangles per viewport, loads single tiles on demand, notifies on arrival and drops answers sent beforeclear(). Mock:?mock=canvas-grid(canvas on, layouts and tiles of the mock workbook plus a 100,000 × 50 sheet). Paint cost (Chromium in the desktop app's browser pane, 914 × 669 grid at DPR 2, synthetic 100k × 50 sheet, 150 scroll steps of 60 px): median 2.6 ms, p95 7.1 ms, max 15.4 ms per frame; repaint without scrolling 0.8 ms. Tests: Rustlayout(1),projection_tile(+layout),tile_codec(+1),lab(+1); Vitestgeometry.spec.ts(7),paint.spec.ts(12),CanvasSpreadsheetViewer.spec.ts(7),CanvasPlaces.spec.ts(4, studio entry path),tileCodec.spec.ts(+1),ExperimentalLab.spec.ts(+1).Internal (TASK-761, M122 S1):
amba_office::text, one text layout engine for Word pages, slide text and wrapped cells (no app wiring yet).FontLibrary(fontdb via cosmic-text; bundled Noto Sans + Fira Mono, opt-in system fonts, Office alias table Calibri→Carlito, Cambria→Caladea, Arial/Times/Courier→Liberation, fallback Noto Sans, per-grapheme glyph fallback), NFC input, rustybuzz shaping, UAX #14 breaks, indents/hanging, left/center/right/justify/distributed, line spacing single/multiple/exact/at-least, tabs (left/center/right/decimal, dot/hyphen/underscore leaders, implicit hanging stop), super/subscript, letter spacing, underline/strike/highlight; output lines ofGlyphSpans with glyph ids and positions pluscss_font()for canvas;hit_test/caret_rect;render_png(tiny-skia).cosmic-text,tiny-skia,rustybuzz,unicode-linebreak,unicode-segmentationmove to[workspace.dependencies](already in the tree; Cargo.lock only gains edges). Examplecargo run -p amba-office --example text_layout.Changed: Excel files in the preview look like Excel: fonts, fills, borders, number formats, column widths (TASK-752). A project's
.xlsxnow shows each cell as Excel does: its font, bold/italic, text and fill colours, borders, alignment and wrapping, column widths and row heights, and numbers, dates and percentages in the file's own number format with Vietnamese separators when the app is in Vietnamese (1.234.567,15/03/2023).[Red]negatives turn red and simple conditional formats (greater than, between, formulas) colour their cells. Merged cells show their text once, without inner lines. Cells sit on white paper, like Excel, also in the dark theme. The grid also reacts at once to arrow keys and scrolling: moving the selection no longer redraws the table (about 14 ms → under 2 ms per key on a 40-row page in the browser pane)..xls, CSV and TSV previews look as before.Internal (TASK-752, ADR-092): crate
amba-office:ViewWorkbook::style_table(locale)(cached per locale), the streaming sheet parser keeps the top-level<conditionalFormatting>blocks (ViewSheet::conditional_formats,CellLookupforViewSheet),xlsx::paint::paint_cell(text + effective style with matching dxfs),xlsx::tile_codec(versioned little-endian tile: header, deduplicated UTF-8 strings, 44-byte resolved style records, cells with display text, formula,[Red]colour and general-alignment flags, merges, row heights, column widths, hidden bits;encode_tile/decode_tile, golden fixturecrates/amba-office/tests/fixtures/tile_v1.bin). App:query_spreadsheet_viewporttakes optionallocaleandsheetRowStart; xlsx cells carryformattedfrom the number-format engine (the interim date text is gone: date values are serial numbers again),color,align,cfStyle, and the response astylesmap of CSS-ready paint data (runtime/projection_xlsx_paint.rs). New commandspreadsheet_tile(runtime/projection_tile.rs, rawtauri::ipc::Response, ≤ 262,144 cells). UI:DeliverablePreviewpassesprojectId;useSheetStyleWindow(viewport of the page's sheet rows → per-cell text and class, widths, heights, merges; one generated<style>per grid),sheetStyles.ts(CSS, Excel widthpx = trunc(((256w + trunc(128/7))/256)·7), heightpt·96/72),usePageCells(render data per page),SpreadsheetTable.vue(cells; selection, range and ref highlight are overlay divs;td.ref-targetstays as a marker),tileCodec.ts(DataView decoder),tileClient.ts(tiles of 200 × 30, one-tile prefetch per side, LRU 48, stale queued requests dropped and stale results discarded; for TASK-753). The never-usedremoteRowspath of the viewer is gone. Mock:spreadsheet_tile(empty tile), styled mock viewport. Bench (release build on the dev Mac): style table 0.26 ms; 200 × 30 tile of the 100k-row bench workbook (1,867 cells) encodes in 0.54–0.74 ms, 51.8 KB; decode 0.27 ms in Vitest. Tests: cratetile_codec(4 + 1 ignored bench), appprojection_xlsx(+1),projection_tile(1); VitesttileCodec.spec.ts(2 + 1 bench),tileClient.spec.ts(3),sheetStyles.spec.ts(4),SpreadsheetViewer.spec.ts(styled window, perf smoke: 50 ArrowDown with 0 table mutations).Changed: Excel files open faster in the preview, with formulas, dates and errors shown (TASK-750). A project's
.xlsxis now read by AMBA's own reader and kept open while you page through it, so a 5 MB workbook shows its first rows in about 0.2 s and later pages do not read the file again (a file changed on disk is read again). Dates now show as dates (they were blank), error cells show their#DIV/0!-style value, and the formula bar shows a cell's formula..xls, CSV and TSV previews are unchanged.Internal (TASK-750, ADR-092):
amba_office::xlsx::view—ViewWorkbook::open/from_bytes(sheet list with hidden/veryHidden, active tab, 1904 flag, shared strings flattened,numFmtIdper style and custom codes), lazysheet()/sheet_at()parsed by a streaming quick-xml pass into a sparse row-major store;ViewSheetexposes value, cached result, formula (shared groups expanded on characters, TASK-747), style index, merges, column widths, row heights, hidden rows/columns, frozen pane, dimension/used/value ranges, andtile(rows, cols). App:runtime/view_cache.rs(LRU of 8 keyed by path, mtime, size, inAppState),runtime/projection_xlsx.rs(xlsx viewport; legacy formats keep calamine), command runs inspawn_blocking. Viewport response gains optionalrowNumbers,originRow/Col,sheets,merges,colWidths,rowHeights,defaultColWidth/RowHeight,hiddenRows/Cols,frozen,date1904,showGridLines, and per cellstyleId,formatted,formula. quick-xml moved to[workspace.dependencies](same version, no new build). Tests: cratexlsx::view(12 + 1 ignored release bench: 100k × 10, 5.79 MB, first tile 196 ms), appprojection_xlsx(4, incl. parity with the calamine viewport on a synthetic corpus),view_cache(1).Added: long chats keep their earlier decisions: "Thu gọn phiên" (session memo) (TASK-748). When a chat grows long, AMBA writes its earlier turns into a short memo (decisions you confirmed, key figures with their
📍sources, files made, open items, the task in progress) and the agent gets the memo instead of those turns, with the newest turns word for word. Before, older turns were cut to their first 140 characters and the cut moved every turn. It happens on its own when the history passes its budget or the context meter reaches about 70 %, and on demand with Thu gọn phiên next to the context meter in the agent's header ([?] explains it); the meter then shows what the next turn will send. The memo shows in Những gì agent biết (opened from the meter) and can be edited; the next turn uses your version.Internal (TASK-748, ADR-091):
runtime/session_memo/— memo per conversation in settingsession_memo:<conversation>(no migration; removed with the conversation or its cleared messages) with the boundary message id; history = memo message + messages after the boundary (stable prefix between compactions; never in the system prompt, 4094/4096 B unchanged); incremental fold (previous memo + newly folded messages, keep 6 / manual 2), bounded to 1,500 estimated tokens. Side callMemoModel/ProviderModelviaProviderRouter::resolve_for(…, "session_memo")in the project's egress and ledger scope; model: Anthropic →claude-haiku-5-5on the same profile, Bedrock →anthropic.claude-haiku-5-5, AMBA → the Haiku pair profile when present, BYOK OpenAI/Azure/Google/Vertex → the agent's own; retry on the agent's own model; 30 s timeout per call; failure → snippet summary +context_buildeventsession_memo/fallback. Triggers:runner/session_compact.rsbefore a turn (remainder > 6,000 tokens, or meter ≥ 70 % of the window); IPCsession_memo_compact(refused while a turn runs, one at a time),session_memo_get,session_memo_save. Meter:Source::Compactedafter a compaction newer than its request. UI:ChatHeaderBarbutton + HelpTip,SessionMemoSection.vueinProjectContextDialog; 15 strings + 7 error codes ×4; mock handlerssessionMemo.ts. Tests: Rustsession_memo::tests(8),execution::tests_session_memo(2, real runner); VitestSessionCompact.spec.ts(studio entry path).Fixed: writes to a workbook whose formulas hold Vietnamese text no longer fail (TASK-747). A sheet with shared formulas such as
IF(…,"TRÙNG","OK")(as Excel or ONLYOFFICE save them) made everyworkbookwrite to the file fail with "formulas of '…' cannot be read: fail to convert cell name", even writes to another sheet or to a copy. The independent reader (calamine 0.26) cannot expand a shared formula holding non-ASCII text; a reader failure that the original file already had is now a warning (GateReport.warnings) and only a failure the edit introduces blocks the write. Our own writer (fill,set_range) writes plain per-cell formulas, which read back fine. Tests:office::xlsx::tests_shared_unicode(5 + 1 ignored for the real workbook).Added: "Bổ sung sau" — what you do not have yet is kept for later, and never asked again (TASK-745). Each text question in a card has a Bổ sung sau button ([?] explains it); answering "để sau", "bổ sung sau", "chưa kiếm ra…" (or "later", "後で", "나중에") counts too. The agent leaves a "Bổ sung sau" placeholder and goes on; when a later turn would ask the same thing again (same cell, or mostly the same words), AMBA keeps it out of the card. In Cân bằng and Tự chạy, what only you have waits this way by itself instead of stopping the turn. Under the turn, a folded line Chờ bổ sung sau (N) lists these items with their 📍 chip and Trả lời ngay, which puts the question in the chat box ready for your answer. On the Bảng they wait as Bổ sung sau items with their place, and close when you answer them in the chat (or with ✓). Cập nhật bảng maps the deferrals of past turns too.
Internal (TASK-745, ADR-090 amendment):
finish.open_items[].kindgainslater(result.later,result.deferredByOwner; never inquestions, neverblocked), paid insidefinish(1,591 → 1,588 B, every profile −3 B; the## Finishingrule 1,554 → 1,548 B; system prompt unchanged).runner/deferred.rs: the conversation's register from stored replies (the card's⏳mark, VN/EN/JA/KO phrases, short free-text deferrals) and earlierlateritems; matching by precise place or ≥ 60 % of words with no missing number; items of several sentences split;finishitems andask_userquestions converted (not_askedwhen a card has none left);input→laterin auto levels; turn note## Owner will supply later(≤ 6 lines, ≤ 900 B, empty without deferrals). Board:ItemKind::Later(Waiting),ClosedBy::Deferredon the Open item that asked it, answered by a later reply block;project_board/later.rsidempotent, run byapply_runand over every stored turn by the replay (ReplayOutcome.later). UI: card Bổ sung sau (toggleLater,LATER_MARK),ChatLaterItems.vue,laterReplyDraft, board badge; 9 strings ×4; mock flagdefer-later. Tests: Rustdeferred_tests(9, incl. the replay of runs e6b0019a → 4f3b82c6),tests_finish_later(3, real runner),tests_later(3, board + replay); VitestDeferLater.spec.ts(studio entry path),resultAsk.spec.ts(+2).Fixed: questions and open items that name no file now point at the rows they are about (TASK-744). When the agent ends a task with "4 HĐ ra chưa thấy tiền về: số 03 Long Giang 5.269.000, …" or "DigitalOcean USD 287,26: …", AMBA looks for the amounts, invoice numbers, names and dates of the sentence in the workbooks the agent just read or filled, and gives the item a 📍 chip to those rows (
HoaDonRa!A4:S11). A sheet named in the sentence opens at the matching rows, or the whole sheet when it is short, instead of its first cell. When nothing matches, the chip opens the one file the task delivered. Hovering the chip says how the place was found: Tự đoán theo nội dung: 5.269.000, Long Giang… or Chỉ biết file, chưa rõ chỗ. The same goes for the agent's question cards and the questions waiting on the board, and the board's open items now show their place too.Internal (TASK-744, ADR-090 amendment):
runner/place_content.rs(tokens, row index capped at 200,000 cells and 1.5 s, scoring, concentration, range),place_infer::guess(name → content → named sheet's block / whole / header → one deliverable),place_hooks.rs(end of turn;ask_userdispatch viainferred_ref/inferred/matched, neverref;UserQuestionItem.is_point()ignores a guessed place).places[].inferred:true|"content"(+matched) |"file".BoardAsk.inferred/matched, board Open itemsrefs. UI:RefChipinferred/matchedprops, 2 strings ×4. Tests: Rustplace_content(9),place_inferreplay of run 50648816 on a synthetic workbook (3, + an ignored 20k-row timing),tests_points(+1),tests_finish_places(the 92a7cfec fixture now gives two items the file); VitestRefChip.spec.ts(3),FinishPlaces.spec.ts(+1 assertion),turnProtocol.spec.ts(+1),resultAsk.spec.ts.models/question.rssplit out ofmodels/mod.rs.Changed: questions that point at a place are asked in the question card again, with a 📍 chip (TASK-743). The "Chỗ cần bạn xem" panel that stepped through points one at a time beside the file is gone: every question of a card is visible at once, as before. A question about a place in a file has a 📍 chip next to it (hover shows what is there; a click opens the file at that place, highlighted, in the normal preview), what the agent sees there as a muted line, and its suggestion already filled in as the answer, ready to send or edit. Points an autonomy level left for you are asked in the same card under the answer. On the board, a Waiting point has the same chip, and Xem lại opens its turn in the chat. The reply keeps each place with its answer (
📍 @file#place), so the agent knows which place each answer is about.Fixed: the questions a finished task leaves now say where they are about. When the agent ends a task asking you for something ("gửi lại hoá đơn…", "hoá đơn bán ra ở sheet HoaDonRa…"), each question that points at a file, a sheet or a cell carries a 📍 chip, and the card becomes Chỗ cần bạn xem: one question at a time, with the file open beside the chat at that place. AMBA finds the place itself when the question names a project file or a sheet the agent just read or filled, and the answer's file names become links. A check under Kết quả gets its 📍 too (TASK-742).
Added:
@file mentions in every answer field. The text fields of question cards and the review queue's Sửa thành… and Ghi chú list your project files when you type@, like the chat box (#after a file points into it:@BCTC.xlsx#KQKD!C12). Enter picks a file; the agent reads the place you point at with your answer (TASK-742).Internal (TASK-742, ADR-090 amendment):
finish.open_items[]take optionalrefandcurrent, paid for insidefinish(1,615 → 1,591 B; every profile −24 B, chief-of-staff with the web tools 25,529 B; system prompt unchanged). The description asks the summary to link the places it names and names a cell before a read ref as a figure's source.runner/finish/places.rs: refs checked at acceptance like review points (rN→ the read's place; canonical; dropped withref_notesin the call's result) →metadata.result.places [{item, ref?, current?, inferred?}].runner/place_infer.rs(end of turn, no model cost): an item or check without a place gets one when its text names exactly one project file (path, or a name only one file, or one file the turn touched, has) or one sheet of a workbook the turn read or wrote (its writtenchanged.at, else read range, elseA1); checked,inferred: true. The first plain mention of each project file in the answer becomes a link.answer_refs: a barerNin an open item, check or question becomes the file name, and the item's place when it named one.mentioned_fileaccepts the@picker's zone prefix (workings/…,input/…), so a picked@file#placereachespointed_note.- UI:
TurnResult.finish.places+placeOf;resultAskitems carryref/current(→ review queue);MentionField.vue(useMentions+provideMentionSource) inInteractiveQuestionCard,ChatReviewQueueedit and note; 📍 chips on card questions and on checks. Mock flagfinish-places. - Tests: Rust
finish::places(2),place_infer(4),answer_refs(+1),pointed_note(+1),tests_finish_places(2, real runner replaying run 92a7cfec viatests/fixtures/finish-places-92a7cfec.json),tools::finish(budget, schema); VitestFinishPlaces.spec.tsandAnswerMentions.spec.ts(real studio path),resultAsk.spec.ts(+1, same fixture),turnProtocol.spec.ts.
Added: every place the agent talks about is one click away. Answers now link the cell, range, page or sentence a figure or a clause comes from as a 📍 chip, and AMBA checks each one before the answer is saved. A place that does not hold any more is shown as plain text, so you never meet a broken link. Hover a chip, or reach it with Tab, to see what is there (the cells' values, the quoted sentence) before you open it. Also clickable now:
- Số cần xem lại: the figures the numeric check could not tie to the workbook, under the files the turn wrote, each with a 📍 to its cell.
- The part of a file each step read, at the end of its row in the work steps.
- The range a workbook write changed, next to the file in File đã ghi.
- Where a Board task's figures come from (TASK-736).
Internal (TASK-736, ADR-089 amendment): citation contract
## Citing places(runner/cite_note.rs), 253 B once per turn in a project run's own message. The system prompt (4094/4096 B) and the tool payloads (chief-of-staff 25,576/25,600 B) are unchanged.refs::cite:place_of_part,cite_of_read,entry_ref, a Markdown link finder that handles quoted places and<…>,rewrite_links,link_text.readresults carrycite(about 32–40 B per read), kept by compact repeat reads.runner/answer_refs.rs, run incomplete_run:rN→ file reference in the answer,finishfigures and key figures (beforefinalize_report).verifychecks everylabelwithresolve::locate/check: a valid place is rewritten canonical, an invalid one becomes plain text.- It writes
metadata.refs {valid, invalid[]}, also onfinal_response.
RefResolution.preview(first 8 cells of a range, quote, lines).resolve::locateaccepts an absolute path inside the project.workbookresultchanged.at(tools/workbook/result::first_changed) →RunState.changed_places→deliverables.written[].at.BoardItem.refs(serde default, skipped when empty) from the figure sources (project_board/apply::figure_refs).providers::tiny_pdfre-exported for tests.- UI:
components/RefChip.vue: resolve, invalid → plain + [?], tooltip card, opens through the injected opener.useRefPlaceCard.ts+RefPlaceCard.vue(chat chips: hover/focus card,aria-describedby, Esc; chips losetitle).utils/refCite.ts(placeOfPart,toolPlace),deliverablesReport(numericWarnings,warningRef,WrittenFile.at).ChatDeliverablesBlock(numeric warnings: 5 shown, "Xem thêm", [?]; changed-at chip),ChatToolRowplace chip (.ctr__row),BoardItemRowrefs row.- Mock flag
cite-places; strings ×4.
- Tests:
- Rust:
refs::cite(4),answer_refs(3),refs::tests(+1 previews),cite_note(1),tests_cite_places(1, real runner: contract in the turn message only,citein read results, 3 valid places, 1 made plain,r1→ range),project_board::tests(+1, refs and serde back-compat),workbook::tests(changed.at),tests_finish(handle resolved). - Vitest:
refCite.spec.ts(2),CitePlaces.spec.ts(7, real studio +ChatAgentTurn+BoardItemRow: chips, place card on hover and focus, cell click, numeric-warning chip, tool-row part, changed range, board chip).
- Rust:
Added: Points to review, one at a time beside the file ("Chỗ cần bạn xem"). When the agent needs you to confirm figures or wording in files, its question card becomes a compact panel under the answer: Chỗ cần bạn xem · 1/3 with the question, the value Đang là and Agent đề xuất. Each step opens the file beside the chat at the place, highlighted (a range in a workbook, a sentence on a PDF page, a Word quote…); answer Đúng · Sửa thành… · Bỏ qua · Ghi chú, step with ‹ › or J / K, Enter = Đúng, click a dot to jump. Gửi câu trả lời sends all answers as one message, each with its place; progress is kept across chat switches and reloads until you send. On the Board the points wait with their place and Xem lại opens the panel at that point. In Cân bằng and Tự chạy a point with a clear suggestion is taken at once (Agent tự chọn, Chọn lại still works); the others wait for you (TASK-737).
Internal (TASK-737, ADR-090):
ask_userquestion items take optionalref,current,suggested(UserQuestionItem), paid for in the same tool: shorter description and norequiredon a question/option (the dispatcher refuses those anyway);ask_user560 → 558 B, every profile −2 B (chief-of-staff ceiling 25,576 → 25,574 B), system prompt unchanged; lowering goldens updated.runner/review_points.rs: refs resolved before a card is decided or held (project_ref_resolvelogic; canonical when valid, dropped withref_notesin the card's result otherwise),## Review pointsturn note (project user turns only), auto levels takesuggested(reasonsuggested, alternatives incl. the current value) and leave undecidable points open (AutonomyState.openPoints,metadata.autonomy.openPoints, Waiting on the board, the answer says how many), reply blocks📍 @path#place/→ ✓|✎|⏭ value/📝 noteread back intodecision/noteper answer with the question'sref(UserQuestionItemAnswer.decision/note,answer_content).pointed_note: places of review answers listed apart. Board:BoardAsk.ref/current/suggested/point(every question of a card with a place),point:<n>Waiting items, a review reply settles them; left-open answers are not Decided items. UI:chat/reviewQueue.ts(queue of the latest turn, reply, per-run state in memory + sessionStorage),ChatReviewQueue.vue,ReviewRefChip.vue,useReviewQueue.ts,studio/chatBeside.ts(the chat panel stays beside the file tab while the queue steps,WorkspaceContentPane), boardreviewrun action + Xem lại,ChatUserTurnshows each answer's place; mock flagreview-queue; strings ×4. Tests: Rustreview_points(7: schema, auto levels, reply, notes, budgets in bytes, turn note, read-back),project_board::tests_points(2),pointed_note(+1 case),tools::question(updated); VitestReviewQueue.spec.ts(3, real studio entry path),reviewQueue.spec.ts(3).Added: links that open a file at the right place. When an answer links a place in a file (
desk/BCTC.xlsx#KQKD!C12), the chat shows it as a chip 📍 BCTC.xlsx › KQKD!C12; a click opens the file beside the tabs at that place, highlighted: the sheet and the cell or the whole range in a workbook, the heading, lines or sentence in a Markdown or text file, the lines in code, the slide in a deck. ‹ › in the file's header (also ⌘[ / ⌘]) go back and forth through the places you opened; Esc, a click in the file or × clears the highlight. A link whose place no longer holds (a sheet renamed, a range outside the data, a sentence gone) stays a plain link with a [?] that says why. Key figures under an answer that come from a cell or lines get a 📍 button that opens them there. In the message box, type#right after a file you picked with@to point at a place (@BCTC.xlsx#KQKD!C12): the agent reads exactly that part (TASK-734, TASK-735).Changed: spreadsheet rows show their real row numbers in the preview (empty rows used to shift the numbering), and you can select a range by dragging or Shift-clicking; the box left of the formula bar shows it (
B2:D5) (TASK-735).Internal (TASK-734/735a, ADR-089):
runtime/refs(parse,parse_fragment,format_ref,for_spreadsheet,read_part;resolve.rs: file as written → moves ledger → unique path suffix, sheet/used-range via calamine, CSV bounds, PDF pages,.pptxslides, text lines/quotes/headings), IPCproject_ref_resolve; shared fixturetests/fixtures/refs.json(54 cases) read by Rust and Vitest;finish/verifyandverify_source::line_anchorparse places with the grammar,report_key_figuresvalidates with it (kept as written).SpreadsheetSheet.rowNumbers(xlsx from cell coordinates, CSV from line numbers; also fixes an empty CSV line's cells leaking into the next row).orchestrator::mentions::pointed_places+runner/pointed_note.rs(## Places the owner points atin the turn's message, never the system prompt; budgets unchanged),context_build::mentioned_file. UI:domain/ref.ts(shared contract),utils/refGrammar.ts,utils/refHighlight.ts,studio/useRefOpener.ts(provide/inject, history, ⌘[ / ⌘]),preview/RefNav.vue,DeliverablePreviewtarget/targetKey→ viewers (targetResult),spreadsheet/useSheetTarget.ts, grid range selection,MarkdownDocumentViewer/CodeDocumentViewer/CodeBlockViewer/PresentationViewertargets;MarkdownMessageref chips (quoted places with spaces,<…>destinations) checked through the opener;turnProtocol.figurePlace; mock flagpinpoint-refs; strings ×4. Tests: Rustruntime::refs(6),pointed_note(1),mentions(+1), readers (+row numbers); VitestrefGrammar.spec.ts(55),PinpointRefs.spec.ts(5, real studio entry path: chip → sheet KQKD with C12 highlighted, range, ‹ › and ⌘[ / ⌘], Esc, Markdown heading/lines/quote, slide, refused and malformed chips),ProjectChat.spec.ts(+1,@file#placereaches the run intent),ChatTurnResult.spec.ts(+1).Changed: PDF files open in AMBA's own viewer. Pages appear as you scroll (a 200-page file shows its first page in about a third of a second), text can be selected and copied, and selecting text now opens the same Trích vào chat / Hỏi agent menu as in Word and Markdown files. The bar above the pages has zoom −/+, Vừa chiều ngang (the default), the page number you can type into ("37 / 200") and a [?]; ← → and Page Up / Page Down turn pages. Works offline, nothing is fetched from the internet (TASK-735b).
Added: PDF and Word files can open at a place. Given a page, a heading or a sentence, the viewer scrolls there and marks it in yellow until you press Esc or click elsewhere. A sentence is found even when it spans lines or runs, and with or without Vietnamese tone marks; when it cannot be found the PDF still opens at the page. The links that use this arrive with TASK-734/736 (TASK-735b).
Internal (TASK-735b, M121): dependency
pdfjs-dist6.4.299 (legacy build, lazy chunk; workerpdf.worker.min-<hash>.mjsshared across files); CMaps, standard fonts, ICC profile and the JPX/JBIG2 wasm + JS fallbacks emitted todist/pdfjs/and served at/pdfjs/in dev by theamba-pdfjs-assetsVite plugin (PDF JavaScript/quickjs left out). The pdf.js worker gets the Office-sandbox worker CSP (office_sandbox::csp::is_worker_script,WORKER_PATH_RE); page CSP unchanged.components/pdf/(PdfPageView.vue: canvas + text layer only near the viewport, freed when far;pdfLayout.ts;pdfTextLayer.ts: page text, quote → span segments, highlight/clear;pdfjs.ts),utils/textQuote.ts(tiered match: NFKD/case/whitespace → diacritics, đ→d → whitespace-insensitive, original offsets),components/word/docTargets.ts(quote across runs and paragraphs, heading by text,<mark class="amba-ref-hl">),useRefHighlightDismiss.ts; viewer contracttarget/targetKey→targetResult(found/not_found/unsupported; Wordpagewithout a quote is unsupported), PDFselectionInfo({page, text})for TASK-738;DeliverablePreviewpassestarget/targetKeyto both viewers;src/domain/ref.ts(shared contract with TASK-734); tokens--amba-ref-hl-bg/-paper/-ring(light/dark); strings ×4. Tests:textQuote.spec.ts(7),pdfTextLayer.spec.ts(6),pdfLayout.spec.ts(4),PdfDocumentViewer.spec.ts(8, mocked pdf.js),WordDocumentViewer.spec.ts(+3),workerCsp.spec.ts(+1), Rustoffice_sandbox::csp(+3 asserts).Fixed: an "Agent tự chọn" item without a question. When the agent sent an empty question card, AMBA filled in a stand-in ("Clarification requested:", Yes / No), answered it itself in Cân bằng and Tự chạy, and counted it in Agent tự quyết N chỗ. Now an empty or incomplete card goes back to the agent to ask properly or go on, at every level, and is never answered, recorded or counted. The item already on your Board closes once with không có câu hỏi thật in its [?] (history kept, no Chọn lại), and the turn's list no longer counts it (TASK-732).
Fixed: Tự chạy still ended with questions. The agent now knows the level you chose: in Cân bằng and Tự chạy it takes the most reasonable option, does the work and lists each assumption on its own line (Giả định: …) instead of ending with "Mày muốn tao …không?". If an answer still ends on a question, it waits for you on the Board as Agent hỏi lại: …, where you can answer it (TASK-732).
Internal (TASK-732, ADR-087 amendment 2026-11-05):
tools::question::card_problem,is_real_question, placeholder constants;runner/autonomy.rsrefuse_card(dispatcher, every level, before survey/auto/card handling: tool errorinvalid_argswith a fix; options required in auto levels),answer_carddecides only real questions with options (no more "not known yet" auto answers),turn_note(## Autonomyin the turn's first message viacontext_build, 394–447 B, attended auto runs only),AutonomyState.asksBack+metadata.autonomy.asksBackfromrunner/asks_back.rs(last paragraph, vi/en/ja/ko patterns), closing notice counts it as waiting;finish_answertakesctx. Board:ClosedBy::NoQuestion,project_board/repair.rs(close_no_question, run byproject_board::read, writes only on change),applycloses stand-in decisions and adds<run>:asks_back(Waitingquestion, free text); refresh neither lists nor reopensno_questionitems;rewind::no_question→ rechoose previewno_question,spawn_rechooserefuses. UI:autoDecisions.ts(realDecisionsinChatAgentTurn), closed-by [?]board_closed_no_question,rechoose_unavailable_no_question; strings ×4. No migration; system prompt 4094/4096 B and tool payloads (chief-of-staff 25,576/25,600 B) unchanged; no lowering change. Docs: ADR-087 amendment, runtime.md. Tests: Rusttests_autonomy(+4: empty card ×3 levels, auto level without options,## Autonomyin the turn message and identical system prompt, asks-back),runner::autonomy(+2, 1 updated),asks_back(2),tools::question(+1),project_board::tests_repair(3: repair once, read writes once, replay + asks-back); VitestProjectChatRechoose.spec.ts(+2: stand-in left out of the turn's count, closed board row).Fixed: the chat no longer jumps while you read its history. Scrolling up in a long chat moved the page by itself, sometimes thousands of pixels in either direction, so it was hard to tell whether it went up or down: turns above were drawn only when they came near and then grew to their real height, every answer above you grew or shrank by its action row when a turn started or ended, and nothing on macOS kept the text you were reading in place. Now every turn keeps its height, the chat keeps the turn you are reading where it is when anything above it changes, and a process turn arriving, a run ending or a message you queued going out never takes you to the bottom: New messages shows instead. A chat opened at its end also stays at its end while a run streams (it could stop part-way with New messages) (TASK-733).
Added: find your way in a long chat. A line at the top names the turn you are reading (Lượt 12 · your prompt) with ↑ / ↓ to the previous or next turn, also Alt+↑ / Alt+↓ when you are not typing. A slim rail at the right edge has one mark per prompt where it sits in the chat: hover shows the prompt and its time, a click goes there; red marks a turn with an error, amber one where the agent decided alone, green one that made or changed files. A [?] explains the rail. Both show only in chats longer than two screens (TASK-733).
Internal (TASK-733):
composables/useScrollAnchor.ts(anchor = first visible turn and its offset; the expected offset follows the reader's own scrolling arithmetically, any other difference is a layout change and is undone from a ResizeObserver on every turn + a MutationObserver for new ones; skipped during a restore, a conversation switch and a pointer/touch drag; renamed live turns keep their slot; manual only whereCSS.supports("overflow-anchor")is false, i.e. WKWebView, which then setsoverflow-anchor: none; WebView2 keeps native anchoring; in both a chat that follows the bottom is kept on it).useSmartScroll.handleScrollleaves follow mode only when the position moved up (ascrollevent after content grew below no longer counts as leaving),release().ChatTimeline: nocontent-visibility: autoon turns (also retires the TASK-706 spinner opt-out).ChatAgentTurn: the copy/usage row no longer depends on another turn running.useChatRunSession.attachProcessTurnand queued sends (dispatchPromptRun(…, follow = false)) no longer force the bottom.chat/useTurnNav.ts(entries, current turn, proportional marks with a minimum gap, jumps that cut to one screen before a far turn, glide and land exactly, Alt+↑/↓) +ChatTurnNav.vue; strings ×4; site manual (cognitive modes, "Reading a long chat") ×4. Tests:useScrollAnchor.spec.ts(9),useTurnNav.spec.ts(4),ProjectChatScroll.spec.ts(7, real ProjectChat entry path: anchoring with turns above growing/shrinking, process turn attach while reading, follow at the bottom, own send, rail, short chat, header + ↑/↓ + Alt keys),ChatSpinner.spec.tsupdated.Changed: the context meter moved into each agent's window. It measures the chat you have open, so it now sits in the agent window's top bar, beside the agent's settings, instead of the project header; it follows the agent tab you pick and hides when no chat is open. Its panel is titled with the agent ("Kế toán đối soát · 182k / 1M") and splits the request into Chung cả dự án (project map and recorded facts, with the files/facts line and Những gì agent biết) and Riêng agent này (instructions, skills, tools, conversation, tool results, thinking), each with a [?]. In a narrow agent window the pill shows just a ring and the percentage, and Xóa / Dọn dẹp & Đặt lại show only their icons (TASK-746).
Internal (TASK-746):
ContextMeter.vuegainsagentNameandcompactprops,SHARED_PARTS/AGENT_PARTSsections, a ring pill and a popover teleported to<body>(fixed, under the pill; the chat frame clips);ChatHeaderBar.vuehosts it (ResizeObserver, compact under 520 px) and the "Những gì agent biết" dialog it opens;ProjectHeaderloses the meter and itsconversationIdprop,ProjectStudioitsopenConversationId,ProjectChatstops exposing it;meter_section_*strings ×4; site manual (processes) ×4 no longer places the Processes button "next to the context meter"; docs: UX spec §6.2,ARCHITECTURE.md, architecture map. Tests:AgentContextMeter.spec.ts(3, real ProjectStudio with two agent tabs over mock IPC),ContextMeter.spec.ts(+2).
0.6.7 — 2026-11-05
- Changed: macOS on Intel is no longer supported; Intel Macs stay on 0.5.10. AMBA for macOS is built for Apple Silicon only. 0.5.10 keeps working on Intel Macs but gets no further updates; the download page and the manual list Apple Silicon only, with a short note for Intel Macs (Founder decision 2026-11-05).
- Internal (Intel drop + legacy manifest freeze, ADR-019 amendment; the worker change needs the Founder's deploy):
release-all.ymlloses thebuild-macos-inteljob, themacos-intelplatform and themacos_intel_runnerinput (all= Windows + Linux + macOS Apple Silicon);release-distribute.sh collect-bundles macos-intelandrelease-deploy-local.sh --platforms macos-intelare refused; the smoke test dropsdarwin-x86_64from its defaults and refuses it. Live manifestalpha/manifest.json:publish-latestalways publishes it, and writes the legacyalpha/latest.json(polled by app 0.2.14–0.4.13 with the old pubkey) only while the release is<=the highestUPDATER_KEY_BRIDGESversion inwrangler.toml(newscripts/updater-key-bridges.mjs, fail closed when unreadable); above it, it logslegacy latest.json frozen at <bridge>. The GitHub Releaselatest.jsonmirror follows the same rule.update-latest-json-r2-local.mjsmerges fromalpha/manifest.json(first time, on 404, fromalpha/latest.json);release:mac's report,register-release-artifacts.mjs --from-r2, the site download fallback, the worker/v1/releases/latest.jsonR2 fallback (legacy only whilemanifest.jsonis 404) andr2-prune.sh(also keeps the frozen file's versions and every bridge) read it; the smoke test checksmanifest.jsonand that the legacy file is not above the bridge. Docs: ADR-019 amendment (static-manifest risk resolved, Intel decision), release SOP,MAC_RELEASE_LOCAL.md, platforms, worker README, scripts README. Tests:updater-key-bridges.spec.mjs(5),update-latest-json-r2-local.spec.mjs(+5: merge base, first-time seeding, 0.6.7 merge ignores the frozen file),release-mac.spec.mjs(+5: 0.6.6 writes both, 0.6.7 onlymanifest.json, later bridge, fail closed, Intel refused; report readsmanifest.json), workerupdater-key-bridge.spec.ts(+1: Intel 0.5.10 → 204),worker.spec.ts(+1: manifest.json first, legacy only on 404).
0.6.6 — 2026-11-05
- Changed: new update-signing key. This version still installs as a normal update, and from it on AMBA accepts updates signed with AMBA's new key. Apps on an older version are always offered 0.6.6 first, so no installed app is left unable to update (key rotation, ADR-019 amendment).
- Internal (updater key rotation 2026-11, ADR-019 amendment; worker not deployed — needs the Founder's deploy): 0.6.6 key bridge. Feedback worker var
UPDATER_KEY_BRIDGES(wrangler.toml,"0.6.6";""= off): on/v1/update/...a client below a bridge is offered at most that bridge (the highest active release<=it for its target, else 204), so apps with the old updater pubkey never see a release signed with the new key; bridges chain. Both the OS-family and the specific-target path (incl. thewindows-x86_64⇄-nsisfallback), which now picks the highest allowed version rather than the newest row bycreated_at.release:macstops before distributing when the.sigkey id differs from the tag'splugins.updater.pubkeykey id (scripts/check-updater-key.mjs, key ids only) and refuses to build a bridge version locally.release-smoke-test.mjsprobes fromX.Y.Z-0instead of0.0.1so a bridge never caps it. Staticalpha/latest.json(polled directly by app 0.2.14–0.4.13) is not capped: risk and proposed freeze in the amendment. Docs: ADR-019 amendment,MAC_RELEASE_LOCAL.md, worker README, release SOP. Tests: workerupdater-key-bridge.spec.ts(25),release-mac.spec.mjs(+6). - Internal (TASK-731, ADR-088; gateway only, not deployed — needs the Founder's migration,
KEY_ENCRYPTION_SECRETand deploy, seeinfrastructure/model-gateway/DEPLOY-CHECKLIST.md): upstream key pool. Provider credentials (Anthropic API key, AWS key id + secret + region, Vertex service-account JSON + project + location) entered once on the admin page Key nguồn / Upstream keys, AES-256-GCM sealed in D1upstream_keysunder a newKEY_ENCRYPTION_SECRET(HKDF infoamba-upstream-keys-v1), last 4 only in clear. Per request: the provider as before, then its active pool keys in the account's scope (all / plan / accounts) by priority, then the Worker secrets as pseudo keyenv. 401/403 →unhealthy, 429 →coolinguntil the provider's reset (TASK-730 parsing), each retried once on the next key (failover:<status>zero-cost row); all cooling → 529 withamba.window: "upstream".usage_events.upstream_key_id(additive, migration2026-11-04_task-731_upstream_keys.sql); per-key 24 h / 7 d stats (requests, tokens, cost, 429 and error rate) and top accounts; Disable now / enable / mark healthy / rename / priority / scope / soft delete, VNAppMob ID session only (theADMIN_SECRETbearer reads), each audited with a secret-free detail. Account abuse guard: red alerts on the overview for an hour over USDabuse_hour_usd(10) orabuse_multiplier(5) × the account's 7-day hourly average (min USD 2), with Tạm khoá (the existing account disable); optional auto-suspend (default off,hour_caponly, audited assystem). Shared sealing codesrc/sealed.ts(web keys unchanged). No desktop change, nothing new stored about users (no privacy-policy change). Tests: gatewayupstreamKeys.spec.ts(18),adminPage.spec.ts(+1, browser flow).
0.6.5 — 2026-11-04
Added: Chọn lại / Choose again. Every choice the agent made alone (Cân bằng, Tự chạy) can be answered again, from Agent tự quyết N chỗ — xem lại under the answer or from its Agent tự chọn item on the Board. Pick another option or write your own answer; before anything runs, AMBA shows what happens to the files: those made after that point go to the trash (restorable, reason Chọn lại), those changed after it get their content from then back (the newer version goes to the trash), a tidy-up you now decline is moved back, and Bản cuối, File mẫu and Nguồn are never touched (listed as left alone). The agent then goes on from exactly that point with your answer; the old turn stays in the chat marked Đã chọn lại. Choices made before this version show a [?] instead of the button, and the button is off while the chat works (TASK-730b).
Internal (TASK-730b, ADR-087 §5b): V055
run_decision_points(additive: gzip resume state per decision,created_json,revisions_json,rechosen_by),storage/db/decision_points.rs.runner/rewind.rs:snapshot(end of the deciding step,AutoDecision.rewindable),load_open+before_writefrom the dispatcher (created files; first overwrite →doc_ops_snapshot),plan/apply(trash/<ts>_rechoose,doc_ops_rollback, approval moves back, locked folders skipped),card_of,keeps_choice,take(seeds aquestion_turn::Pending, newpresetfield),supersede(metadata.supersededBy);metadata.rechose. IPCautonomy_rechoose_preview;RunIntent.rechoose→commands/autonomy.rs::spawn_rechoose(spawn_run_seeded: claim, files, supersede); codeautonomy.rechoose_unavailable×4. Board:auto_decisionitems with a point carry their options inask. UI:ChatAutoDecisions.vue(under the answer),ChatRechooseDialog.vue(card → plan → confirm),rechoose.ts(provide/inject), board row button + [?],BoardRunActionrechoose, Trash reasonrechoose; strings ×4. No prompt or tool-payload change. Docs: ADR-087 §5b as built, runtime.md, site manual ×4. Tests: Rusttests_rechoose(2: point + files + restore + locked skip + reseed + supersede; approval moved back),rewind(1), board (+asserts); VitestProjectChatRechoose.spec.ts(4: chat list → card → plan → confirm intent, board → chat dialog, no-point [?], board row).Added: leave a long turn running. Next to the model in the message box, Hỏi tôi / Cân bằng / Tự chạy (Ask me / Balanced / Run through) sets how much the agent decides alone during the next turn; each project has a default in Project settings → General, and a [?] explains each level. Cân bằng answers a question card with the agent's recommended option when it gave exactly one, and otherwise stops and asks; Tự chạy always takes the recommended option and goes on. Both approve a tidy-up into the trash (restorable). At no level does the agent send anything to a person, delete for good, write over Bản cuối, File mẫu or Nguồn, or pass your limits: it finishes the rest and lists those under Chờ duyệt. Under the level, Giới hạn (collapsed) takes a maximum of tokens and minutes; reaching one stops at the saved step and tells you, and Tiếp tục goes on (TASK-730).
Added: waiting for quota instead of failing. In Cân bằng and Tự chạy, when the model provider or the AMBA account runs out of quota, the turn learns when it resets and shows Đang chờ quota — tiếp tục lúc HH:mm with Thử ngay and Dừng, then goes on from where it stopped by itself. A daily quota shows its real reset time (midnight Pacific for Google). If the app closes meanwhile, the chat shows the time and continues when it comes. In Hỏi tôi the turn stops as before, and the error now says when the quota resets (TASK-730).
Added: the computer stays awake and tells you when the turn is done. While a turn in Cân bằng or Tự chạy runs, the computer does not sleep (Windows, macOS). When it ends you get a desktop notification and, when the project's owner has a Telegram chat, one line there: "Xong … — tự quyết 3 chỗ, 52 phút, ~180k token". The answer starts with Agent tự quyết N chỗ, and each choice is on the Board as Agent tự chọn, with the options it did not take; actions it did not take alone wait there as Chờ duyệt (TASK-730).
Internal (TASK-730a, ADR-087):
models/autonomy.rs(AutonomyLevel,AutonomyChoice),StartRunRequest.autonomy/RunIntent.autonomy(project defaultautonomy_default:<id>inprepare_run),RunCtx.autonomy(attended runs only),RunState.autonomy/ResumeState.autonomy.runner/autonomy.rs:answer_card(Balanced = oneis_recommendedper question; thetools::questionstand-in answer,auto_answered+ "Giả định:" note in the tool result, not recorded as the user's answer),auto_ask,auto_boundary,approves_plan(files trash/move/finalize),holds+hold(other Confirm verdicts and undeclared send-like tools → error resultheld_for_owner, no prompt),ceiling_hit/ceiling_stop(provider_errorautonomy_ceiling, paused, allowance renewed on resume),finish_answer,metadata.autonomy,record_notice.runner/quota_wait.rsfromturn.rs(AMBA windows at once, rate limits after the quick retries;retry_attempt.quotaWait, checkpointquotaWaitUntil, ≤ 24 waits, cancel/Thử ngay/Dừng).providers/quota_reset.rs(gatewayresets_at=, Anthropicanthropic-ratelimit-*-reset→ "resets at", Gemini/Vertex…PerDay…→ next midnight Pacific with DST,retry in, backoff 1-2-4-8-15 min); Anthropic adapter hint from 429/529 headers, OpenAIx-ratelimit-reset-*,gemini::quota::is_daily, AMBAwindow=upstream; rate-limitprovider_error.resetsAt.runtime/autonomy/(project default,wait.rs,notice.rs:run:autonomy-finished, Telegram line via the owner ofsend_to_me, ledger purposerun_notice),commands/autonomy.rs(IPCautonomy_get_project_default,autonomy_set_project_default,run_quota_wait_action; begin/end aroundspawn_runandresume_run),Background::apply_auto_runs(workeramba-auto-run-awake). Board:ItemKind::AutoDecision(Decided),ItemKind::Held(Waiting) frommetadata.autonomy.tool_dispatchtests moved totool_dispatch_tests.rs(file cap). No migration; system prompt 4094/4096 B and tool payloads unchanged. Gateway (not deployed, needs a Founder-approved deploy):upstreamErrorforwards a Claude upstream 429's reset asamba.window: "upstream",resetsAt,Retry-After(upstreamReset). UI:ChatAutonomyPicker.vue(composer, limits collapsed),useChatAutonomy.ts,AutonomyDefaultSetting.vue,ChatQuotaWait.vueinChatRunProgress, interrupted card waits forquotaWaitUntil,ChatErrorCardsceiling message and reset line, board kindsauto_decision/held,useAutonomyNotices.ts(desktop notification); strings ×4. Docs: ADR-087 (with the "Chọn lại" design, TASK-730b), runtime.md, architecture map, site manual (cognitive modes) ×4, privacy policy (run_notice) ×4. Tests: Rusttests_autonomy(6),runner::autonomy(1),runtime::autonomy(5),quota_reset(6), board (1); gatewayupstreamReset.spec.ts(3); VitestProjectChatAutonomy.spec.ts(2, real ProjectChat entry path).Added: type while the agent works. The message box stays open during a turn, next to Dừng. Gửi giữa chừng / Send now (Enter) hands your message to the agent after the step it is on; it shows in the turn where the agent read it, labelled Gửi giữa chừng, and the agent's next step answers it. Gửi sau khi xong / Send when done (Ctrl/⌘+Shift+Enter or the clock button, [?] explains both) keeps the message above the box, editable and removable, and sends it as the next turn when the agent finishes (several go as one turn). Nothing is lost: a message the agent finished before reading goes as a new turn and the chat says so; when the turn stops (Dừng, an error, a pause) unsent messages go back into the box; after an app close Tiếp tục reads them. Process turns take no messages (TASK-728).
Internal (TASK-728, ADR-086): V054
run_steers(additive), IPCsteer_run(runtime/execution/steer.rs: inbox opened byrun_scopedfor attended runs,submit,settle),runner/steer_inbox.rs(read before each model request after the first step;ChatMessage.steer,user_answers,steerson the step activity, resume save), run eventuser_steer,run:finished.leftSteers, delivered messages stored asmetadata.steereduser rows. Lowering: Gemini/Vertex join a steer to the last function response asuser_message; other families unchanged (wire snapshotssteer_*.json,anthropic/tests_steer.rs). No prompt text added. UI:useChatSteer.ts,ChatComposerQueue.vue, composer enabled while running,user_steerinrunEventReducer, steer rows inChatWorkStep,onTurnSettledinuseChatRunSession; strings ×4. Docs: ADR-086, runtime.md, site manual (cognitive modes) ×4. Tests: Rusttests_steer(5),steer(2),run_steers(1), wire (6), Claude (2); VitestProjectChatSteer.spec.ts(7), reducer (+1).Added: Cập nhật bảng / Refresh board. A button in the project board's header re-reads the turns since the last refresh with the project's model and updates the board: it closes what is done or settled (with the reason in a [?]), adds missed decisions and open items, corrects a changed figure and reopens what it closed if a turn shows it is open again. It never deletes and never touches what you pinned, edited, closed or reopened yourself. The result shows under the header ("Đã cập nhật: đóng 2, thêm 1" or "Bảng đã khớp, không có gì đổi"), changed items are highlighted, Cập nhật lần cuối: HH:mm shows when it ran and Hoàn tác undoes it. No new turn since the last refresh: no AI call. The call and its tokens show in Dữ liệu rời khỏi máy này (TASK-729).
Fixed: the board missed things it could know. Opening the board now adds the turns from before the board existed (or that never reached it), a line for turns that failed without an answer, and the answers you gave on a question card (they showed as answered with no answer). A question the chat moved past, or a stopped task you did not continue, is closed as "chat đã sang lượt mới" instead of waiting forever (TASK-729).
Internal (TASK-729, ADR-079 amendment 2026-11-04):
project_board/replay.rs(replay: stored turns not inappliedRuns, failed runs without a message → failed Log line,fill_answersforanswerToreplies; sections re-sorted by time; idempotent),refresh.rs(one direct model call, not a run:BoardModel/ProviderModel,agent_model::effective_model_profile+ProviderRouter::resolve_for(…, "board_refresh"), egress + ledger scope; prompt withB<n>/T<n>aliases, ≤ 30 turns / 40 000 chars, 160 items; toolboard_update; cost guard onlastRefresh.seenUntil),refresh_apply.rs(apply with locks, undo).apply:close_moved_on, card answers intodetail,askcleared on answer;actions::patch_itemclearsclosedBy. Model (additive):ItemKind::Refresh,ItemSource::Refresh,BoardItem.closedBy/counts,ProjectBoard.lastRefresh. IPCproject_board_refresh {agent}(in-flight guard,board.refresh_busy),project_board_undo_refresh; codes ×4. No runner, prompt or tool-payload change. UI:useBoardRefresh.ts, header button + [?] + last-updated + undo + result line, row highlight (flash), refresh Log line from counts, closed-by [?]; strings ×4; mock IPC handlers + flagboard-refresh-error. Docs: ADR-079 amendment, runtime.md module map, site manualfeatures/project-board×4. Tests: Rusttests_refresh.rs(10); VitestBoardRefresh.spec.ts(2, real studio entry path, list + kanban).Changed: a project now has three folders: Nguồn, Bàn làm việc and Thùng rác (
sources/,desk/,trash/). The workspace is Bàn làm việc / Desk (desk/): Bản cuối and File mẫu pinned on top (nowdesk/final/,desk/templates/), your folders and the agent's deliverables, and the agent's Nháp (desk/drafts/, its working files and drafts) collapsed at the bottom. An older project moves there once when you open it:reports/andoutput/go intodesk/,final/andtemplates/intodesk/final/anddesk/templates/,workings/intodesk/drafts/,workings/trash/intotrash/. Nothing is deleted or overwritten (a name already there gets " (1)"), every move is listed in.amba/layout-migration-<time>.json, chat file cards and the template in use still open the moved files, and your own folders stay where they are. Tip: open a copy of an important project first.Changed: finalizing over an older Bản cuối keeps the older one in Nguồn › Lưu trữ (
sources/archive/final/, with the day in its name) instead of the trash.Added: the agent tidies its own drafts. When a task is handed in, the working files the agent made in Nháp and did not hand in or link go to the trash as Nháp của agent / Agent drafts (restorable). Failed or stopped runs, runs that end with a question and draft runs keep them.
Added: "Làm từ: …" / "Made from: …" on a desk file the agent made from another file (a template, a final or an archived file); a click opens that file. Quiet badges Nháp, Đang dùng, Đã lưu trữ / Archived, and "N file chưa chốt" / "N not final" with a [?] on the Bàn làm việc header. Trả về reports is now Trả về bàn làm việc.
Internal (TASK-726 part A, ADR-085, ADR-072 amendment 2026-11-04):
project_filesconstants (DESK_DIR,WORKINGS_DIR=DRAFTS_DIR=desk/drafts,PLANS_DIR,DRY_RUN_DIR,REPORTS_DIR=desk,FINAL_DIR=desk/final,TEMPLATES_DIR=desk/templates,trash::TRASH_DIR=trash,LEGACY_*),under_dir,Zone::Trash+policy.trash_locked(×4), rootfinal//templates/locked until migrated,desk_form/legacy_aliases/desk_text.desk_layout.rs(plan/migrate/ensure,.amba/layout.jsonv2, mapping file, per-move ledger, resume) run fromget_project_detailbefore the file list (and again, a no-op, instart_project_watcher);scaffoldcreatesdesk/.final_folderarchives replaced finals (archive::replaced_rel),moves::after_movesbaselines files archived into Sources and follows lineage;trash_binrestores pre-desk events to desk paths;origin_ofmaps pre-desk origins.draft_cleanup.rs+runner/drafts_tidy.rs(afterfinish); process runs promote only their own drafts (promote_listed_drafts_into); chat finalization skips plans, dot-folders and_survey.md. V053project_file_lineage(additive),lineage.rs,runner::tool_effects::record_lineage, IPClist_project_file_lineage. Unattended policy globs match desk paths through pre-desk aliases;report_dirtoo; process instructions and installed agent prompts read with desk paths. System prompt 4094/4096 B;filesdescription and tool examples no larger (always-on 7778→≤7774 B); wire snapshots regenerated; catalog playbooks/skills text and generated site playbook pages moved todesk/. UI:useExplorerZonesdesk tree,fileLineage.ts,FileTreeItembadges/origin link/Nháp tip,HarnessExplorerunfinalized count and desk-rooted create/drop,TrashBinPanelreasondrafts, open-by-path fordesk/drafts/.dry-run/, re-sync after open; strings ×4. Docs: ADR-085, ADR-072 amendment, TOOL_SYSTEM, ARCHITECTURE, site manual ×4. Tests: Rustdesk_layout(5),draft_cleanup(2),lineage(1), lock tests (zones, confinement trash), replaced-final archive (final_folder, commands), moves pre-desk resolution, trash bin pre-desk restore, unattended aliases, conventions; VitestDeskLayout.spec.ts(4) + updated explorer/chat specs.Changed: processes moved from the file tree to the project header. The file tree now shows only Nguồn and Làm việc; your processes are behind the Quy trình / Processes button at the top right, next to the context meter. The button shows how many there are and one dot when something needs a look (red: one needs attention; pulsing: one is running; amber: a paused one has a warning). Its list works as before: click a process to open its tab, ⋯ or right-click for Mở · Chạy cả quy trình · Bật/Tắt · Đổi tên · Xoá, + for Tạo bằng tay or ✨ Tạo bằng một câu. Esc or a click outside closes it. The sidebar's Quy trình đang bật opens the process's tab directly (TASK-726).
Changed: the Bảng (Board) tab sits at the far right of the tab bar and stays in view however many files and processes are open (TASK-726).
Added: the project board as a list or a kanban. Danh sách | Kanban / List | Kanban in the board's header switches between the stacked sections and one column per section (Đang chờ bạn, Đã chốt, Việc đã làm, Còn mở, Nhật ký); cards open their turn and keep pin, edit and close. Your choice is remembered for every project (TASK-726).
Internal (TASK-726 part B):
features/projects/explorer/ProcessesTree.vue→features/projects/processes/ProcessesList.vue(⋯ menuposition: fixedat its button, no transform on.row-menu;closeMenu/menuOpenexposed),explorer/NewProcessMenu.vue→processes/, newprocesses/ProcessesMenu.vue(button + panel teleported tobody,z-index: 1050, HelpTipz-[1200]; pointer-down outside closes except in a dialog; Esc closes the ⋯ menu then the panel; panel kept mounted withv-show).ProjectHeadergetsprocesses/processesLoaded/activeProcessId/revealProcessId+openProcess/newProcess/processRemoved;HarnessExplorerloses the process pane, its props/emits and the reveal watch (ExplorerPaneKeykeeps"process", unused, left for the file-zone rework).useStudioProcesses:showExplorer→showTabs,revealProcessopens a known process's tab or the dropdown,openFromMenu.WorkspaceTabStrip: board button afterstudio-tabs-scroll.ProjectBoardPanel: view toggle (amba_board_view), kanban columns overBOARD_SECTIONS;BoardItemRowcardprop. Strings ×4:proc_menu_status_*,board_view_*,board_column_empty. Docs: UX spec §6.2, ADR-071 and ADR-079 amendments 2026-11-03, process-builder and automation-ux contracts, demo runbook, site manual processes ×4. Tests:ProcessesMenu.spec.ts(4),ProcessReachability.spec.ts(explorer test rewritten, +2: sidebar link, empty project),ProjectBoardEntry.spec.ts(+1: board tab last/outside the scroller, List/Kanban persisted, columns),HarnessExplorer.spec.ts(process tests replaced by a no-Quy-trình check); studio reachability and usability specs open the dropdown first (src/test-utils/processesMenu.ts), so paths from the studio count one more tap (M104 hand-built demo 21 → 22, sentence path 7 → 8). Visual screenexplorer-three-sections→header-processes-menu(baselines to record).Added: "File mẫu" (Templates) folder, next to Bản cuối. File mẫu is pinned right below Bản cuối at the top of the workspace, shown even when empty, and locked for agents like Bản cuối. Đưa vào file mẫu / Add to Templates in a Word or PowerPoint file's "…" menu moves it there and makes it the template new files of its kind are built on (badge Đang dùng / In use); with several, Dùng làm mẫu đang dùng picks one and Bỏ làm mẫu đang dùng only clears the choice; Trả về reports moves a file back. A template you set before keeps working where it is; nothing is moved for you.
Added: "Nạp vào nguồn" (Archive to Sources). On an item of Bản cuối or File mẫu it moves the file to Nguồn › Lưu trữ (
sources/archive/final/orsources/archive/templates/, after a confirmation; a name already there gets the day, then a number). Archived files keep a Bản cuối / File mẫu badge, stay read-only like every source, are searchable, and the agent can start a new version from one inreports/. Chat file cards and the template in use follow the file.Changed: "mẫu công ty" is now "File mẫu". Project settings → General has File mẫu Word and File mẫu PowerPoint, picked from a list of the files in File mẫu and Lưu trữ (or Chọn file…, which copies a file from your computer into File mẫu, no longer into
sources/uploads/templates/); the explanation moved into a [?].Changed: the file "…" menu groups its moves under a line (Chốt bản cuối, Đưa vào file mẫu; Bỏ chốt, Nạp vào nguồn; Dùng làm mẫu đang dùng, Trả về reports) and has no [?] inside any more (it opened under the menu). The [?] on the Bản cuối and File mẫu rows explains the cycle instead.
Internal (TASK-724):
project_files/mod.rs—TEMPLATES_DIR,Zone::Templates,policy.templates_locked,is_templates_rel/is_pinned_rel/pinned_dir_of;ensure_model_writablerefusestemplates/likefinal/, both messages now say "write a new version in reports/ (from: the file there)".project_files/archive.rs(plan_archive,dated_free_rel,apply),ARCHIVE_SLUGreserved insources::lifecycle(no source id, no orphan).final_folderunfinalize andmoves::origin_ofcovertemplates/; finalize refusestemplates/items.moves::after_movesforgets final marks moved into Sources and callsoffice_templates::follow_moves.services/office_templates.rsreworked: template folderstemplates/,sources/archive/templates/, legacysources/uploads/templates/andinput/templates/;choose_templatecopies intotemplates/;nominate,follow_moves,list_files. IPCnominate_project_template,list_project_template_files,archive_project_path(history baseline + content index schedule). Project map: "Active templates", and an archive note line whensources/archive/has files.filesdescription: tidy-up namestemplates/, paid for by shorter wording (−1 B per profile, chief-of-staff 25,576 B); wire snapshots regenerated. UI:NominateMenuGroup.vuereplacesOfficeTemplateMenuItem.vue;HelpTipcontentClass(the pinned-folder tips atz-[300]);buildPathTreelabel gets the path. Agentfiles archiveop: not added (no byte budget; archive is UI only). ADR-072 amendment 2026-11-03.Added: a Trash panel at the bottom of the file tree. Everything you delete, and everything a tidy-up or a rollback removes, is listed there by time and reason ("Đã xoá", "Dọn dẹp", "Rollback"). Khôi phục / Restore puts a whole group or a single file back where it was, making missing folders again; if that name is taken now, the file comes back as "name (1)", so nothing is overwritten. Xoá vĩnh viễn on a group and Dọn thùng rác / Empty trash delete for good, each after a confirmation. The file tree no longer shows
workings/trash. Old groups are emptied automatically after 30 days; change it in Project settings → General ("Tự xoá thùng rác sau … ngày", 0 = never). The agent never empties the trash (TASK-723).Added: "Bản cuối" (Final) folder, locked for agents. Bản cuối sits at the top of the workspace. Chốt bản cuối / Finalize in a file's or folder's "…" menu moves it there, keeping its sub-folder (
reports/ho_so_cong_tac/x.docx→final/ho_so_cong_tac/x.docx); an older file at that place goes to the trash. Bỏ chốt / Unfinalize moves it back where it came from. Say "đây là bản cuối" in the chat and the agent proposes the move on the approval card. Agents can read what is in Bản cuối but never change, move or delete it: a new version goes toreports/until you finalize it. (This replaces "Đánh dấu bản cuối"; files a process delivered still carry the Bản cuối badge.) A chat file card of a file that was moved, trashed or restored opens it where it is now (TASK-723).Fixed: adding files to a workspace folder never overwrites. Dropping or importing a file whose name is already there keeps both (the new one as "name (2)", like Sources; the same content is not copied twice), a folder can no longer be copied into itself, and the target folder is checked to stay inside the project (TASK-723).
Internal (TASK-723):
runtime/project_files/—trash_bin.rs(list/restore/purge/purge_older_than, batch name parsing,batch_pathcanonical confinement),final_folder.rs(final_target,free_rel" (n)" suffix,plan_finalizewith<ts>_replacedtrash moves,apply,plan_unfinalize),moves.rs(ledger V052project_path_moves, additive;after_movesrecords moves and moves/marks/unmarks final states;follow,origin_ofwalking back past renames and trash round trips);mod.rs:FINAL_DIR,Zone::Final(never fromzone_of_rel),ensure_model_writablerefusesfinal/(policy.final_locked, phrases ×4),refuse_protectedkeeps the user's actions open there;final_state::{mark_finalized, unmark_user};intake::copy_intoshared by Sources uploads and workspace imports (no overwrite, no folder into itself). Commands (commands/projects/trash_bin.rs):list_project_trash,restore_project_trash,purge_project_trash,get/set_project_trash_retention(settingproject_trash_retention:<id>, default 30, ≤ 3650),finalize_project_path,unfinalize_project_path,resolve_moved_project_path;purge_dueonget_project_detailonce a day per project.import_project_files→import_project_files_impl(target viaresolve_safe_project_path+refuse_protected, trash refused).rename_project_pathrefuses an existing target (case-only renames allowed) and thefinalroot; Delete/rename feed the ledger. Rollback batches keepworkings/in the trashed path (restorable to the original place; older rollback batches restore without it).files finalize {paths}joins the TASK-721 card (file_plan.rs:final_folder::applyfor the op, the card's cleanup batch ignores_replaced),NEXT_DONEpoints to the Trash panel;latest_filesfollows the ledger. Tool text:finalizesentence andfinal/in the tidy-up line, paid for by dropping thepath/query/dateproperty descriptions: −15 B per profile (chief-of-staff 25,577 B); wire snapshots regenerated. UI:explorer/TrashBinPanel.vue,explorer/TrashRetentionSetting.vue,FileTreeItem(Final folder icon + [?] tip, Chốt/Bỏ chốt replaces the mark-final toggle, no rename/delete on thefinalroot),useExplorerZones(trash hidden,finalpinned first, shown even empty),ProjectStudioopen-by-path follows moves, mock IPChandlers/trashBin.ts; strings ×4. Docs: TOOL_SYSTEM, ADR-072 D3 amendment, ARCHITECTURE security rules, site manual (sources, project harness) ×4. Tests: Rusttrash_bin(5),final_folder(5),moves(1),commands::projects::tests_trash_bin(4), policyfinal_folder_is_locked_for_every_model_write,file_planfinalize (1); VitestTrashBinFinal.spec.ts(4),TrashRetentionSetting.spec.ts(2),HarnessExplorer.spec.ts(2 updated).Added: the agent can tidy up your workspace, and asks before it moves anything. Ask it to "clean up" or "dọn dẹp": it lists the real files in the project, then proposes on a card in the chat which files go to the trash (test drafts, superseded versions, duplicates) and which move into folders, each as
from → to. Nothing moves until you click Duyệt / Approve; Giữ nguyên / Keep as is leaves everything as it is. Trashed items go toworkings/trash/<date_time>_cleanup/under their original path, so you can move them back. The agent never touches Sources and never empties the trash.Changed: Delete in the file tree moves to the trash. Deleting a file or folder (a source file too) now moves it to
workings/trash/<date_time>_deleted/, keeping its path, and the dialog says "Chuyển vào thùng rác (workings/trash)? Có thể lấy lại từ đó." Only deleting something already insideworkings/trashremoves it for good, and that dialog says Xoá vĩnh viễn.Internal (TASK-721): evidence: run 0f489c52 ("clean up bàn làm việc giùm tao") made no tool call and answered from memory that it cannot delete or move files, suggesting to delete
workings/trash.filesgainstrash {paths}andmove {path, to}(tools/v2/files.rs, planned inruntime/project_files/trash.rs: paths must exist; Sources,.amba/, project root,workings/,reports/,output/and the trash refused; no overwrite). Approval reuses the TASK-712 question turn: the calls end the turn withmetadata.askkind: "file_plan"+moves(runner/file_plan.rs,QuestionStop.source = approval), the click is the next message, the answering run applies the plan onapproveonly; without a question channel the permission prompt asks, unattended runs are denied. Policy: every trash/move path counts as written, verdict Confirm/destructive; read-only modes refuse, conversation turns admit.files listleaves outworkings/trash/.delete_project_path→delete_project_path_impl, moves to<ts>_deleted(permanent only inside the trash); rollback sharestrash::new_batch/move_path. UI:FilePlanCard.vue,HarnessExplorerdialog (studio_trash_action,studio_delete_forever_*,file_plan_*×4). Tool payloads +22 to +79 B per profile after tighteningread,files,table,edit_filetexts (chief-of-staff 25,592 B, within 25,600 B; ceilings raised insize_tests.rs); wire snapshots regenerated. Tests:project_files::trash::tests(4),runner::file_plan::tests(4),tests_file_plan(2, live run + reload + approve/keep), policy (files_trash_and_move_confirm_and_refuse_protected_zones, read-only),commands::projects::tests_trash,files_list_leaves_out_the_trash_unless_listed_by_path; VitestFilePlanCard.spec.ts(3),ProjectChat.spec.ts(+1),HarnessExplorer.spec.ts(+1).Fixed: drag and drop works on macOS. Drag files or folders from Finder onto a folder in "Làm việc" to copy them there, onto the "Làm việc" or "Nguồn" section to add them at the top or to Sources, or onto the chat to add them to Sources and mention them in your message. The folder or section under the cursor lights up. Dragging an item in the file tree onto another folder moves it again (Sources stay as they are), and dragging it onto the chat mentions it (TASK-722).
Internal (TASK-722): cause — Tauri's native drag-drop handler (on by default) answers every
NSDraggingDestinationcall of the WKWebView itself (wrywkwebview/drag_drop.rs, thetauri-runtime-wryhandler returnstrue), so the page never got HTML5dragover/drop, neither for files from Finder nor for tree moves; and a webviewFilecarries no path (file.pathis Electron-only), so even an HTML5 drop could not import into Sources. Now:dragDropEnabled: truestays explicit;src/features/projects/dnd/—dropTargets.ts(element registry, hit test,dropHover,useDropTarget),nativeFileDrop.ts(onDragDropEvent→ hit test withelementFromPoint; position ÷devicePixelRatioon Windows only),useTreeNodeDrag.ts(pointer-event drag of tree rows with pointer capture, click suppressed after a drop, Esc cancels;movedNodePath),TreeDragGhost.vue.FileTreeItem(nodraggable),ExplorerPane(dropHandlerprop replaces the zone drag events),HarnessExplorer(handleDropPaths→import_project_files; error alertstudio_import_error×4),ProjectChat+chat/useChatFileDrop.ts(files → Sources, newsources/uploads/…paths inserted as@pathtags; emitsfilesChanged),useComposerInput.insertFileTags(replaces the HTML5 handlers and their English filler text);chat_drop_*copy updated ×4. Spec: design system §6.1. Tests:dropTargets.spec.ts(4),nativeFileDrop.spec.ts(5, incl. atauri.conf.jsonguard),useTreeNodeDrag.spec.ts(4),useChatFileDrop.spec.ts(3),FileTreeItem.spec.ts(+4),HarnessExplorer.spec.ts(+3). Verified by tests only; not run in the real app.Changed: each document keeps the file type of its own sample. When you ask for several papers at once, for example a decision from the Word sample you approved and a payment voucher from an Excel form, the agent now makes the decision as a Word file from that sample and the voucher as an Excel file from the form, instead of retyping the Word decision into a sheet of the voucher workbook (TASK-720).
Fixed: the agent no longer asks again what you left unanswered. If a question card asked for several details and you filled in only some of them, the agent leaves the rest as they are (blank) instead of sending a second card with the same question (TASK-720).
Fixed: an answer about an earlier file shows that file. When a turn changes nothing (you answered "để trống", or asked where the file is), the answer now shows the latest file it is about as a chip under "File mới nhất", so you can open it right away (TASK-720).
Changed: no more "I have not opened the file in Excel" in every answer. The agent no longer ends each answer with that sentence and a reminder to open the file and check the layout; it mentions a layout risk only when it has a concrete one (TASK-720).
Internal (TASK-720): evidence: conversation a7dcf0a7 (runs 6d01c142, 413620d1, 0315dc26, 66d00882). (a)
workbookdescription: "a Word sample stays a .docx (document)"; "How you work" (runtime/agent.rs): "A record with its own sample keeps that file type: a Word sample gives a .docx (documentfrom it), never a sheet.", paid for by tighter lines (4,095/4,096 B);workbook/deck/documentdescriptions tightened ("Edits an existing file in place", "verified"), chief-of-staff 25,594 → 25,570 B, ceilings lowered; wire snapshots regenerated. No runtime hint (a sheet-vs-docx text match was not robust enough). (b)finish/open_items.rsasks_again(word overlap ≥ 60 % of the item's question, no new number; kana/CJK as character pairs) anddrop_reasked;finish::not_asked_againdropschoice/inputitems the conversation's previous card asked (question_turn::previous_card/card_questions:metadata.askorresult.questions), eventcontext_buildfinish_not_asked_again; finishing rule: what the user left unanswered stays blank, never asked again. (c)runner/latest_files.rs: an attended turn with no writes and no result files storesmetadata.latestFiles([{path, what}], also onfinal_response): the latest earlier files when the previous turn asked something, plus earlier files the answer names; only existing files, ≤ 6. Chat:ChatLatestFiles.vuewith a [?] tip under the answer inChatAgentTurn(not when the turn has result files),latestFiles.ts, livefinal_responsekeepslatestFiles; vi/en/ja/kochat_latest_files,chat_latest_files_tip. (d) finishing rule:checkis "a concrete risk for the user to verify (a cell, an assumption)" (was "open a file, check a cell"), "The writers verify every file: do not add that you have not opened or viewed one, nor a check to open it." Tests:open_items(1),latest_files(2),finishdirective (1),tests_finish_open_items(two turns: not asked again + latest files), workbook description (1), "How you work" line;ChatLatestFiles.spec.ts(3),runEventProtocol.spec.ts(1).Changed: the agent makes a PDF only when you ask for one. Writing or fixing a Word document no longer adds a PDF next to it each time; when you want a PDF, say so (or print it from Word yourself). If the agent asks for a PDF you did not mention, AMBA skips it and tells the agent so.
Changed: "make it like the sample" starts from the sample. To redo a document from a Word file in your sources (last year's regulation, an earlier version), the agent copies that file and changes its text, so its header table, layout and styles stay, instead of rewriting it from scratch. Numbered articles typed in bold ("Điều 3. …") are replaced one by one without touching the rest; the signature block at the end stays.
Added: set the company Word or PowerPoint template from the file tree. A .docx/.pptx file's "…" menu has "Dùng làm mẫu Word công ty" / "Dùng làm mẫu PowerPoint công ty"; the template then carries a small "Mẫu Word" / "Mẫu slide" badge, and the same menu clears it. New Word and PowerPoint files in the project use its styles, page setup and headers. (It was only in Project settings before.)
Internal (TASK-719):
documenttool description and examples (tools/v2/document/mod.rs):from: <sample>+ section ops /fill_fieldsfor "like the sample", nevercreateon a sample,export: "pdf"only if the user asked; payload 3,212 → 3,207 B (chief-of-staff 25,594 B, under the 25,600 B budget). Runtime guardrunner/pdf_export.rs:RunCtx.pdf_asked(the run's input or any stored user message mentions "pdf", case-insensitive); otherwise the dispatcher dropsexportfromdocumentcalls and the result sayspdf: "not written: …".tools/v2/document/sections.rs: a heading without a heading style (bold Normal "Điều 3.", "Chương II", "1.", "II.") ends its section at the next paragraph of the same look (style, bold start, lead) or a styled heading, the last one before the next table; a plain paragraph is no section heading (was: the section ran to the end of the document);insert_section {after: <paragraph>}inserts right after it; a note inwarningsnames the blocks.services::office_templates::set_one+ IPCset_project_office_template {kind, path}(the other template is kept unless its file is gone);explorer/officeTemplateMarks.ts(provide/inject fromHarnessExplorer),explorer/OfficeTemplateMenuItem.vuewith a [?] tip, badge inFileTreeItem.vue(its duplicate icon map replaced bystudioFiles.getFileIcon); project settings raiseamba:office-templates-changed; mock IPChandlers/officeTemplates.tskeeps templates per project.OfficeTemplateSetting"copied" hint now only for a picked absolute path.Fixed: a task on Google Vertex AI shows its progress while it works. After you send a message with a Gemini model on Vertex, the chat now shows the agent's steps (files read, tools used, a retry after a quota limit) as they happen, the same as with Claude. Before, the chat stayed on your message until the task ended, and you had to open another page and come back to see the work (TASK-717).
Internal (TASK-717): root cause in
useAgentRun: the live assistant turn was created only byensureStreamingAssistant, which only arun:stream/run:reasoningdelta called. Claude streams a reasoning summary in its first seconds; Gemini on Vertex (runs 877d995a, 1a74b304 of conversation a7dcf0a7) answers tool-only steps (model_response.content: "", nothinkingevent) and its answer arrives throughfinish, so no delta ever came and the steps had no turn to render in untilrun:finished; a remount (History → back) rebuilds the turn fromattachToActiveRun. The backend loop and its events were normal; thethinking_origincontext_build, thecall_<uuid>ids and thevertex_quotaretry were not involved, and thegetApplicationProperty: called with invalid propertylines in the dev terminal are a WebKit/AppKit log unrelated to AMBA code. Now a liverun:eventof the followed, unfinished run that means work (model_request,tool_call,tool_result,retry_attempt,plan_update,progress) opens the live turn (replayed events do not);applyRunEventruns inside a try/catch so one malformed event is skipped with a warning, andrun:stream/run:reasoningignore payloads without a string delta. Tests:useAgentRunLiveTurn.spec.ts(5: Vertex-shaped run from the stored events, settle on finish, Claude with deltas keeps one turn, no turn for a finished run, malformed event/delta),ChatAgentTurn.spec.ts(tool-only live turn renders its work group).Fixed: a long Gemini think is no longer cut off and started over. When Gemini (Google Cloud, AI Studio or AMBA's Gemini route) thinks for minutes before a heavy step, such as writing 11 decisions with their payment sheets, AMBA now shows short summaries of what it is thinking while it works and waits up to 5 minutes for the answer. Before, it gave up after 2 minutes of silence ("Google không trả lời trong 120 giây") and sent the request again, so the model started thinking from zero each time and the task never moved on (TASK-718).
Internal (TASK-718): cause, run
1a74b304…(vertex,gemini-4-argon, conversation a7dcf0a7): 7 calls succeeded (the longest 173 s, 12,329 output tokens of which 7,466 reasoning), then the next step hitvertex_timeout … no response within 120 son every try (retries at 06:48:15 and 06:52:16 UTC), since Gemini streams nothing while it thinks and each try re-thought from zero.gemini/generation.rs:thinkingConfig.includeThoughts: trueon every thinking model (Gemini 2.5+, documented for 2.5 and later; Flash-Lite only at a raised level); the gateway forwardsgenerationConfigunchanged.gemini/parts.rs:thought: trueparts never reachcontentor the replayed parts; a signature on one is kept as anemptysignature block.gemini/stream.rs: thought text →ModelStreamEvent::ReasoningDelta(live reasoning, like OpenAI summaries; not counted again in usage, which stays Google'susageMetadata);Limits.first_byte_thinking= 300 s applies to the first byte and to every gap before answer output on a thinking model, withprogressheartbeats; a thinking request is not re-sent on a timeout (models that do not think keep 120 s + one re-send); errors name the limit (first byte,answer after thinking,next chunk). Gemini endpoints usegemini::stream::client()(per-read 330 s; the shared 180 s read timeout also bounds the wait for the response head and would have cut a 300 s wait). Tests:generation::thought_summaries_are_asked_of_every_thinking_model,vertex::tests_stream(thought summaries as reasoning with 500 ms gaps past the idle and total thinking limits, signatures replayed in order, usage; a silent thinking request waits once; silence after thoughts; whole answer), wire snapshotvertex_gemini.json.
0.6.4 — 2026-11-03
Fixed: an AMBA answer cut off on the way is easier to diagnose, and the gateway keeps quiet connections alive. When the connection to the AMBA gateway breaks while an answer is coming in, the retry note now says why and how far the answer got instead of only "error decoding response body"; the gateway also sends a small keep-alive while Claude thinks without output, so a slow or strict network is less likely to drop the answer (TASK-715).
Internal (TASK-715): cause, from
run_eventsof conversation 6b8f4eee (8retry_attempts on 2026-11-02, all recovered at once): reqwest maps any failure while reading a body toKind::Decode("error decoding response body") and itsDisplaydrops the cause; reproduced against a loopback server, a chunked body closed mid-way readserror decoding response body: request or response body error: error reading a body from connection: unexpected EOF during chunk size line. The cuts came 9 s–208 s after the request was sent (no fixed limit; the 90 s silence timer never fired), so bytes were flowing when the connection broke; the gateway ends every upstream failure with an SSEerrorevent, never a raw cut, so a decode error means the client ↔ Cloudflare connection itself closed. The unprefixed variant was the non-streaming fallback (stream_turn→chat) after the stream did not open, failing inresp.json(). Client:providers/body_read.rs(StreamProgress:<label> stream error: stream_cut bytes= events= elapsed_ms= last_event= content_streamed=yes|no cause=<reqwest error chain>, also on a stream that ends without a stop reason;read_jsonforchat:<label> error: body_unreadable status= bytes= elapsed_ms= cause=…, orcause=not JSON (…); body starts "<120 chars>");retry::classify_messagereads both markers asTransientNetworkbefore any status check andhttp_statusignores the details' digits (retry behaviour unchanged);streaming::after_failed_openappends why the stream did not open to a cut non-streaming retry and logs it. Gateway (needs a deploy,DEPLOY-CHECKLIST.md):sseStreamsendsevent: pingafter 15 s of upstream silence on the Claude routes (Bedrock sends no pings; not on the Gemini route), logsstream <outcome> after <ms>ms, <bytes> bytes sent, <pings> pingsfor every stream that does not endok, and SSE answers carrycache-control: no-transform. Tests:body_read_tests.rs(7, loopback cut server throughAnthropicProviderAMBA transport),streaming_tests.rs(1), gatewaykeepalive.spec.ts(5).Fixed: the agent keeps the way you talk to it for the whole conversation. If you write "tao/mày" (or "anh/em", or any other form of address), the agent answers the same way in every turn instead of switching to "mình/bạn" now and then. The short messages AMBA writes itself when the agent's turn ends with a question card ("Trong lúc làm có 2 điểm cần xác nhận; đang tạm theo mặc định đã chọn sẵn bên dưới…", "Đã xem qua các nguồn…") no longer use "mình/bạn", so they fit any conversation (TASK-716).
Internal (TASK-716):
runner/question_turn.rsfallbackVietnamese copy is pronoun-free (en/ja/ko unchanged); the "How you work" prompt (runtime/agent.rs) gains "Address the user as they address you, every turn ("tao/mày" stays "tao/mày")." and a few lines are tightened to stay within its 4 KB cap; thequestionTurnsdev mock follows. Test:question_turn::tests::the_vietnamese_fallback_names_no_one.Changed: your answers to the agent's questions read as a short confirmation. Once you answer, the question card no longer stays in the agent's turn as an extra "Đã hỏi bạn" block. Your reply shows a small "Xác nhận" header and one bullet per question, with your answer on the next line after "→". Answers you type yourself keep their line breaks. Questions that older tasks asked while running appear the same way, at the point where they were asked. The field for your own answer in the question card now grows with your text: Enter adds a line, Cmd/Ctrl+Enter sends (TASK-714).
Internal (TASK-714): removed
ChatAskedQuestions.vue,AgentTurnView.answeredand thechat_asked_*keys;chat_reply_confirmed(×4) added.resultAskReplywrites each question as asked (whitespace folded to one line, not the short header; the runtime'sanswer_from_replymatches question or header) and folds blank lines inside a typed answer so a block never splits.inTurnQuestions.tsno longer putsaskon the work segment and skips an empty one.ChatUserTurnrenders reply blocks as a header plus a bullet list.InteractiveQuestionCard's custom answer is an auto-growing<textarea>(capped at 192 px). Tests:resultAsk.spec.ts,questionTurns.spec.ts,InteractiveQuestionCard.spec.ts.Changed: the agent's questions are now a normal back-and-forth in the chat. When the agent needs your confirmation mid-task (after reviewing the documents, or when a milestone ends with a point that changes a report line), its turn ends with a short message about what it found and what it assumes, followed by the question card with the defaults already selected. Your answer is sent as your own message (shown as "JCB 2.525.081 → 338 tạm ứng cá nhân"), and the task continues from where it stopped, without surveying or re-reading anything. Pressing Gửi without changes accepts the defaults. Scrolling back shows every question and its answer. Questions that older tasks asked while they were running now appear in the chat too, at the point where they were asked (TASK-712).
Internal (TASK-712, ADR-084 amendment):
runner/question_turn.rs. In an attended chat run with a question channel,ask_user(hold_ask) and the milestone-boundary card (survey::at_boundary→hold_boundary) setRunState.question_stop. The step is saved (ResumeState.questionStop), the loop ends (LoopControl::Asked), and the run completes with the text sent with the card, or else a localized fallback (survey: what was surveyed and the defaults; boundary: "Xong bước k/n — title: checkpoint summary"). It storesmetadata.ask(theUserQuestionRequest+source) and keeps its resume state (checkpoint not resumable, so recovery and Continue ignore it; the open milestone child endsasked). The conversation's next user message (take_pending: latest run, same agent and model profile, asking turn still stored, not a milestone re-run) takes that state once and continues. It uses the same system prompt and history. The reply is parsed back into the card's tool result (answer_from_reply: header/question → picked labels and typed text, elseuser_reply). For a boundary card,survey::apply_answers+milestone_runs::advanceopen the next milestone with the answers in its brief. The plan, children (continue_open: same child id, tokens carried), survey rounds, read ledger and files carry over. Requests go to the asking turn's gateway budget id (budget::begin_child), so no fresh cap is opened per answer, and the turn cap keeps counting. Per-turn display state (steps, tokens, reasoning) starts afresh. A run resumed after a crash that had already saved a card ends on it again. The user message and the answering turn carrymetadata.answerTo, and the board settles the asking turn's question items. A question resent mid-milestone (asked at once) leaves the boundary queue. The survey directive asks for 2–4 sentences with the card. Switch without UI:questions.end_turn = false. Older runs:get_conversation_messagesattachesmetadata.inTurnQuestionsfromquestion_prompt/question_answeredevents (in_turn_questions.rs,run_question_events; consent cards left out; no migration). The chat (inTurnQuestions.ts, inmapDbMessages, also after a run completes) splits such a turn into the work before each card, the card, the reply, then the rest. Chat:resultAskasksmetadata.askwith options and defaults; the reply uses the question's header;ChatAskedQuestionsshows an answered card in its turn;ChatUserTurnrenders reply blocks as confirm lines; the livefinal_responsekeepsask/answerTo; the stepper haswaiting. Mock flagquestion-turns. Tests:tests_question_turns.rs(survey round → reply continues byte for byte with a compact repeat read and the same budget id, after a startup recovery; boundary card → next milestone's brief; a question that cannot wait keeps its child and credits; switch off),question_turn_tests.rs,in_turn_questionsand a board test;questionTurns.spec.ts(live, reloaded, older in-turn cards). The in-turn tests now set the switch off.Fixed: a long task cut off by the app closing can be continued from where it stopped. AMBA saves a task after every finished step, so closing the app (or the terminal it runs in, or a crash) loses only the model call in progress. When you open the chat again, the turn now shows "Tác vụ bị ngắt khi app đóng lúc 17:01 — tiếp tục từ bước 23" with Tiếp tục, which goes on from that step without redoing finished steps or asking an answered question again, and Bắt đầu lại, which sends your original request again. Before, the chat showed a generic error whose "Thử lại tác vụ" did nothing. Tasks already cut off this way can be continued too (TASK-713).
Internal (TASK-713): root causes in the chat:
attachToActiveRunreplayed the run's events and a replayedquestion_answeredsetstatustorunning, so theinterruptedbanner never showed and the run'serrorbecame an app-error card; andretry()returnednullwithout alastRequest, which a chat opened on a stored run never has (also the case for every retry offered on a failed turn after a restart). NowsettleReplayedTurnrestores the stored status of a non-live run (clears the question, settles the turn, keeps its steps in an assistant line),retryfalls back to the opened run (retryRequest),resumecontinues an interrupted turn in place, andChatInterruptedCard.vue(viaChatRunNotices,interruptedRun.ts: last event time,lastTurnIndex + 1) replaces the old banner; vi/en/ja/kochat_interrupted_*(thestudio_run_interrupted_*/studio_resume_run_btnkeys are gone). Runtime:resume::savewrites the resume state and the checkpoint in one statement (save_run_resume_point); measured at the incident's 909 KB state: ~13 ms serialize + ~0.15 ms write per step (debug build). WAL +synchronous=NORMALkeeps every committed step through SIGKILL; a graceful quit saves nothing extra (it drops the run task like a crash).recover_stale_runsalso recoversawaiting_inputrows and claims "Checkpoint saved" only with a resumable saved state; startuprepair_interrupted_runs(idempotent) marks interrupted rows without one not resumable;get_active_runskips an interrupted run a later turn superseded. Run 52906fd7 needed no data change: on a copy of the database it resumes from step 23 with its 39 saved tool results and the saved system prompt. Tests:tests_hard_kill.rs(a run dropped mid-call and a real child process SIGKILLed mid-call: recovery → resume from step 5, no tool repeated; startup repair idempotent; supersede; ignored: the incident on a DB copy, the write-cost measurement),ChatInterrupted.spec.ts(6). Mock UI:?mock=interrupted-run.Added: AMBA understands what each project file holds before it opens it. When files arrive in a project, AMBA prepares in the background a short summary of each one: for a bank statement or workbook the totals, the totals per month, the largest counterparties, the opening and closing balance and any row where the running balance does not add up, duplicate rows and empty cells; for a tax return (01/GTGT, 03/TNDN …) the form, the period and every indicator; for a PDF or Word file its title, headings, amounts and dates. Every table is also ready for calculations, and a search finds a word or a figure in any cell or page, with or without dấu, and says which file, sheet and row it is on. The agent uses these instead of reading the same files again and again. Everything stays on your computer (TASK-710, TASK-711).
Internal (TASK-710, TASK-711, ADR-084 phase 2):
runtime/project_context/digest/(table,balance,gdt,doc,render,store: deterministic digests by content hash in.amba/digest/<sha256>.json, ≤ 24 KB) andruntime/content_index/(analytics: sheets into.amba/analytics.dbassrc_<file>[_<sheet>]withsrc_rowand theamba_catalogtable;search: FTS5.amba/search.db, entries per row/page/30 lines/25 indicators, accent-folded matching incl.đ;state:.amba/digest/index.json;ops;schedule/forget/summary_for), scheduled on project open, after watcher changes and after OCR of a PDF.filesgainsdigestandtables;files searchreturns content-index hits (file › sheet › row / page / lines, snippet, SQL table) before workspace-index hits and takespath/globto narrow; works without a project folder on the workspace index alone.summarise::is_total_labelis crate-visible. Lowering snapshots updated for thefilesschema; tool-size ceilings +18 B (terserfilesdescription; chief-of-staff 25,599 B, under the 25 KB target). Timings in ADR-084 (50-file BCTC fixture: 5.9 s debug intake in the background, 2 ms re-check, 15 ms search). Tests:digest/tests.rs(7),content_index/tests.rs(5),fold(2),tests_perf(ignored timing report). Wired in after TASK-707/708:MapFile.digest(one-line summary, only for the digested hash) rendered in the lean map within its budget, the map's overflow pointer namesfiles {op: 'digest'}, the survey directive starts from digests, search andtablequeries. Context meter (TASK-709): the read-ledger file count falls back to the conversation'sread_ledger:<conversation>setting when the run's resume state has none, and ignores#writeentries (tests incontext_meter).Fixed: the progress spinner keeps turning on macOS without moving the mouse or scrolling. A running task's spinner (the progress line, the work group header and a running tool row) could stand still while the chat sat idle, or after you scrolled up and back, and moved only while the mouse moved; it now turns on its own, also while the app is busy (TASK-706).
Internal (TASK-706): root cause in WKWebView: every chat turn has
content-visibility: auto(TASK-694/701), and an animation inside a skippable box is unreliable: once the turn is skipped (scrolled away, or mounted off screen) and shown again, the rotation is no longer run by the compositor, and a skippable box at the bottom of the scrolled chat can keep its spinner frozen on screen with an idle main thread. Measured in the real Tauri window (debug binary, ScreenCaptureKit capture of that window only, ~25 captures/s, no input; distinct crops / captures): main after scrolling the live turn away and back, inside 600 ms busy blocks: 3/87 for all three spinners (before the blocks 37/40); a spinner in acontent-visibility: autobox at the bottom of the scroller: 1/90 idle for every variant tried (CSS mask, pre-705 SVG, border ring, WAAPI, SMIL, conic-gradient), the same variants in a plain box 56–90/90. With the fix all three spinners show 71–79 distinct of 75–81 captures inside busy blocks and 198–207/218 idle, in the default, scrolled-away-and-back and mounted-below-the-fold cases. Fix:ChatTimelinegives a turn that holds a.chat-spinnercontent-visibility: visible(:has()), so settled turns stay skippable;ChatSpinnercarries.cwg-spinfrom its first render (the TASK-705 two-frame start is no longer needed outside a skippable box). Dev only:/dev/spinner-lab(dev server; compiled out ofvite build, checked bycheck-dist-no-mock) shows a live work group and candidate spinners;AMBA_DEV_ISOLATED=1(debug builds) gives a second instance an in-memory keychain, a non-persistent webview store and an unfocused always-on-top window, for frame measurements next to a running app (HOMEpoints~/.ambaelsewhere).Changed: the context meter shows what the agent really sent. The gauge in the project header now follows the chat you have open and shows the size of the last request the model received, out of that model's real window (e.g. "413k / 1M"), instead of an estimate that looked the same in every project. Open it to see what the request was made of (instructions, skills, tools, project map, facts, conversation, tool results, thinking), how much came from the cache, the credits of the turn so far, the step of a big task and how much old output was left out. It moves with each answer while the agent works. A chat with no request yet shows an estimate, marked as such. "Những gì agent biết" opens from the meter, with the number of files, facts and files read (TASK-709).
Internal (TASK-709, ADR-084 §5): the runner records
model_request.context(estimated tokens per part,cleared, open milestone child, turn credits; counts only) in a hook after AMBA's tool-observation pruning (runner/context_parts.rs,runtime/context_meter/parts.rs: system prompt split by its runtime headings, messages by role and block);RunState.pruned_tokens/server_cleared; newModelStreamEvent::ContextClearedfrom Anthropiccontext_management.applied_edits→model_response.contextCleared.get_context_meter(commands/context_meter.rs,runtime/context_meter/{mod,view}.rs, storagelatest_model_events/latest_project_model_conversation): the latest answered request of the conversation (else of the project's latest), parts scaled to the measured input,pendingwhile a newer request is in flight, window from the catalog (amba::pairs::context_windowfor AMBA pairs,models.manifest.jsonotherwise;get_context_breakdownlost its name-matching table and returns 0 when unknown), knows from.amba/context.json(read only) and the run state'sreadLedgerwhen present; falls back to the static estimate (source: "static_estimate"). UI:useContextMeter(refetch 250 ms after amodel_responseof its conversation,model_requestmarks pending),ContextMeter.vueredesign with [?] tips,ProjectChatexposesopenConversationId→ProjectStudio→ProjectHeader; vi/en/ja/kometer_*keys replace the oldcontext_*meter keys. Mock UI:get_context_meterper conversation (finance 182k, ops 38.9k on Gemini),?mock=long-runmoves with each live step. Tests:context_meter::{parts,view}(10), window catalog, runnertests/context_meter.rs, AnthropicContextCleared,ContextMeter.spec.ts(6).Changed: a big task over many files reviews them first, asks once, then builds. When a project has several source files and you ask for something large (a full set of financial statements, for example), the agent first reads each file once, writes what it found to
workings/_survey.md(key figures per file, mismatches, what it intends to assume) and asks you one card of 5–8 questions, each with its default and what it changes ("JCB 2.525.081: mặc định 331; nếu đã trả bằng tiền cá nhân → 338"). Sending the card as it is accepts every default. It then builds from that, without reading the same files again. A question that comes up while it works is asked when the current step ends, never only after the task is done. Small requests run as before.Changed: the agent stops re-reading the same files and its own output. It remembers, per conversation, what it has read: a later step that starts fresh gets the list ("already read: …") instead of opening the files again, a repeat read of an unchanged file returns a short summary, and a file that changed is read in full. A spreadsheet the agent writes now reports the values it computed (totals included), so it no longer opens its own workbook to check them. The project overview the agent gets is shorter: business dates appear as ranges, and a file's detail is capped.
Internal (TASK-707, TASK-708, ADR-084 phase 1): read ledger
runner/read_ledger.rs: everyreadandtableload is recorded per conversation (settingread_ledger:<conversation>, also in the resume state) as file, content hash, range (part, cursor, detail), step and a takeaway derived from the result (tools/v2/read/takeaway.rs: rows, header,SUM/SUBTOTALtotals; CSV rows and header; pages; table columns). Milestone child briefs and lean resumes list it (newest first, ≤ 40 lines / 6 KB, changed files marked); a repeat read of an unchanged file and range whose result or takeaway is in the current context (and not pruned) returns{compact, takeaway, excerpt ≤ 2 KB, note};readtakesfresh: truefor everything; a changed hash reads whole withfile_changed. Write values:workbookresults carryvalues(each written sheet as a read shows it, whole when it fits, else the written block; ≤ 6 KB, 4 sheets),holds(rows, header, totals) andwhole; a read of a sheet the run wrote, unchanged since, is served from that write (from_write);tableloads reporttotalsof numeric columns. Survey → Ask → Buildrunner/survey.rs: attended task runs in a project with ≥ 3 files undersources/get a## Survey firstprotocol (## Survey doneonceworkings/_survey.mdexists); the survey phase past 15 % of the turn cap gets one notice; at most 3 question cards before the build; once a milestone's output is written,ask_useris recorded and the runtime asks the recorded questions in one card at the next checkpoint (answers to the model and the next child's brief), andfinishis held until they are asked.ask_usertakes up to 8 questions. Lean mapproject_context/render.rs: business dates asfrom..to (n dates; no dates a→b), 1.2 KB of sheets/headings per file,context.md's map within 3 k tokens with an overflow pointer. Switches without UI:context.read_ledger,context.survey. Long-task suite:long-bctc-survey(five sources, re-reads, read-backs, six questions, one late) run with phase 1 on and off; on the simulated model: 1.2 vs 6.17 full reads per file, 0 vs 13 own-output read-backs, 504 k vs 1,307 k input tokens (−61 %), 228 vs 482 credits, 5 questions before the build + 1 at a boundary vs 6 afterfinish.Fixed: the spinning progress indicator turns smoothly again on macOS, even while the app is busy. The spinner of a running task (the progress line, the work group header and a running tool row) used to stand still or jump about once a second; it now turns at the screen's frame rate and keeps turning while the chat processes a large step.
Internal (TASK-705): root cause in WKWebView: a CSS rotation that starts in the same frame Vue inserts its element is never handed to the compositor, so the
mdi:loading<svg>(and an HTML span with the same class at mount) was redrawn only when its line repainted (the clock tick). Measured in a WKWebView host that captures its own window (ScreenCaptureKit, ~30 captures/s) with the main thread busy-looped 600 ms of every second,?mock=long-run: before, the progress-line and work-group spinners showed 1 distinct image per 600 ms block and 1–3 in ~2.5 s between blocks (a JS-driven control: 1 per block); after, 16–19 distinct images out of 16–19 captures in every block and every capture between blocks (cold load, re-opened chat mid-run,long-think,long-history, window hidden and shown). An inline<svg>injected later turned fine, so SVG was not the cause. NewChatSpinner.vue: one<span>with themdi:loadingpath as a CSS mask,.cwg-spinadded two animation frames after mount (not restarted by clock ticks or step updates; reduced motion still turns it off), used byChatRunProgress,ChatWorkGroupandChatToolRow. Jank monitor (src/lib/jankMonitor.ts,jankMonitorInstall.ts): a rAF loop that runs only while IPC events, invoke replies or input arrive and stops after 5 s of quiet; each frame gap > 100 ms becomes one line with the Tauri events (run:eventsplit by event type), invoke replies by command and Vue component updates of that frame, as counts and approximate sizes, never content. Lines go throughlog_ui_jankto the runtime log, targetamba::ui_jank(thetauri devterminal); on by default in debug builds, in a release build only when started withRUST_LOG=amba::ui_jank=debug;window.__AMBA_JANK__keeps the last 100 records. With it,?mock=long-run,long-bctc,long-think,long-history(newlong-bctc: 140 stored steps, ~1,300 events, one call in five returning a 50–200 KB table) showed no frame over 100 ms during 60 s of streaming in WKWebView; the only long frame is opening the chat (228 ms for 30 turns plus the 1,300-event run, 0 without the history).Fixed: an old cost-cap card no longer comes back after you continue a task. When a task had paused at its cost cap, was continued, and later stopped at the AMBA 5-hour limit, pressing Tiếp tục showed the old "Lượt này đã chạm trần chi phí…" card again under the working turn and under its answer. A cost-cap card now shows only while it is the turn's open question; once the task goes on in the same turn it is gone, also after reopening the chat. A turn that ended at the cap and was continued in the next turn still shows its quiet "continued" line (TASK-704).
Internal (TASK-704):
budgetTurnOfno longer returns a settled card formetadata.budgetContinued(the in-turn resume flag the runtime stores on the final turn, TASK-690); the cap card comes from a live or replayedamba_runnotice, or a storedbudgetStopturn. Root cause: after a quota resume,continueResumedTurncleared theamba_quotanotice and the turn'sbudgetContinuedbrought the settled cap card back. Mock?mock=amba-quotaand?mock=amba-budget: the stored answer carriesbudgetContinued; the quota mock's successful Continue works ~3 s before it completes. Tests:ChatQuotaStop.spec.ts(live resume to completion, stored answer),ChatBudgetSettled.spec.ts,useAgentRun.spec.ts.Changed (gateway admin): the admin page signs in with VNAppMob ID, and an account's limits can be reset instead of raised. "Đăng nhập bằng VNAppMob ID" signs in through id.vnappmob.com for users with the
amba-adminrole; the signed-in name and Đăng xuất are at the top right, and the admin secret stays as a folded fallback until it is switched off. On an account, Reset hạn mức restarts its 5-hour, weekly or 30-day window from now (with an optional reason), so a blocked user can work again at once; the panel shows "Reset lúc HH:MM bởi <admin>". Usage history and billing are kept (TASK-703).Internal (TASK-703, ADR-076 amendment):
infrastructure/model-gatewaysrc/admin/oidc.ts(discovery, PKCE S256, code exchange, RS256 JWT verification over the cached JWKS with refetch on an unknownkid, roles fromrealm_access/resource_access[client]of the ID or access token),session.ts(HMAC-signed purpose-bound cookies__Secure-amba-admin(8 h),-flow(10 min),-idt;AdminActor),auth.ts(/admin/login,/admin/callback,/admin/logout,/admin/session;requireAdmin: Keycloak session withx-amba-csrf+ same-origin on changes, or theADMIN_SECRETbearer whileADMIN_LEGACY_SECRET_LOGINis on; unchanged withoutKEYCLOAK_ISSUER),audit.ts,resets.ts(POST /admin/accounts/:id/reset-usage {windows, reason?},resetsin the account detail, list sums from the last reset).AccountQuotaPOST /reset: per-window marker{at, carry, opusCarry}(week includes Opus/week), dropped once the window passes it. VarsKEYCLOAK_ISSUER(default empty),KEYCLOAK_CLIENT_ID,KEYCLOAK_ADMIN_ROLE,ADMIN_LEGACY_SECRET_LOGIN; secretsADMIN_SESSION_KEY, optionalKEYCLOAK_CLIENT_SECRET. Migration2026-11-02_task-703_admin_audit_quota_resets.sql(additive:admin_audit,quota_resets). Web key writes answer 503 withoutADMIN_SECRET. Tests:adminKeycloak.spec.ts(12),quotaReset.spec.ts(11), console reset flow inadminPage.spec.ts.Fixed: the chat stays smooth while the agent thinks and writes. A long answer, a growing table or an open "Suy nghĩ" no longer redraws all of its text on every few words, so the progress line, its clock and scrolling keep up during long thinking and long answers; the model's text also reaches the window in fewer, larger pieces. A reply line such as
| Tổng | 100 |followed by---no longer freezes the chat (TASK-701).Internal (TASK-701): measured with
?mock=long-run,long-think,long-history(new flags: one live step streams ~40k chars of reasoning at 60 deltas/s, then a ~12k-char markdown answer with a table; 30 stored turns above it;__AMBA_MOCK_IPC__.longThink(opts)/longThinkPlan(opts)). Causes:sanitizeHtml.runpassed its config toDOMPurify.sanitizeon every call, which re-parses the whole config (tag/attribute sets) each time, andMarkdownMessagesanitized every table cell in its render function and re-rendered the whole text on each frame. Headless Chrome with 4× CPU throttling, live answer phase: main thread 859 → 335 ms/s, 44 → 60 fps, worst frame 50 → 17 ms; expanded "Suy nghĩ" while it streams 858 → 280 ms/s, 53 → 60 fps; collapsed thinking ~70 ms/s before and after (it renders no markdown). WKWebView (WebKit, native per-delta script evaluation like Tauri), event-loop lag above idle while an expanded thinking / answer streams: +138 / +142 ms/s → +4 / +1 ms/s. jsdom bench (thinkingStreamPerf.spec.ts): ms per frame late in a 150-row table answer 8.86 → 0.88, cell renders 43,895 → 454; expanded thinking 26.9 → 0.6. Changes: one DOMPurify instance per profile configured once (setConfig);components/markdownBlocks.tscuts markdown into blocks (code, table, paragraph groups ending at a blank line or after ≤ 12 lines at a non-paragraph line) and reuses unchanged blocks and cell HTML (heading slugs and the UI language are part of the cache key);useSmartScrollfollows streamed content once per frame;ChatThinkinghas no spinner of its own (the progress line spins),.cwg-spingets its own layer, dead.spinrules removed. Runtime:runtime/execution/live_deltas.rsbatchesrun:streamandrun:reasoningdeltas to at most one event per 50 ms per kind (first delta sent at once, order kept, the batch is sent when its window ends even if the stream pauses); run events and persistence unchanged.Fixed: a task stopped by the AMBA 5-hour limit can be continued, and the chat says so plainly. When your AMBA quota runs out in the middle of a task, the turn now shows "Hết hạn mức 5 giờ — tiếp tục được lúc 12:31" with a Tiếp tục button, instead of a settled cost-cap card or a service-error message. Tiếp tục goes on from the step in progress; finished steps and their checkpoints are kept. Pressed before the reset time, it still tries (your limit may have been reset); if the limit is still used up, the same note comes back and nothing is lost. Tasks already stopped this way before this version (they showed as failed) can be continued too (TASK-702).
Internal (TASK-702, ADR-083 amendment): new
RunStatus::Paused("paused", no schema change):account_stop::stop_run(any window exceptamba_run) andturn::fail_provider_errorstore it when the saved step is kept (resume::stopped_status);background::finished_payloadkeeps it;budget_continue::unsettled_runreturns failed or paused runs.milestone_runs::resumetakes aStop(Crash/Budget/Paused/Transient): a paused turn adopts the stopped child's closed row (tokens, credits) and opens a new attempt (reasonresume) in that child's context, so the refused request goes out again byte for byte under a fresh child id. Startup repairSqliteStorage::repair_paused_runs(incleanup_orphaned_runs, idempotent,updated_atkept):failedruns with a saved resume state, a resumable checkpoint and a last resumable non-amba_runprovider_errorbecomepaused. Chat:budgetTurnOflets a later non-cap notice win over abudgetContinuedturn (the root cause of the hidden notice);ChatQuotaStopCard.vueforamba_quota(Continue →resume_run, or Retry when nothing was saved; [?] tip);finishRuntreatspausedlikefailed;StatusBadgepaused; vi/en/ja/koamba_stop_quota*reworded,amba_quota_tip,run_status_paused. Tests:tests_quota_pause.rs(3),tests_resumestatus,ChatQuotaStop.spec.ts(the incident's event sequence, refused Continue),ChatAmbaStop.spec.ts. Mock UI:?mock=amba-quota.
0.6.3 — 2026-11-01
Fixed: continuing a chat on another provider no longer risks a failed or degraded turn. When the next message of a conversation runs on a different provider (for example Claude on Bedrock, then Claude on the Anthropic API), the agent's earlier hidden reasoning is left out instead of being sent where it was not made; your messages, its answers and its tool results all stay (TASK-700).
Internal (TASK-700, ADR-074 amendment):
ContentBlock::Thinking.origin(serde-optional; old rows parse asNone) holds the endpoint identity fromproviders/thinking_origin.rs::endpoint_identity(amba:bedrock/amba:anthropic/amba:vertex, else<provider kind>:<provider id>). The runner stamps it on every response (turn::request_model_responsewith the profile actually used, wrap-up and corrective turns) andRunCtx.thinking_originholds the run's.context_build::retain_own_thinking→thinking_origin::retain_forkeeps only the current endpoint's thinking in a new run's replayed history (no origin: kept while the conversation's last known endpoint is the current one or none is known), logs one info line and emitscontext_build {source: "thinking_origin", dropped, from, to}; a fallback turn's request copy gets the same filter. Same endpoint: wire body and prefix digest unchanged; lowering snapshots unchanged. Tests:thinking_origin_tests.rs(6),anthropic/tests_origin.rs(3: Bedrock → Anthropic API with tool pairs, byte-for-byte same endpoint, Claude → Gemini → Claude),tests_provider_blocks(endpoint switch event),tests_resume(origins kept on resume).Changed: with an AMBA account you pick the model together with its provider. Every model picker lists each model your account can use on each provider as its own choice, for example "Claude Sonnet 5.5 · Bedrock", "Claude Sonnet 5.5 · Anthropic API" or "Gemini 3.8 Flash · Vertex AI", and Settings → Models → AMBA account shows the same list. A task stays on the provider it started with, also when you continue it later. If a provider is not enabled or not ready for your account, the task stops with a message saying so instead of moving to another provider. The data-flow log names the path ("AMBA gateway → Anthropic", "AMBA gateway → Google Cloud Vertex AI"), and the privacy policy lists Anthropic and Google Cloud Vertex AI as processors for accounts that use them (TASK-699).
Internal (TASK-699, ADR-076 amendment):
providers/amba/pairs.rsreadslimits.modelsfrom/meand/redeemintoAccountInfo.modelPairs(none = the plan's models on Bedrock);account::sync_profileskeeps one profile per pair and renames them "<model> · <provider> (AMBA)";AccountStatus.pairs. The provider is part of the profile id (amba::pair_profile_id/upstream_of; Bedrock keeps the oldamba-<model>id, othersamba-anthropic-…/amba-vertex-…), so stored choices andruns.model_profile_idcarry it and resume keeps it; no migration.AnthropicTransport::AmbaGateway.upstreamsendsx-amba-upstream; avertexpair resolves toamba::gemini::AmbaGeminiProvider(gateway Gemini route throughgemini::stream::Call, adapter kindvertex,x-amba-run-idincl. milestone child ids, run spend via the newstream::Endpoint::answer_headers). Ledgervia/region per provider (Upstream::ledger_via). Refusals →amba_provider_required/amba_provider_denied/amba_provider_unavailable/amba_provider_switchrun stops (vi/en/ja/ko messages).ProviderTier::of_profile("amba", gemini-*)is tier 2; theambaprice table falls back togooglefor Gemini. Onboarding sets the default to the account's first Sonnet pair; the account card lists the pairs one per line and the chat model menu is wider (full name on hover). Site: privacy and security pages (4 languages) disclose Anthropic and Google Cloud Vertex AI;DEPLOY-CHECKLIST.mdblockers ticked. Mock UI:?mock=amba-accountshows four pairs.Changed: a big task asks before it spends more than three times one step's cost cap. Each step of a big task has its own cost cap, so the steps of one turn together could spend a lot without asking. Now, when the steps of a turn near three times that cap, the task pauses with a short summary of the steps done and asks "Tiếp tục hay dừng ở đây?"; Tiếp tục goes on from the step in progress. The step list's [?] shows what the turn has used so far. Continuing after a pause also keeps the step in progress where it was instead of starting it over (TASK-698).
Internal (TASK-698, ADR-083 GĐ3): turn cap
runner/turn_cap.rs: a turn of milestone child runs may spend at mostmilestones.turn_cap_multiplier(default 3) × the per-run cap across its children since the last Continue (settled credits per child plus the planning requests, the per-run pause's margin); near it the turn neither splits nor advances and pauses withbudget_pause(Scope::Turn)(compactturn_capwrap-up,provider_error.amba.run.scope = "turn"); Continue renews the allowance and resumes the open milestone (reasonturn_cap);plan.turnCap {credits, cap, multiplier, pauses}inplan_update/metadata.plan(stepper [?] tip),amba_budget_ask_turnandchat_milestones_turn_capin vi/en/ja/ko. Fixed from the GĐ3 eval: a Continue after a cost-cap pause of a child now goes on in that child's context under a new child id instead of restarting the milestone from its brief (which could never finish a part that cannot be split); a closed child counts the credits the gateway settled, not its last request at the cost of the one before (which over-counted a cheap checkpoint after a heavy write). Long-task evalagent_eval/long_task/(pnpm run eval:agent -- --suite long-task,--liveopt-in): seven BCTC long tasks with forced breaks (cost cap, crash, outage, too-big milestone, giant write, re-run;tests/agent-eval/long-task/, built frombuild/finance.mjs) in three modes (child runs, GĐ1 lean, plain replay), a simulated model that works from what each request shows and a simulated gateway that prices requests and forces the breaks; metrics per mode (peak request size per context, splits and pauses, redone writes and re-reads, tokens, credits, checks, turn-cap pauses),report.{json,md}, baselinebaselines/long-task.json, a threshold sweep (eval-only settingsmilestones.lean_first_bytes,milestones.min_milestones,milestones.max_splits); in the gate. Results and recommendations (defaults unchanged) in ADR-083.Changed: each step of a big task now runs on its own, and the turn shows them as a stepper. Once you approve the plan (or said to just do it), the agent works through the steps one after another without stopping: each step starts fresh from what the earlier steps checked and kept, with its own cost cap, so a long task no longer drags its whole history along. The turn shows "Bước 3/6: Đối chiếu hoá đơn" and every step with ✓, in progress or failed (time, tokens and credits in the step's tooltip). A step that grows too big for its cap is split into smaller steps instead of stopping for Tiếp tục; if the app closes mid-step, resuming redoes only that step; Dừng stops the whole task. A step whose result is wrong can be re-run on its own from the stepper (↻): later steps that used its old result are marked to re-run and run again only when you ask. The project board's Work row shows the task's steps too (TASK-697).
Internal (TASK-697, ADR-083 GĐ1+GĐ2 Accepted): milestones as child runs driven by the turn's run (
runner/milestone_runs.rs): once a task turn works through a plan of ≥ 2 milestones, each milestone runs as a child run with its own lean context (earlier turns + the turn's request +## Milestone k of nbrief with the plan, checkpoints, figures and the user'sask_useranswers; the first milestone keeps the planning context unless it is over 48 KB), its ownx-amba-run-id<run>:m<step>-<attempt>(budget::begin_child, a fresh gateway cap), its own step allowance (step_limit) and a row inmilestone_runs(V051: status, reason, tokens, credits, plan snapshot). A checkpointed milestone hands over to the next child (advance, after the tool step); near the cap a child endssplitand a new child is asked to split the milestone (split_on_cap, twice per milestone, then the TASK-682 pause); a resume continues the open child (crash or cap: restart it from its brief; transient error: exact replay); Stop cancels all (one loop, one cancel flag,llm.run_activeunchanged). Re-run:RunIntent.milestoneRetry {runId, step}→start_runqueues aqueuedrow with the earlier turn's plan (retry_plan: the step to redo, later done stepsstale) and the new task turn starts in that milestone's child run (seed_retry);milestone.retry_unavailablecode.plan.runs/plan.creditsinplan_updateandmetadata.plan;context_build {source: "milestone"}per child start/end. Chat:ChatMilestoneStepper.vue(milestoneStepper/milestoneIconinplanMilestones.ts), retry →useChatDispatch.dispatchMilestoneRetry; board Work rows carrymilestones(BoardItemRow). GĐ1's lean resume now covers single-milestone plans; settingmilestones.child_runs = false(no UI) keeps GĐ1 for GĐ3's comparison. Eval: mock turns takespend [used, limit];milestones {children, splits};bctc-milestonesruns 6 child runs with a forced cap that splits B02-DN.Fixed: a long task no longer makes the chat slower the longer it runs. While the agent works, the turn shows its last few steps with the earlier ones folded into one "Các bước trước (37)" line (click to see them all), and nothing else in the chat redraws every second, so a 40-step or 100-step run stays as smooth as a short one (TASK-694).
Changed: one calm line says what a long task is doing now. Under the work steps a single line reads what is happening, which step and for how long, e.g. "Đọc file: TCB 2026Q1.csv · bước 23 · 04:12"; when the model takes a while on a step its clock joins the same line ("Đang suy nghĩ… 02:15", with the [?] tip) instead of a new row, and the pulsing status above the message box is gone. The chat keeps following new steps at the bottom unless you scroll up (TASK-694).
Internal (TASK-694): measured with
longRunProgress.spec.ts(40 steps, 357 events of runs cb4041a6/d49b3e2e's shape under four earlier 30-step turns, wired asProjectChat): per clock tick 10.5–12.3 component updates (every agent turn of the chat, sincethinkingStatusTextand the 1 snowMswent throughChatTimeline's slots) → 2 (ChatRunProgress+ oneChatLiveClock); per run event 0.98 → 1.85 ms early → late before, 0.63 → 0.93 ms after; tool rows mounted at the end 79 → 6; whole run 651 → 349 ms. Mock UI (?mock=long-run): live chat DOM 1,964 → 526 nodes at ~45 steps and 5,249 → 571 at ~105, script per event 1.2 → 2.4 ms before vs 0.9 → 1.4 ms after. Changes:liveClock.ts(useTickerper leaf,RUN_PROGRESS_KEYprovided byuseChatRunSessionfortoolStatus/retryStatus,currentActivity);ChatLiveClock(tool rows, "Suy nghĩ" clock) andChatRunProgress(TASK-687 model-wait folded in,chat-model-waittestid kept);ChatWorkGroupfolds all butRECENT_STEPS(3) while running and drops itsnowprop and header clock;ChatAgentTurnno derived plan for a live turn past 3 steps and nothinkingStatusText;useChatClockis the 30 s relative clock only;useChatTurnskeeps unchanged turn objects (and the list) and caches stored turns' handoffs;formatClockreuses itsIntl.DateTimeFormat;useAgentRunattach/resume share the live steps array;ProjectChatauto-scroll also follows step and call counts. vi/en/ja/kochat_work_earlier_steps,chat_run_progress_step;studio_*wait lines andrun_line_with_elapsedremoved. Mock-IPC flaglong-run(__AMBA_MOCK_IPC__.longRunBurst(n)).Changed: big tasks are done in checked steps, and a stop loses only the step in progress. For work with several outputs (for example a full set of financial statements), the agent first lays out 4–8 steps, each with what it will write and how it will check it, and asks you to go ahead unless you said to just do it. It writes one sheet at a time and checks each step before the next; the plan in the turn shows "Bước 3/6: …" and marks each checked step. If the turn reaches its cost cap or the app closes, Tiếp tục starts again from the last checked step with a short summary instead of the whole history, so it costs less and does not redo finished work (TASK-695).
Internal (TASK-695, ADR-083 Proposed, GĐ1):
update_plansteps take optionaloutput/check(PlanStep.milestone: PlanMilestone {output, check, checkpoint}) and the call optionalfigures;runner/milestones.rsverifies a milestone markedcompleted(finish/verify_milestone.rs,finish's file and figure-source rules,#Sheetmust exist), storesMilestoneCheckpoint {outputs, figures, summary, step, savedAt}, carries fields and checkpoints over plan updates, refuses with afixlist (twice per run, then accepts without a checkpoint), and addscheckpointtoplan_update. Resume afterbudgetStopor of aninterruptedrun with a checkpoint uses a lean history (earlier turns + the run's first message + a resume brief; saved system prompt; no assistant turn replayed, ADR-074) and emitscontext_build {source: "checkpoint"}; transient errors keep the exact replay.## Large tasksdirective after## Finishingin attended runs that offerfinish;habitnote on aworkbookcall writing > 3 sheets in a milestone plan. Tool definitions: +≈ 290 B for the fields, paid for by shorterread,files,edit_file,project_fact_record,update_planand web-tool wording (chief-of-staff with web tools 25,592 → 25,581 B; ceilings and lowering snapshots updated). Chat:planMilestones.ts("Bước k/n" line, checkpoint mark and tooltip inChatWorkGroup), vi/en/ja/ko. Eval: checkmilestones {min, checkpoints}, scenariobctc-milestones(office-v1 33).Changed: the agent's answers are short and the result shows the rest. After a task the agent writes a few sentences: what it did, the outcome and what it needs from you, with a link to its working notes for the detail (click it to open the file). The "Kết quả" block under the answer is the summary at a glance: the files as chips that open, the key figures as tiles (hover or tap one to see where it comes from), things worth checking as warning rows, and everything else folded under "Chi tiết" (TASK-692).
Changed: what the agent needs from you comes as a card, not a list in its reply. When a turn ends waiting on a figure, a file or a fact only you have, a card under the answer asks for it with a text box; Gửi sends your answers as your reply and the agent carries on. Choices with options still come as a card during the work (TASK-692).
Internal (TASK-692, ADR-074 and ADR-082 amendments): prompt "How you work" → The answer: a task's
finishsummary is 2–5 plain sentences (~600 characters) without headings, tables, figures or file lists the result shows, linking the working file (notes.md); a conversation answer is as long as the question needs; Working: what only the user has is aninputitem offinishasked in a card, questions never go in the text (the TASK-683 "list the questions" rule is gone); 4,077 B of 4,096.## Finishingdirective: 2–5 sentences, 3–6 key figures,inputwritten as the question and asked by the app.finishdescription says the same;ask_userquestions may come withoutoptions(typed answer;required: [question]; the eval stand-in answers "not known yet"); tool definitions −1 B on every profile (chief-of-staff with web tools 25,592 B), ceilings and lowering snapshots updated. Runner:open_items::questions(choice+inputtexts) stored asmetadata.result.questions(task and conversationfinish). Chat:ChatTurnResultfile chips (what in the title), up to 6 figure tiles, checks as warning rows, a "Chi tiết (n)" fold for more figures, file descriptions and open items;resultAsk.tsturns the latest turn'sresult.questions(ablockedresult stored before TASK-692: its open items) into anask_user-shaped request shown byInteractiveQuestionCardinProjectChat, whose answers go out as the user's reply (question\n→ answer, a task turn when the asking turn was one);interactiveQuestiontext questions (no options: the field is open, no "Khác"); answer links open files (MarkdownMessage→ChatAgentTurnopenFile,%20decoded); vi/en/ja/kochat_result_more,question_text_placeholder, blocked tip. Eval: checkscompactAnswer {max}(characters and section headers of the turn's message),figuresNotRepeated(afinish.figuresvalue ≥ 100 in the answer, in full or rounded),questionsInCard(no question list in the text; ablockedresult asks in a card),Talk.reply/figures/questions,asksBackandnextCheckcount card questions; scenarioconv-bctc-compact-answer(run d49b3e2e's answer shape as the negative),conv-bctc-no-continue-loopno longer lists its question in the summary; conversation suite 18 scenarios. Mock-IPC flagcompact-turn.Fixed: restoring a chat to an earlier point also clears what the removed turns put on the project board. Answers, decisions, work rows, open items and log lines from the turns you rolled back no longer stay on the Bảng tab or reach the agent in later turns; items from other chats and items whose text you edited yourself stay (TASK-689).
Fixed: restoring at a turn that stopped at the cost cap no longer removes the turn before it. The chat now cuts exactly at the turn you picked, so your earlier request and its answer stay in the conversation (TASK-689).
Internal (TASK-689):
rollback_conversation_messages_and_runsreturnsConversationRollback {deleted_messages, removed_run_ids}(ids selected in the same transaction).project_board::rollback::forget_runsdrops every item (all five sections) whoserunIdis a removed run, or whosechatIdis the rolled-back chat andcreatedAt≥ the cut (items of runs an earlier rollback already deleted), keepsuserEditeditems, returns a preference a removed run only refreshed to the run in its id prefix, and removes the ids fromappliedRuns;forget_rolled_back_runswrites atomically throughstore::update(no file is created for a project without a board) and the command emitsproject:board-updated(RollbackResult.boardProjectId).resolve_cutoffincommands/conversations.rs: a stored message id; else therunIdargument or the client id's suffix naming a run of the conversation (its start, or its stored user message); else auser-<epoch ms>id → the first stored user message or run from that time (1 s slack); else just after the latest stored message — the "latest user message" fallback that cut one turn too far is gone. Chat:ChatLine.runIdset on a sent line oncestart_runanswers and on a replayed unsettled run (user-<runId>);useMessageEditpasses it asrunId. Not covered: a Waiting item that a removed run settled (accepted card, continued stopped task) stays settled, and.amba/context.jsonkeeps facts and preferences the removed runs recorded.Fixed: long tasks use less of their cost cap. Dropping old file contents from a long run (TASK-687) made the model re-store most of the conversation in its cache every few steps, which cost more than it saved; a 37-step run hit its per-run cap after 8 minutes. Old contents are now dropped in larger batches, so this happens much less often, and the request itself stays cached when it does (TASK-690).
Fixed: after Tiếp tục on the cost-cap card, the paused answer no longer stays in the turn. The short "what was done so far" text written at the pause disappears once the run goes on; the turn shows the work and the final answer, and the card stays as a quiet "continued" line, also after reopening the chat (TASK-690).
Internal (TASK-690):
context_edit::CLEAR_AT_LEAST_TOKENS30k → 80k (trigger 120k and keep 6 unchanged) andcontext_edit::anchor_index: withcontext_managementsent,request::place_history_breakpointsalso marks the end of the first user message (≤ 4 breakpoints with system, previous turn and last). History, replayed thinking and the prefix digest are unchanged (onlycache_controlmarkers differ).tests_context_cost.rs: billed input in base-token equivalents on a synthetic 37-step run shaped like cb4041a6 — no editing 888k; TASK-687 settings 700k (4 rewrites) / 799k (6) and TASK-690 669k (2) / 686k (4) under the documented clearing rule / with the churn observed live. Runner:RunState::budget_continued(fromResumeState::budget_stop, kept inResumeState::budget_continued) storesmetadata.budgetContinuedon the final turn; the resumed model's history never held the wrap-up (state saved before it; now asserted intests_budget). Chat:model_request.wrapUpmarks the step (RunStepActivity.wrapUp);runEventReducer.continueResumedTurn(fromuseAgentRun.resumeand a replayedcontext_build {source: "resume"}) drops the budget wrap-up step and the paused text and setsbudgetContinued;budgetTurnOfshows such a turn's card ascontinued.Fixed: the agent no longer stops "Xong một phần" with a Tiếp tục button that goes round in circles. When it needs a decision from you (for example which loss carry-forward scenario to use), it asks in a card during the work and carries on with your answer in the same turn; work it can do itself (another sheet, a comparison table) it now does before it finishes. A turn that still needs something only you have, such as a figure, ends as "Chờ bạn trả lời" with the questions listed and no Tiếp tục button: you answer, and it goes on. Tiếp tục now appears only when a turn really stopped at its step or budget limit. Things worth checking yourself (open the file, look at a cell) are listed apart and no longer make a finished turn look unfinished; each status explains itself in its [?] tip (TASK-691).
Internal (TASK-691, ADR-074 amendment):
finish.open_itemsare{item, kind: agent|choice|input|check}andstatusleft the call;runner/finish/open_items.rssets the status from the kinds (agent→partial,choice/input→blocked, elsedone; checks →metadata.result.checks) and refuses, up to twice per run and not counted toward the two refusals that end a run (protocol.finishWorkRefused):agentitems while more than 3 steps are left and the AMBA run spend is more than about 3 requests from the 80 % pause, andchoiceitems in an attended run that offersask_user. Apartialaccepted near a limit carriesresult.limit(steps|budget); one accepted after two refusals has none.## Finishingdirective explains the kinds;finishdescription and example shortened to pay for the schema (+24 B per profile, chief-of-staff with web tools 25,593 B ≤ 25,600; ceilings and lowering snapshots updated); mock scenarios no longer sendstatus. Board:checksjoin the Open section. Chat:offersContinueonly formetadata.stoppedorpartialwithlimit(ChatAgentTurn,nextChips);ChatTurnResultshows "Chờ bạn trả lời" / "Cần bạn trả lời" forblocked, the user checks, and a [?] tip per status (vi/en/ja/ko);turnProtocolreads{item, kind}from a live call. Eval: checknoContinueLoop(fails apartialwithoutlimit, a choice —offers_options— left as an open item with noask_usercard, or a stop), scenarioconv-bctc-no-continue-loopwith a negative script of run d49b3e2e's shape; conversation suite 17 scenarios.Internal (TASK-696, ADR-076 amendment; gateway only, not deployed yet, replaces the TASK-693 grant shape below): the admin page grants (provider, model) pairs, one section per provider (Amazon Bedrock, Anthropic API: Claude Sonnet/Haiku/Opus 5.5; Google Vertex AI: Gemini), each with its status ("sẵn sàng", "chưa có key", "đã tắt") and a [?] tip naming the secrets to set; ticks of a provider without its key are disabled, the server refuses to add a grant there (400), and a stored grant whose key disappeared stays but is marked and not served.
GET /admin/providers(booleans and secret names, never values). One columnaccount_settings.grants({"bedrock":[…],"anthropic":[…],"vertex":[…]}), migration2026-11-01_task-696_provider_grants.sqlinstead of the unapplied TASK-693 file. No fallback between providers: a request names its provider withx-amba-upstream; without it the default provider (CLAUDE_UPSTREAM, defaultbedrock) serves it only if granted, else403 provider_required; a run naming another provider than its own is refused (400 provider_switch)./v1/account/melimits.modelslists the usable pairs[{model, provider, label}](pluslimits.modelIds).Internal (TASK-693, ADR-076 amendment; gateway only, nothing changes until the Founder grants otherwise): the model gateway serves Claude through Amazon Bedrock or the Anthropic API and Gemini through Google Cloud Vertex AI, decided per account on the admin page (new Model & nhà cung cấp card and ticks in Tạo tài khoản;
account_settings.models/claude_upstreams, migration2026-11-01_task-693_providers.sql; NULL = the plan's Claude models throughCLAUDE_UPSTREAM, defaultbedrock). Claude provider choice is sticky per run (x-amba-run-idbound inAccountQuota), with fallback to the next granted provider only on a run's first request on a connection error, 429 or 5xx before streaming;CLAUDE_UPSTREAM_OFFkill switch; a provider without its secret is skipped with a log line. New routePOST /v1/gemini/models/{model}:streamGenerateContent | :generateContent(Gemini wire, service-account OAuth2 in the worker, same auth, quotas, per-run budget and refusals). Pricing per provider (Anthropic API at list, Bedrock list × 1.1, Gemini at the Vertex standard price);usage_events.upstreamper row, shown in the request log. New optional secretsANTHROPIC_API_KEY,GCP_SERVICE_ACCOUNT_JSON; varsCLAUDE_UPSTREAM,CLAUDE_UPSTREAM_OFF,GCP_PROJECT_ID,GCP_LOCATION. The app does not use the Gemini route yet (follow-up).Fixed: workbooks the agent builds no longer open with clipped columns. Columns it writes text, amounts or dates into are sized to their content (at least 12, at most 45 characters wide, number formats such as
#,##0and formula results included), so headers like "Số dư (công thức)" and amounts no longer show cut off or as ####. A width already set in the file or asked for by the agent is kept, and no column is made narrower (TASK-688).Internal (TASK-688):
office::xlsx::autofit—Workbook::autofit_writtenruns after recalculation whenEditOptions.autofitis set (theworkbooktool only;spreadsheet_editand Doc-Ops patches unchanged): for each column with value-written cells (Workbook.written∩ the batch's declared cells) and no<col width>(nor hidden), the longest displayed value giveswidth_for_len(len + 2, clamped 12–45), applied only when wider than the sheet's default (sheetFormatPr), declared asColWidths. Text alone in its row on a multi-column sheet (titles that spill) and the top-left of a multi-column merge are not measured.number_len(sections, quoted literals, dates by code length, General ≤ 11) andtext_len(combining marks 0, East Asian wide 2) are shared withexcel_writer::compute_column_width.Fixed: a long task no longer runs twice after Tiếp tục. Pressing Tiếp tục on the cost-cap card while the run was still working (for example after reopening the chat) started a second copy of the same run: both wrote the same workbook, the cost doubled and Dừng stopped only one. Tiếp tục now turns off at the first click and stays off while that run is working; if a second start is attempted anyway the app refuses it and the card says the run is still working (TASK-687).
Changed: a long step shows that it is still working. When the agent spends more than about 20 seconds on one step (reading many statements can take minutes), the chat shows one quiet line such as "Đang suy nghĩ… 02:15" under the work header, with a [?] tip (TASK-687).
Changed: long tasks stay faster and cheaper. Once a run's request grows past about 120k tokens, the oldest file contents it has already read are dropped from what the model re-reads on each step (the six most recent stay whole, and the agent can read a file again when it needs exact figures), so requests stay well under 200k tokens instead of reaching 250k–358k (TASK-687).
Internal (TASK-687):
AppState::register_cancelreturnsAppResultand refuses a run id that already has a live flag (llm.run_active, vi/en/ja/ko insrc/locales/codes), never overwriting it;resume_runandcontinue_budget_runrefuse an active run (AppState::is_run_active) before any work; process step and test callers propagate the error. Chat:ChatBudgetCardrunning(fromChatAgentTurn.isRunningthroughChatErrorCards) and a refusal line (budgetTurn.refusedBudgetRuns);useAgentRun.resumekeeps following the live run onllm.run_activeinstead of marking the turn failed;ChatWorkGroupmodel-wait line (workGroupHelpers.modelWaitMs, shown from 20 s). Anthropic adapter: server-side context editing (providers/anthropic/context_edit.rs:clear_tool_uses_20250919, trigger 120k input tokens, keep 6 tool uses, clear at least 30k, protocol tools excluded; betacontext-management-2025-06-27) on adaptive-thinking models through the Claude API, Bedrock Mantle, Bedrock InvokeModel and the AMBA gateway (Capabilities::context_editing; off through another base URL; a 400 naming it turns it off for the provider). The bytes sent are unchanged (history, cache breakpoints, ADR-074 replayed thinking and resume state); the server edits its copy, which does not count as a history edit for thinking binding. The gateway already allowlistscontext_managementand forwards betas to InvokeModel, so no gateway deploy is needed; a gateway test now pins that.Fixed: questions with obvious options now come as a card under the agent's answer. When the agent reviews your figures and needs your choice (monthly or quarterly filing, company or personal card, "draft the statements now?"), its findings stay in the chat and the choices appear in one card below them instead of as a numbered list you answer by typing; documents or figures it needs still come as text. After you send the card the agent continues from your answers, and the findings stay at the top of its reply (TASK-686).
Internal (TASK-686): prompt "How you work" → Working splits questions by answer shape, not topic: a question with a few likely answers goes in one
ask_usercard (≤ 4, most blocking first, recommended option first), only open-ended asks stay in text, and with both the model callsask_userlast after its text; the TASK-683 rule covers open-ended answers (ADR-082 amendment); wording tightened elsewhere to stay within 4 KB.ask_userdescription: "Open-ended asks (a file, a figure) stay in text." (paid for by dropping "+ free text"; tool definitions unchanged in size). Runner: in a conversation turn text sent with onlyask_user(and bookkeeping) is an answer preface like a proposal's (turn_kind::text_role), the card's tool result tells the model the text is shown and not to repeat it, the final answer is the preface then the reply, and work after the card (start_task) puts the text back into its step (RunState::preface_steps). Chat:splitTrailingAnswershows text sent with a card as the live answer above a pending card. Eval: checkoptionsInCard(fails ≥ 2 numbered questions with options — " hay ", " hoặc ", " or ", "có muốn", "should I", a slash between words — and noask_usercall; also in--recheck), scenarioconv-review-ask-cardwith a negative script of run fa4f83b1's shape; mock-IPCask-batchsends findings with its card.Changed: the agent asks up to four decisions in one card. When it needs your choice on several points (for example which form the report follows, or whether balances are paid on the director's behalf), the chat shows one card with each question, its options and the recommended one already selected; "Khác" lets you type your own answer. Gửi sends all answers at once when each question has one. Requests for documents or facts stay as numbered questions in the reply (TASK-685).
Internal (TASK-685):
ask_usertakesquestions(1–4:question,header,options[{label, is_recommended}],is_multi_select); the single-question form is still read.UserQuestionRequest.questions/UserQuestionAnswer.answers(serde-default, so stored events and thepdf_ai_consentcard are unchanged),tools/question_answer.rsbuilds one tool result for the card (answersfor several questions, the earlier shape for one),record_answerkeeps every question's picks and text as the user's words (TASK-573), the board lists each question as an item, the eval stand-in answers per question. Prompt "How you work" → Working: decisions with options in oneask_user(≤ 4, recommended first, blocking ones first); documents or facts in text; the TASK-683 rule now covers turns waiting on documents or facts (ADR-082 amendment). Tool definitions −4 B on every profile (optionid/description,context,allow_customleft the schema); lowering snapshots updated.InteractiveQuestionCardrenders the stacked questions (header chips, [?] tips for context and option descriptions, "Khác" per question, one Gửi), vi/en/ja/ko; mock-IPC flagask-batch.Fixed: an agent that stops to ask you something now asks in the chat. When a turn ends waiting on your answers, the reply lists the questions themselves (short and numbered, details may stay in the report file), and the suggestion chips are possible answers instead of new tasks (TASK-683).
Fixed: the cost-cap card no longer offers Tiếp tục again after you continued. Once a later turn exists it reads "Đã tiếp tục ở lượt sau", also after reopening the chat; Dừng is remembered too, and pressing Tiếp tục twice starts only one continuation (TASK-683).
Changed: a turn stopped at the cost cap reads as a short wrap-up. It says which files were read and written and how to go on; the detailed findings are folded under "Chi tiết" and still go to the agent when you continue (TASK-683).
Internal (TASK-683): prompt "How you work" → The answer: a turn that ends waiting on the user lists the questions in the answer;
nextthen holds likely replies or nothing (ADR-082 amendment); evalnextCheckfails chips on an answer that speaks of questions but asks none (checks_next::checktakes the answer).budget_continue::continue_runstores a short wrap-up as the turn's text and the digest asmetadata.findings(context_build::load_historyappends it for the model) and refuses once a later run exists;account_stop::summarydrops the latest reasoning; wrap-upStop::Budgetasks for ≤ 5 bullets. Chat:budgetTurn.ts(budgetTurnOfsettled from a later user turn,budgetTurnText),AgentTurnView.budget,ChatBudgetCardsettled/runIdand a once-only Continue,useRunRecoveryguards a run's follow-up; mock-IPC flagamba-budget-continued(ADR-076 amendment).Internal (TASK-684, disk hygiene): Rust tests no longer leave databases and project folders in
$TMPDIR(21 GB in a month).scratch::TempPathremoves its path on drop, panics included, with the SQLite-wal/-shm/-journalfiles;child/canonicalkeep the scratch folder guarded when a helper hands out a derived path. 253 test call sites ofstd::env::temp_dir()migrated, ad-hoc Drop guards folded in, one-Arc fixture databases (amba-428,amba-exec,amba-ledger,amba-bench, …) in memory; the agent eval's scenario database is removed on every return.[profile.dev]/[profile.test]split-debuginfounpacked→packed: dsymutil leaves one.dSYMper binary instead of keeping every build hash's*.rcgu.o(3.6 → 30 GB intarget/debug/deps); backtraces keep file:line, crate rebuild 71 s either way, dependencies rebuild once per target dir.check:diskreports stale build hashes and$TMPDIRscratch, and--fixalways runs a new tier 0 (our crate's hashes beyond the newest 3 per crate and older than an hour;amba-*/amba_*scratch older than an hour; both safe whiletauri devruns);clean:build --stale-hashesdoes the first alone.Changed: a long task on the AMBA account asks before it reaches its cost cap instead of stopping with nothing. At about 80 % of a run's cap the agent pauses, writes a short answer of what it found so far, and the chat asks "Lượt này đã dùng 160/200 credit. Tiếp tục làm (thêm tối đa 200 credit) hay dừng ở đây?". Tiếp tục goes on with the same work from where it paused, under a fresh cap for the run; Dừng keeps the answer. A run refused at the cap ends the same way. A task that already stopped at the cap before this update shows the same question; Tiếp tục there carries its findings into a follow-up turn so the agent does not read everything again (TASK-682).
Fixed: a turn that stopped on a provider error no longer disappears from the chat when you leave the project and come back. Opening another screen (such as Mức dùng & Chi phí) and returning showed the conversation without that turn, though History still listed it; it now comes back with its steps, its answer and its Continue button (TASK-682).
Internal (TASK-682, ADR-076 §4 amendment): gateway
x-amba-run-credits/x-amba-run-limiton every/v1/messagesanswer withx-amba-run-idandamba.runCredits/amba.runLimitin the per-run 429 (quota.tsRunView,messages.tsrunHeaders); needs a gateway deploy, the app works without it. Desktop:providers/amba/budget.rsrecords the spend per ledger run frompost_with,pause_due(≥ 80 % or the next step would cross), segments (x-amba-run-id: <run>:s<n>,ResumeState.budget_segment/budget_stop); runner checks before each attended step (account_stop::budget_pause: wrap-upStop::Budgetwhen it fits, elseaccount_stop::summary),amba_runis resumable,provider_error.outputandamba.run {used, limit, paused};runner/budget_continue.rs+ commandscontinue_budget_run(resume, or for a pre-TASK-682 run a stored findings turn from its events and a follow-up prompt) andget_unsettled_run(a failed run whose turn was never stored). Chat:ChatBudgetCard(vi/en/ja/ko, [?] tip),useRunRecovery.handleContinueBudget,syncActiveRunreplays the unsettled run, the prompt is placed before replayed events, the chat scrolls to a replayed turn; mock-IPC flagsamba-budgetandamba-budget-legacy. Pro per-run default stays 200 credits (Founder).Added: suggestions for what to ask next. Under the latest answer the chat shows up to three short follow-ups the agent suggests, such as "Lập bảng chênh lệch theo kênh ra file Excel"; a click puts it in the chat box to adjust and send, nothing is sent by itself. They come with the answer, so they cost no extra request and work with every model (TASK-680).
Internal (TASK-680, ADR-082): next-prompt suggestions in band.
finishtakes an optionalnext: string[](never required, never refuses); a text answer may end with a fenced```nextblock, whichnext_prompts::splittakes out of the model's text inturn::process_response(also out of afinishsummary), so answer, steps, guards, stored message, history and checks never see it; tolerant parse, ≤ 3, lines > 120 chars dropped. Stored asmetadata.next(andfinal_response.next) for attended turns, not after a failure. Chat:ChatNextChipsunder the latest turn vianextChips(hidden while typing or running, ≤ 3 actions with the Continue button, a plain "continue" dropped there),stripNextBlockhides the block while streaming. Prompt rule in "How you work" → The answer. Tool definitions:next+31 B paid for by thefinishdescription's last sentence (chief-of-staff with web tools 25,576 → 25,573 B, eval chief-of-staff 24,954 → 24,951 B; all ceilings −3 B); lowering snapshots updated. Eval: run linenext+ informationalnextCheck(language, user voice, ≤ 80 chars,noInventedFigures), scorecard section "Next suggestions (informational)" in the JS and Rust scorers. Project-board waiting items are not merged into the chips: each already has its own action (question card, task card, Continue) that a composer fill cannot replace.
0.6.2 — 2026-10-30
Added: the agent can put key points on the project board, and the board can go into each chat turn. In a project chat the agent notes a decision, a risk or a follow-up on the Bảng tab (marked "Agent"), even while it is only answering a question. A new project setting, "Đưa bảng vào ngữ cảnh" (Project settings → General, explained in its [?] tip), hands the agent a short digest of the board on every chat turn (pinned, decided, waiting and open items, about 1.5 KB at most), so later turns and new chats in the project keep what was agreed. Off by default while it is measured (TASK-668).
Internal (TASK-668, ADR-079):
note {kind: decision|risk|follow_up, text}(tools/board_note.rs, runnerrunner/board_note.rs; effectContext, policy Allow, offered only in Agent-mode project chat turns, allowed in conversation turns; board itemsdecision/risk/follow_upwithsource: "agent", id<runId>:note:<kind>:<fnv1a(text)>so a retry in the run adds nothing).project_board::digest(pinned first, then open Decided/Waiting/Open newest first, never the log, ≤ 1,536 B cut by whole items with+N more) goes into the turn's own user message (context_build.rs, one call site), so system prompt, tools and history are byte-identical with the setting on or off (tests_board_note.rs); settingboard_digest_in_context:<projectId>withproject_board_get/set_digest_setting. Tool definitions:note+295 B paid for by shorterfinish,read,files,table,workbookandproject_fact_recordwording (chief-of-staff with web tools 25,597 → 25,576 B; profiles without those tools +74–84 B); lowering snapshots updated.Changed: an empty chat offers the agent's own skills as starters. Each built-in agent now has a few skills that fit its role (for example the financial analyst: P&L analysis, invoice and bank reconciliation, payroll audit; the business writer: document and contract review, executive briefing, marketing content), and a new conversation shows them as chips with their icon; a click fills the chat box with a ready request, nothing is sent. A board secretary built on the business writer no longer sees tax or VAT starters. Agents you installed earlier get the skills on the next launch unless you edited them; an agent without skills keeps the previous starters.
Changed: project templates are read when the work needs them, not sent with every message. A project made from a template, and the agent's own skills, are listed by name and a one-line description; the agent opens the full guide before doing that kind of work. Questions and advice no longer carry the template's file list, and a template's required files apply only when you ask for work (TASK-673).
Internal (TASK-673, M119, ADR-080): skills on demand.
runtime::skills::listingbuilds the## Skillssection (pinned skill = the template's skill by id oraliases, thenAgent::skills, each once, id + description, cap 3 KB) appended at one place inrunner/assemble.rsafter the stable head (identity, project context, mode, sandbox, manifest), outside Research mode; no skill body is injected (modes/templates.rskeeps the body only for checks and tests; the TASK-650 partial-request line moved into the listing intro).runner/skills_on_demand.rs:read skills/<id>/…is recorded inRunState::skills_read(metadata.skillsRead, eval lineskillsRead, kept on resume), issues norefand is not a source read; the rules skill is the pinned skill withdeliverables, else the first such skill read;template_gapsapplies only in task turns and to the rules skill. Catalog personas carryskills(meta.json, validated bybuild-agent-catalog.mjs;CatalogAgentItem::skills, version 2.0.0 → 2.1.0; install, eval harness and the template-version flow give them, a skills-only template version upgrades unedited agents); SKILL.md frontmattericonandlocales.<l>.starter;list_agentsreturnsskillCards(AgentListing),ChatAgentIntrochips fromskillChipswith the capability-pack playbooks as fallback. Eval: template-suite scripts read their skill first (build-scenarios.mjs), scorecard section "Skills read on demand (templates suite, task runs)" in the JS and Rust scorers. System prompt per templated project (mock, B): 143,284 → 134,023 in total for the ten; projects without a template list the agent's defaults as id + first sentence (≤ 120 characters; office-v1 mean 12,049 → 12,658 B);readservesSKILL.mdwith onlyname,description,deliverables,outputContractand the body (skills::served_text; input tokens per templates run in the mock 120,623 → 132,827); mock all suites unchanged (Claude 45/46, tier-2 43/46), skills read in 8/8 templates task runs. The bundled catalog changed (persona skills, skill icons and starters); publishing it to R2 waits for the Founder.Fixed: a sheet whose name contains
&,<or>(such asP&L) can be read by its name. The file reader listed it asP&L, so asking for sheetP&Lanswered "no sheet"; editing such a workbook in place keeps the name as it was.Internal (finetune session, M120 Sonnet 10:10 export):
get_xml_attr(context/adapters/shared) resolves XML entities in attribute values (sheet names inworkbook.xml, relationship targets);noInventedFiguresshares a scale word across numbers joined by-,/and~as well (951 / 1.005 / 872 triệu); recheck of the export:conv-explain-figurefail → pass, 61/61.Internal (finetune session, M120 Sonnet baseline): eval check
rowKeys(tpl-payroll-auditAdjustments: column A^NV\d+$exactly NV03, NV06, NV08, replacingrows4–6 that failed a correct sheet with a totals block) andofficeTaskrelaxtotalLabelColumn(stock-reconcile-count: the INV2 "TỔNG" label in B22 when A22 is empty); recheck of the 10-29/10-30 exports changes only Sonnet 05:55stock-reconcile-count(fail → pass) and the replayedtpl-payroll-auditrun passes.Internal (TASK-678, M120, ADR-081): web search through the AMBA account.
SearchProvider::Amba {base, token}+tools/web_amba.rs(POST {gateway}/v1/web/search, device token asAuthorization: Bearer,x-amba-run-id, body{query ≤ 400 chars, max_results}, one retry on 529); refusals become coded tool errors viaproviders::amba::web_error(amba_web_not_enabled,amba_web_quota window=… resets_at=…,amba_web_unavailable,amba_web_account reason=…), none of them a run stop; data-flow recordprovider: amba,detail.viaLEDGER_WEB_VIA("AMBA gateway → Tavily").AccountInfo.webEnabledcachesweb.enabledfrom/meand/redeem(missing block = false).AppState::refresh_web_toolschooses own Tavily > own Brave > AMBA account with web enabled > off (still lazy on first use, no secret at launch) and runs after a search key is set or deleted, an AMBA sign-in, sign-out, gateway change and a/meanswer that flipsweb.enabled; a run keeps its registry snapshot.search_credential_statusaddsamba {signedIn, enabled}andactive: "amba"(commands moved tocommands/web_search.rs). Tavily now gets its key as a Bearer header instead of in the body.Internal (TASK-678, fix): deleting one web search key no longer leaves the deleted key's tool registered while the other key (or the AMBA account) stays unused: the source is chosen again on every key change.
Internal (TASK-678): Settings → Mô hình AI → Tra cứu web shows a third card "Tài khoản AMBA" (in use with today's searches / own key first / not enabled for the account / signed out with a link to the account tab), the badge "Đang dùng qua tài khoản AMBA", and an "own key optional" [?] tip; the AMBA account card shows one web search usage line;
WebUnavailableFixoffers "Đăng nhập tài khoản AMBA" when signed out; mock-IPCamba-accountsearches through the account.Changed: an empty chat introduces its agent instead of a project banner. The "Sẵn sàng làm việc với …" card with file counts is gone; a new conversation shows the agent's name and role and up to four starters suited to it (click one to fill the chat box, nothing is sent), and nothing once the conversation has a turn.
Fixed: the model table in Settings → Mô hình AI (step 2) sits on a card like the sections around it instead of showing the grey page background in light mode.
Added: web search with your AMBA account. Once web search is turned on for your AMBA account, agents can search the web with no Tavily or Brave key of your own: each search costs 1 credit, with a limit per 24 hours and per 30 days (Free 50 / 300, Pro 200 / 1,500). Your own key, when you have one, is always used first. Searches pass through AMBA's gateway to Tavily; the gateway keeps a usage record, never the search words (ships with the desktop part, TASK-678).
Internal (TASK-677, ADR-081): model gateway
POST /v1/web/search(Tavily basic search with the org secretTAVILY_API_KEY, fail closed503 web_unavailable; body{query, max_results?, topic?, time_range?}, extra fields 400; normalised{query, results, provider}only); 1 credit reserved throughAccountQuota(web: true) plus sub-capswebDay/webMonthin searches (429web_day/web_month);GlobalSpendscopewebagainstWEB_DAILY_CAP_USD(10) at USD 0.008 per search, apart from the model caps; failed searches settle at 0; metering rowweb:tavily-basic, no query stored or logged; Tavily 429 → 529, 401/432/433 → 503, other/network → 502;/v1/account/mewebblock;LIMIT_KEYS+ admin plan and override editors; admin overview shows web spend and whether the key is configured (never the key); D1 migration2026-10-30_task-677_web_search.sql(additiveADD COLUMNs, run once); test harness applies migrations statement by statement;tests/web.spec.ts.Internal (TASK-677, ADR-081 phases): phase 1 key pool: Tavily keys entered in the gateway admin (Khóa tìm web: add, replace, disable, delete when unassigned) and assigned per account (account panel → Tìm web,
PATCH /admin/accounts/:id {webKeyId}); D1web_keys(AES-256-GCM, fresh IV, HKDF-SHA256 fromADMIN_SECRET, infoamba-web-keys-v1, last 4 in clear, key write-only) andaccount_settings.web_key_id;/v1/web/searchuses the assigned key, else403 web_not_enabled(uncharged) unlessWEB_SEARCH_GLOBAL = "on"(phase 2, org key); an undecryptable key (after anADMIN_SECRETrotation) shows "needs re-entry" and answers 503;/meand/redeemreportweb.enabled; the admin overview shows global key configured, phase, pool size and accounts with web search; testswebKeys.spec.ts.Internal (TASK-679, ADR-081; site pages held on branch
feat/m120-siteuntil the desktop release): privacy policy ×4 gains "Web search with an AMBA account" (gateway → Tavily under AMBA's account, metering row only, Tavily may keep and use searches) and Tavily as a processor; "Services you connect" now covers own keys only; terms ×4: Tavily's Acceptable Use Policy for web search through AMBA; API-keys manual ×4: a search key is optional with an AMBA account.Internal (TASK-672, ADR-080): the ten project templates are skills
catalog/skills/<id>/SKILL.md(template id = skill id; deliverables, output contracts,deliverableWordsand legacyaliasesin the frontmatter; vi/en/ja/ko names and descriptions inlocales), their directives rewritten fromMUSTrules into guidance (what to gather, what to ask when data is missing, what a good result contains) with every formula, file name and verifier requirement kept. The runtime reads directive text and template data from the bundled skills (modes/templates.rs), still always on and injected where it was;modes/template_data/removed. System prompts of the ten templated projects 102,686 → 99,275 B in total; mock templates suite 9/9 unchanged (input tokens per run 121,052 → 120,179); tool definitions unchanged (25,124 B).Internal (TASK-671, ADR-080): skill format and loader, no prompt or behaviour change.
catalog/skills/<id>/SKILL.md(frontmattername,description,deliverables,outputContract,locales; a JSON-on-one-line YAML subset; optionalreference/,examples/), compiled byscripts/catalog-skills.mjsintosrc/assets/catalog/agents.jsonskills: [{id, files}](bundled and published with the catalog);runtime/skills/parses, validates (sizes, unknown fields kept) and skips invalid skills;readservesskills/<id>/…in a project read-only (a project file at that path wins, with a note), writers refused there by policy confinement;src/domain/skills.ts; one sample skill (invoice-reconciliation, not wired in). Tool-definition bytes unchanged (read1438 B).Added: a "Trao đổi" suite in Settings → Nâng cao → Thử nghiệm → Đo bộ công cụ, next to Cốt lõi, Đầy đủ, Truyền thông and Mẫu dự án: fifteen questions, requests for advice and planning talks (the restaurant automation question from the 0.6.0 Windows run in English and Vietnamese, what to prepare for the annual financial statements, why a figure in a workbook changed, a bonus asked for without a bonus policy, how to organise folders, a change of mind, "tiếp tục" after advice, CPM vs CPC in a media project, Japanese and Korean questions, a weekly summary that should become a process, a question about a lease in Sources, and one request that does ask for a file). Each is scored on what you would see: no file written when none was asked, no figure that is not in your files or messages, a question back when data is missing, the answer in your language, and no "send continue" or wrap-up; Estimate cost prices the suite for Claude, Gemini and GPT profiles (TASK-658).
Internal (TASK-658):
tests/agent-eval/build/conversation*.mjs(15conv-*scenarios, ideal v2 scripts replayed by the gate; an "eager" script for the restaurant case and the "tiếp tục" follow-up that writes placeholder files and invents an award rate, which the gate requires to fail); checkswrites,noInventedFigures,asksBack,answerLanguage,cleanEnding(agent_eval/checks_talk.rs); scenario fieldshistory(earlier chat turns),negativeMocks,rubric(for a model judge; off in the gate and not judged yet); "tỷ lệ" after a number no longer reads as "tỷ"; labSuite::Conversation;pnpm run eval:agent -- --suite conversation; eval bundle 522 → 568 KB (guard 640 KiB unchanged).Internal (TASK-663): conversation scorer fairness after the first live baseline.
noInventedFigures(agent_eval/checks_figures.rs) holds only money amounts and percentages by default (kinds;["money"]for the general-knowledge scenarios bctc-prep, folder-plan, cpm-cpc, ja, ko, cashflow), skips inline code and labelled examples ("ví dụ", "e.g.", "such as", "例:", "예:"), never counts account codes (TK 152, 153), accepts the rounding a figure was written at ("khoảng 1,6%"), and withderivedaccepts worksheet row sums, their change between columns and the shares an explanation uses (the total row set aside); a range or list shares its unit ("từ 180 xuống 60 triệu");asksBackalso takesask_userquestions andtopic+aspects("thưởng" with "tỷ lệ"); conversation scenarios no longer requirefinishfigures;pnpm run eval:agent -- --rescore <runs.jsonl> --recheckscores saved answers again (agent_eval/recheck.rs, no model call). Baseline 2026-10-29 rescored: Sonnet 5.5 6 → 14/15, Gemini 4 Argon 7 → 14/15, GPT-6 Sol 12 → 15/15.Fixed: finished work is no longer reported as failed because the agent forgot to hand in its result. When the agent answers in text instead of handing in the result, or its result is refused twice over bookkeeping (a file left off the list, a figure cited to the wrong cell while the file holds it, too many figures), AMBA checks the files itself: if they are there and pass the same checks, the task ends as done, marked partial with a short note of what could not be verified, instead of "Chưa xong… Nhắn "tiếp tục"". A plain answer to a question ends normally, with no "send continue". You are still asked to continue when something really is left: a file you asked for that was not written, a reply cut off mid-way, or plan steps not done (TASK-661).
Internal (TASK-661):
runner/finish/ending.rssettlesno_finish/finish_refusedstops in one place (work left → incomplete as before; otherwiseverify::check_lenient,runner/finish/verify_lenient.rs: left-out files added, caps applied, unverifiable files and figures noted; a figure cited to one cell whose value no workbook of the run holds, a missing listed file, a requested template deliverable and the file verifiers still fail); runtime-closed results carryverifiedByRuntime: true,status: partial,protocol.resultChannel: "runtime";metadata.protocol.endedWithoutFinish{reason, outcome, workLeft?, problems?, notes?}; eval lines addendedWithoutFinishandverifiedByRuntimeand no longer count a runtime-closed result asendedWith: "finish"; ignoredagent_eval_replaytest (AMBA_EVAL_REPLAY=<jsonl>) replays scripted runs for A/B evidence.Changed: a slide deck or Word document with leftovers from its template is fixed while it is being made, not at the end. When the agent saves a deck that still has a sample slide from the agency template, template prompt text or an empty placeholder (or a Word file with an unfilled field such as
[Date]), it is told right away which slide and how to fix it, so the task finishes without an extra "not accepted" round; the final check before hand-in stays as it was (TASK-661).Internal (TASK-661):
runner/office_guard/write_note.rsreusesoffice_guard::check_file(same source baseline andofficeIntegritycontract asfinish) after each successful v2deck/documentwrite and addsleftovers[] {slide?, kind, why, fix}(max 5,more_leftovers) and a fixingnextto the result;tool_dispatchhook; testsoffice_guard::tests::the_write_note_reports_what_finish_would_refuse,tests_office_write_note.rs(mock: sample slide 8 noted, deleted, finish accepted first try; unfilled Word field; baseline). A/B replay of the 7media-pitch-deckruns refused atfinishfor a sample slide (exports 10-26…10-29): all 7 noted at the first successful deck write, same slide.Internal (TASK-664): eval scorer fairness for the media and templates suites after the M117 baseline.
agent_eval/ask.rsanswersask_useras the scenario's user (userReply; otherwise a neutral reply that never picks an option carrying a figure); the app'sask_useris unchanged. Media: the summary budget counts on any budget/total row, and a "Cần bổ sung" row passes when it names the missing evidence. Templates:finishfigures are not scored when the answer is the result (nofileExistscheck),answerMentionstakesaliases(payroll codes ↔ roster names), a title alone on its row is never a table header, and percentages handed in as fractions with unit "%" are read as percentages. Transcripts keep the text sent with tool calls and answers up to 16 KB. Re-scored without live spend: media GPT-6 Sol 3/5 → 5/5; templates GPT-6 Sol 7/9 → 8/9, Claude Sonnet 5.5 7/9 → 8/9, Gemini 4 Argon 8/9 unchanged.Changed: questions and requests for advice get a plain answer, without files nobody asked for. In Agent mode a chat message now starts as a conversation: the agent answers in your language, may read the project's files and ask you, and does not write files or force a "send continue". When you ask for a file, a filled form or a report (or name a file to create), it switches to a task and the full checked pipeline runs as before. The agent can offer a piece of work as a card under its answer; the card's button starts it. The "continue" line follows your language.
Internal (TASK-660, ADR-078):
runner/turn_kind.rs(turn kinds for user chat turns in Agent mode: task from the start onStartRunRequest::taskor a request naming a file the project lacks; otherwisestart_task), writers refused at dispatch in a conversation like Research mode (same tool offer and prompt, cache-safe), conversation answers via the lean path only (no follow-through detectors, no deliverable guard),finishin a conversation accepted unverified, text sent withfinishkept as the chat answer,propose_task→metadata.taskProposal→TaskHandoffCard,metadata.turn {kind, startedTask}; tool descriptions offinish/propose_process/update_plan/ask_usershortened to fit the two new tools (chief-of-staff with web tools 25,597 / 25,600 B); eval lines carryturnKind/startedTask, task mock scripts start withstart_task.Added: "Tất cả bộ (61)" in Settings → Nâng cao → Thử nghiệm → Đo bộ công cụ: one sweep runs the full core, media, project-template and conversation suites, with pass counts per suite and model at the top of the scorecard and an estimated run time per model before you start.
Internal (M117 scorer fixes):
Scenario::asks_for_change(any check that reads a written or edited file,Check::inspects_output) decidesturnMismatchandanswer_is_result, so the 13 office-v1 in-place edits (officeTask,cellText,colWidths… with nofileExists) are no longer countedchatAsTaskwhen a task is started;noInventedFiguresreads a markdown table's bare numbers in the unit of its column header, top-left cell or a unit note just before or after it ("(Đơn vị: triệu đồng.)"), andderivedadds sums across adjacent columns (the quarter);finishFiguresreads a fraction with a ratio unit (tỷ lệ,ratio,%) as a percentage and accepts the precision written (18,0%for 17.98, not18%for 17.6);--recheckrecomputesturnMismatchandfinishFigures(acceptedfinishcall) and replays anofficeTaskedit from the transcript's acceptedworkbookcalls on the corpus fixture (agent_eval/replay_office.rs).officeTask {relax}(eval only;office-verifyopt-insstyle_from_match: "font_fill",new_row_merges: "ignore", off for the corpus) onstock-reconcile-count: a new column matches its source's font and fill with any numeric format, a merge only in the new TỔNG row is accepted, column widths stay checked; the conditional-format evaluator reads percent literals ($H2<-5%). Run wall limits scale with the model's seconds per turn (scoring/pace.json, over the 12 s default, at most 3×, never below the given limit; lines carrywallLimitSec). M117 export rescored: office-v1 chatAsTask 13 → 0 for every model; office-v1 GPT-6 Sol 28 → 29/32, Gemini 4 Argon 30 → 31/32; conversation Sonnet 5.5 13 → 14/15.Fixed: a finished task's answer is laid out in short lines, a lead sentence, then the key figures and the assumptions as bullet points, instead of one long paragraph packed with numbers; the "Kết quả" block shows it with its bullets too.
Internal (finetune session):
REACT_PLANNING_TEXT"The answer" asks for a Markdownfinishsummary (lead sentence, figure bullets, caveats list, no paragraph over three sentences; tool descriptions unchanged);ChatTurnResultrenders the summary withMarkdownMessage; tests keep the summary's lines throughfinishand read the same figures from bullets as from a paragraph.Fixed: an Excel report touched up by an office script keeps its numbers. When a script edits an existing workbook (for example its conditional formatting), every formula in it is calculated again and saved with its value, so totals no longer show empty in previews and checks.
Internal (finetune session):
office_sandbox/verify.rsin-place xlsx check emits the sharedNO_CACHED_VALUESnote (was "formula cells with cached values: 0/113"), soscript::cache_formula_valuesrunsrecalc_packagefor in-place edits too; testscript_tests::an_in_place_script_edit_gets_its_formula_values_backreplays the tpl-pnl-varianceworkbookops (tests/office-corpus/sandbox/pnl_variance_workbook.json) and an openpyxl-style round-trip.Fixed: SUMPRODUCT with conditions shows its value. A total such as
=SUMPRODUCT((Khu_vuc=A5)*(Thang="2025-07")*Doanh_thu)is now computed when AMBA writes the workbook, so previews and checks no longer see an empty cell.Internal (finetune session):
tools/excel_writer/evaluator_arrays.rsparses SUMPRODUCT arguments as array expressions (comparisons, + - * / ^, unary minus,--, scalar broadcast, whole-column tails); mismatched sizes and per-cell functions such as LEN(range) stay uncomputed and noted.Fixed: a run no longer fails when Claude's server interrupts a reply. Anthropic's temporary "model stream was interrupted" error now pauses the run and resumes it from where it was (searches and steps already done are not repeated), as an overloaded server already did.
Internal (finetune session):
providers/retry.rsclassifies Anthropic's streamapi_errorasServerUnavailable(auto-resume, fallback, then a resumablellm.unavailablefailure); testanthropic/tests_stream.rs::an_interrupted_stream_api_error_is_retried.Fixed: advice sent together with a "start this as a task" card stays in the chat. When the agent answered a question and offered a task card in the same step, the answer showed only as a collapsed thought and the chat bubble held one line about the card; the answer is now the reply, with the card line after it.
Fixed: Excel files written by an office script show their numbers. Formulas a script writes are calculated and saved with values (SUMIFS included), so previews and other apps no longer show blank cells; a script that only inspects a file no longer has to save a copy, so no
check.xlsx/tmp.xlsxis left in the project.Fixed: copying a cell's style no longer narrows the column it is copied to, so a new column's header is not cut off.
Fixed: a ratio handed in with its result is read as a ratio ("30,82%", "tỷ lệ (18%, +80 triệu)"), so a correct result is no longer refused.
Internal (M117 runtime, finetune session):
RunState.answer_preface(turn_kind::text_role/step_text/with_preface) for text sent with protocol-only calls pluspropose_task/propose_process; office_script xlsx outputs without cached values go throughrecalc_packageafter verification,OUTPUTS["dir/x.xlsx"]matches its declared output,outputsoptional (inspect only),INPUTS["dir/x.xlsx"]findsx.xlsx;copy_formatcopies a width only from a whole column and never narrows;finish/verify.rs::ratio_unit(no scale from a ratio unit).Internal (TASK-665):
Suite::All/--suite all(61 scenarios, de-duplicated by id), run lines carrysuiteandturnMismatch(chatAsTask/taskAsChat), multi-suite scorecard section (agent_eval/score_suites.rsandscripts/eval-agent-score.mjschecked againstscoring/expected-suites.md), wall-time estimate fromscoring/pace.json(seconds per turn measured in the 10-24…10-29 exports).Added: a "Bảng" tab beside the chat in every project gathers the project's key points by itself after each turn: what waits for you (an unanswered question, a task or process the agent offered, a task that stopped), what was decided (your answers, accepted offers, preferences recorded for the project), the work done with its files and key figures, what is still open, and a log of the latest 200 turns. Process steps and routines appear there too. Click an item to open its chat at that turn. No extra AI call; existing projects show an empty board until their next turn (TASK-666).
Internal (TASK-666, ADR-079):
runtime/project_board/(modelschema v1,storeatomic writes of<project>/.amba/board.json,apply::apply_runfrom the stored assistant message'sresult,ask_usersteps,taskProposal/processProposaland their acceptance,turn,stopped, and the run's newcontext.jsonpreferences; idempotent per run viaappliedRunsand source-derived item ids; Log and Work keep the last 200, Waiting/Decided/Open are never trimmed); one hook inrunner/finalize.rs::persist_messages(project_board::after_run, no dry runs, emitsproject:board-updated);project_board_getcommand;board.jsonfollows moved files withcontext.json(migrate::rewrite::board_file);src/domain/projectBoard.ts,ProjectBoardPanel,useBoardTurnFocus; mock-IPCboard-liveflag.Added: act on the project board directly. Pin, edit, close and reopen any item on the "Bảng" tab; your wording is kept when the agent later updates the same point. Items waiting for you have their own button: answer a question with the same card as in the chat, start a task the agent offered, or continue a stopped task; the new turn runs in that item's chat. An item that is out of date (the chat has moved on, the question was answered, the task was already started, or the chat is busy) is refused with a short note and never starts a second run (TASK-667).
Internal (TASK-667):
project_board/actions.rs(patch_item: text →userEdited,pinned,closed;claim_waiting: settles a Waiting question/proposal/stopped task before its run, refusingmissing|closed|answered|started|moved_on|busyfromchat_facts= live runs of the chat, the item's stored turn and the user messages after it); commandsproject_board_update_item,project_board_claim(under the store's write lock, emitproject:board-updated); schema v1 gains optionaluserEdited,pinned,closedandask(an unansweredask_user's options); a preference entry recorded again by a later run updates its item in place unless the user edited it; UIBoardItemRow,useBoardActions,BoardRunActionhanded to the chat throughboardFocusand run byProjectChat's own card handlers (handleStartTask,handleContinueRun,dispatchPromptRun);chat/stoppedContinue.tsshared withChatStoppedContinue; mock-IPC Waiting fixtures in the Tờ trình HĐQT chat.
0.6.1 — 2026-10-28
Hotfix for 0.6.0 (TASK-657)
- Fixed: on Windows, a task that saved files can finish again. AMBA recorded the files it wrote as
reports\…while the answer named themreports/…, so it refused its own result ("was neither written nor read in this run", "written but not in files"), the task stopped, and the next turn listed the files as claimed but not written. Tasks left unfinished this way resume normally. - Fixed: a question in a project made from a template gets an answer, not placeholder files. "What documents do you want me to give?", "tư vấn giúp mình cần chuẩn bị gì?" and similar questions no longer require the template's files; they are listed as remaining instead. A project with nothing in its sources and nothing read is never pushed to make them either. A work request that names none of them ("chuẩn bị hồ sơ pitch") still makes them all.
- Fixed: a workbook of headers, labels and formulas no longer asks where its figures come from. Only numbers (including written forms such as
1.234.567,12%,1.500.000 đ) count as figures that need a source. - Internal (TASK-657): one spelling for project-relative paths,
project_files::rel_slash/rel_under/same_rel(/separators, no\\?\verbatim prefix, drive/UNC prefix compared case-insensitively), used where a run records written, read and changed files, deliverables, refs, provenance, figure sources, the office sandbox and tool results; checkpoints are read back in that spelling (RunCheckpointdeserializers);finishtreats a restored PDF companion as the runtime's own, and the ledger'sclaimedNotWrittenleaves out files the run read;request_mentions::advisory(vi/en/ja/ko advice cues, closing?without a polite work request) andtemplate_deliverables::has_inputs;provenance::numeric_text.
0.6.0 — 2026-10-28
Highlights
- New: AMBA account. Enter an invite code to use Claude Sonnet 5.5 and Haiku 5.5 (Opus 5.5 on Pro) with no API key. The account card shows the plan, expiry and 5-hour / weekly / monthly usage. Requests pass through AMBA's server and are not stored. Your own keys work as before.
- Every model uses the same new agent tools: read files page by page, find files, analyse tables in SQL, edit Excel / Word / PowerPoint in place, and hand in a checked result. The "Agent tool set" setting is gone; older agents switch by themselves, and a task in progress resumes on the new tools.
- GPT-6 (OpenAI, Azure) and Gemini 3/4 (AI Studio, Google Cloud) are more reliable and cheaper thanks to caching. Google Cloud has a step-by-step setup guide and Test connection. Claude Sonnet and Haiku 5.5 on Amazon Bedrock switch endpoint by themselves when needed.
- Long tasks: AMBA saves after every step; when the network or the provider fails, press Continue from step N. Up to 60 steps, and long tasks use far fewer tokens. AMBA no longer runs system (shell) commands.
- Real prices (checked 2026-10-25) for every provider and a rebuilt Usage & Costs page. You can set your own prices.
- The 7 built-in agents and 10 project templates use the new tools. Projects made from a template make only the files you ask for; "no slides yet" means no slides; "continue" keeps your earlier request.
- Excel files the agent writes carry values for date formulas, SUMIFS, COUNTIFS and text formulas, so previews no longer show blank cells. Hard PDFs are read from their own text, then OCR on your computer, and only unreadable pages go to AI.
- Removed: local models (Ollama), OpenAI-compatible endpoints (DeepSeek, OpenRouter, Groq…), non-Claude models on Amazon Bedrock, the AMBA Trial, System-One/Jev, ChatGPT import, the MCP Marketplace, "Create with AI", the Memory page, demo projects.
Upgrading from 0.5.14
- On the first launch, providers and models of the removed kinds are deleted together with their saved prices and keychain entries. A project, agent, PDF reading setting or default model that used them follows "Use default" again.
- Projects, conversations, files and run history stay as they are. A task left unfinished in 0.5.14 resumes on the new tools; if its model was removed, it continues on the agent's current model.
- The entries below are the history of this release; some describe intermediate states that later entries reverse (the "Agent tool set" setting was added and then removed).
Media agency eval suite (M116)
- Added: a "Truyền thông" suite in Settings → Nâng cao → Thử nghiệm → Đo bộ công cụ, next to Cốt lõi and Đầy đủ: five media agency tasks in Vietnamese (a media plan from a client brief and rate card, a pitch deck on the agency template, a tender price form, a tender compliance matrix with a technical proposal, and an actual-vs-plan report from Meta, Google and TikTok exports), checked to the đồng (TASK-646).
- Internal (TASK-646):
pptxfixtures, checkssheets,rowCalc,columnShare,rowText,pptxChart,officeClean(cellText.all,formulas.max); a private variant may be a folder of real files that replaces the synthetic inputs, withrequest.txtas the message; the gate replays the suite's ideal scripts;pnpm run eval:agent -- --suite media. - Internal (TASK-649): media suite fairness after the first live run:
media-tender-price-formadds the agency profile (Ho_so_nang_luc_Sao_Viet_Media.docx) as the named source of the bidder's name; text checks (cellText,docxText, answer texts, row labels) ignore sentence punctuation, so "Hai tỷ, ba trăm…" matches;cellText.columnaccepts week numbers under aTuầnheader for "Tuần 1"…"Tuần 8" inmedia-plan-from-brief. - Added: a "Mẫu dự án" suite in Settings → Nâng cao → Thử nghiệm → Đo bộ công cụ, next to Cốt lõi, Đầy đủ and Truyền thông: nine requests in Vietnamese, one per project template the other suites did not cover (invoice and bank statement reconciliation, quarterly P&L with budget overruns, payroll audit with insurance and personal income tax, a board pack for a new branch, a bank loan schedule with DSCR, a 30-day content calendar, a draft contract checked against the agreed quote, a freight tender with a commercial invoice / packing list check, F&B labour cost ratio and weekend staffing), each run in a project made from its template and checked to the đồng; Claude, Gemini and GPT profiles can be measured on it and on Truyền thông, and Estimate cost prices each suite from its own scripts (TASK-656).
- Internal (TASK-656):
tests/agent-eval/build/templates*.mjs(9tpl-*scenarios withtemplate, ideal v2 scripts usingtableload/query/reconcile andwrite_query, replayed by the gate as Claude and in--mockas tier 2); labSuite::Templates;pnpm run eval:agent -- --suite templatesand--dry-run --suite <name>replays and prices that suite; the eval bundle guard is 640 KiB (+113 KB of scenario JSON, about 21 KB gzipped). - Changed: in a project made from a template, asking for one file no longer forces the others. "Chỉ lập media plan" in a Media Planning project gets the media plan without being held back until a pitch deck exists; the template's files you did not ask for are listed as remaining in the answer, so you can ask for them later. A request that names none of them (such as "chuẩn bị hồ sơ pitch") still makes them all (TASK-650).
- Fixed: Excel files the agent writes now keep computed values for date formulas. Formulas with
DATE,YEAR,MONTH,DAY,EDATE,EOMONTH,WEEKDAY,WEEKNUM,DATEDIF,NETWORKDAYSandDAYS(and everything built on them, such as week columns and the totals over them) show their values in previews, Quick Look and other viewers that do not recalculate, as they do in Excel; before, a report with dates written as=DATE(2026,9,7)opened with blank cells there (TASK-651). - Internal (TASK-651):
tools/excel_writer/evaluator_dates.rs(1900 date system with the 1900 leap-year bug,DATEoverflow, ISO date text as a date;TODAY/NOWleft unsupported). The recalc was already per dependency chain: an unsupported function blanks only its transitive dependents; the live run's 203 were most likely its dates plus cells derived from them (a week column) and the SUMIFS and totals over those. - Internal (TASK-650):
runner/template_deliverables.rsdecides whichrequiredDeliverablesa request asks for (name, stem, output path,deliverableWordsintemplates.json, a kind word only one deliverable has, a written file of its type) for bothfinishand the deliverable guard; template directives with required deliverables say a partial request gets only those; agent-eval scenarios taketemplate(validated at load;media-plan-from-briefandmedia-pitch-deckusemedia-planning-pitch), and the run line reportstemplateandopenItems. - Changed: "chưa cần slide" now means no slide. In a project made from a template, a file you rule out or put off ("chỉ làm media plan thôi, chưa cần slide", "no deck yet", "スライドは不要", "슬라이드는 나중에") is no longer counted as asked for, and a follow-up such as "tiếp tục" or "ok làm đi" keeps what your earlier message asked for instead of requiring every file (TASK-652).
- Fixed: Office scripts (
office_script) run again when the app is started in development mode. The sandbox's own security policy stopped it from loading in the macOS webview, so every lab run reported only "worker error"; the policy now lets the sandbox load its own files (still no network, no eval, no outside code), a failure to load now names its cause (the file, its policy and each import), and when the sandbox cannot load the agent is not offered the tool at all (TASK-653). - Internal (TASK-652):
runner/request_mentions.rsreads negation/deferral cues (vi with and without diacritics, en, ja, ko; one cue table) scoped to the clause and the mention next to the cue, andchỉ … thôi/only/だけ/만as "only these";template_deliverables.rsuses it and, for a user's chat turn that names no deliverable, the conversation's latest earlier user message that does (RunState.earlier_requests).
Settings → Mô hình AI layout (TASK-647)
- Changed: step 2 lists the enabled models as a table with search (name, model id, provider) and sorting by model, provider or price; clicking a row no longer makes that model the default, only "Đặt làm mặc định" does.
- Changed: the direct API and cloud provider cards sit three to a row; the AMBA account card spreads plan, expiry, device and models across the full width, with logout and usage in its header.
- Fixed: large gaps between the cards on Tools & MCP in the macOS app (WebKit).
Remove the legacy tool set (M115)
- Changed: every model uses the new agent tools. The "Bộ công cụ agent" setting (Settings → Nâng cao) is gone: Claude, OpenAI, Azure and Gemini all read, write and hand in work with the same tools (read, files, table, workbook, document, deck, edit_file, finish). Older OpenAI and Gemini models that still used the previous tools switch with the update; a choice saved for "Cũ" is removed on the first launch, and a task started on the previous tools resumes on the new ones (TASK-641, TASK-642).
- Changed: Công cụ & MCP no longer shows the old tools. The tools the new set replaced (excel_read, spreadsheet_edit, docx_write, submit_result, …) are no longer listed on the page or in the permissions table: it lists only the tools models are offered, built-in first, then MCP. A task from an earlier version that calls an old tool name still runs for two more releases (TASK-643, ADR-077).
- Internal (TASK-643): legacy tools are dispatch-only aliases:
ToolRegistry::list_definitions/specsleave outtools::v2::REPLACED_BY_V2(tests readdefinitions_with_aliases/specs_with_aliases);spec::version::set_of,ToolListEntry/toolSetand thetools_legacy_*keys (4 locales) removed;list_toolsreturnsToolDefinition; legacy size-ceiling rows removed; lowering goldensclaude_first_party/claude_probed/claude_mantle/openaire-snapshotted on the v2 set,openai_strict.jsonandgemini.jsonremoved; the Claude strict priority names offered tools only. - Changed: Settings → Nâng cao → Thử nghiệm → Đo bộ công cụ measures the new tools only. The tool-set choice (Cũ, Mới, Cả hai) and the per-tool-set rows of the results are gone (TASK-642).
- Internal (TASK-641/642):
ToolsVersion,ToolsMode,ToolsSourceand theAMBA_TOOLS_V2override removed (tools::spec::version::offers/set_of); IPCget_tools_mode/set_tools_moderemoved; one-time data stepdata_step.v1.drop_tools_mode;runs.tools_versionalwaysv2; the legacy guard budget (plan-document guard, keyword drafts, the old wording) and thesubmit_result/report_key_figuresoffers removed; built-in prompts written in the v2 names (v2_prompt::rewriteonly for stored and user text); OpenAI/Azure lowering strict on every native endpoint and the Gemini working-style note whenever tools are offered; admission maps a stored legacy tool to its v2 replacement only;agent_eval--toolsflag removed, scenarios carry one v2 script; the lab plan has notools. - Changed: Gemini 3 and 4 with a Google AI Studio key work like Gemini on Google Cloud. They now use the new agent tools and get the same request as on Google Cloud: tool calls and results kept in the conversation, Gemini's reasoning carried between steps, the working-style guidance, a time limit with one automatic re-send of a silent answer, and a growing wait when Google's quota is reached. The API key is no longer part of the request address (TASK-636).
- Removed: local models (Ollama) and OpenAI-compatible endpoints (DeepSeek, OpenRouter, Groq, Together AI or a custom URL). Settings → Mô hình AI → API trực tiếp now lists Google AI Studio, OpenAI and Anthropic; the Add provider dialog offers the cloud platforms only. Existing providers of these kinds, their models, saved prices and keychain entries are removed on the first launch (TASK-637).
- Removed: non-Claude models on Amazon Bedrock (Nova, Llama, Mistral, …). Bedrock lists and runs Claude models only; profiles of other Bedrock models are removed on the first launch (TASK-637).
- Changed: a project, agent chat, PDF transcription setting or default model that used a removed model follows the app default ("Theo mặc định") again; an agent's model preferences drop it (TASK-637).
- Internal (TASK-637): one-time data step
data_step.v1.remove_legacy_providers;providers::is_bedrock_claude;compat_functionlowering and its golden removed; the eval harnesses acceptAMBA_EVAL_PROVIDER= anthropic, azure, google, openai or bedrock only. - Changed: agents list the new agent tools. Capability packs, the built-in agents and agents created in Agent Studio name the new tools (workbook, document, deck, edit_file, read, files, table); agents saved earlier are updated once on the first launch, and the clock, system-info and document-convert tools they listed are dropped. What an agent may do is unchanged (TASK-640).
- Changed: when Gemini or GPT writes a document or a workbook into its answer instead of saving it, AMBA saves it with the new tools (edit_file, workbook) (TASK-640).
- Fixed: a file built with the Office sandbox (
office_script) can be handed in. With the new agent tools, the agent's final hand-in no longer refuses the deck, document or workbook the sandbox just wrote as "neither written nor read in this run" (TASK-648). - Fixed: a process step whose agent hands in a file it never wrote says which file is missing. With the new agent tools the step now fails as "deliverable missing" with the file names, and the agent's thread gets the error note, instead of a generic "agent failed" (TASK-648).
- Fixed: a task resumed after the app was closed can finish. Resuming from an older save no longer leaves the agent unable to hand in the file it had already made (asked to list it, then refused when it did) (TASK-648).
- Fixed: an answer is no longer replaced by "completed". When the agent first replied with only its plan and then handed in its result, the stored answer was empty; the hand-in summary is now the answer (TASK-648).
- Fixed: a chat without a project that saves a file outside any project can finish. The hand-in no longer asks the agent to list a file it would refuse to list; the file still shows in the run's written files (TASK-648).
- Fixed: decks and Word documents built from a template with the new tools are checked against it. Sample slides left over from the template are flagged, and problems the template already had are not blamed on the agent, as with the previous tools (TASK-648).
- Fixed: the activity timeline shows table work (
table) as analysis rather than exploration (TASK-648). - Internal (TASK-640):
tools::v2::LEGACY_TO_V2(withto_v2,replaced_by,tools_in_v2_names) replacesADMITTED_BY/TABLE_SOURCES; admission maps a declared tool to its counterpart in the other set; one-time data stepdata_step.v1.agent_tools_v2rewritesagents.tools_jsonandpermissions_json; code-block salvage moved torunner/salvage.rs; legacy size ceilings reset to the measured values.
OpenAI GPT-6 with the agent tools (M114 round 0)
- Fixed: GPT-6 models keep their reasoning between tool calls. Each step of a task on GPT-6.1 Sol, GPT-6 Luna or GPT-6 Astra (OpenAI or Azure OpenAI) now continues the model's earlier reasoning instead of starting over, as OpenAI recommends (TASK-620).
- Fixed: OpenAI costs and cache use are shown correctly. Cached input, cache writes (billed at 1.25x input on GPT-5.6 and GPT-6) and reasoning tokens are now counted for GPT-6 models; a mid-task notice no longer breaks OpenAI's prompt cache; a GPT-6 answer no longer stops early on a small output limit (TASK-621).
- Fixed: an OpenAI account out of credit or over its spend limit fails at once with a clear message instead of retrying for minutes; when OpenAI asks to wait, AMBA waits that long. A cut OpenAI-compatible stream is retried instead of being taken as a short answer, and a long GPT-6 turn is no longer cut after 3 minutes (TASK-623).
- Fixed: "Tải về" lists an Azure OpenAI resource's deployments. Settings → Mô hình AI now fetches the deployments that finished deploying (named "deployment → base model (Azure)") instead of showing none; a Foundry project endpoint is told to use the resource's
https://<resource>.openai.azure.comendpoint. A request to a deployment that does not exist now says the model id must match the deployment name exactly, instead of asking to change an api-version that is already recent (TASK-631).
OpenAI GPT-6 with the agent tools (M114 round 1)
- Fixed: GPT-6 on OpenAI and Azure costs less per task. AMBA no longer rewrites earlier tool results in the conversation it sends, so OpenAI's prompt cache reuses the whole history instead of billing it again as a cache write on every step (TASK-627).
- Fixed: the agent can read a file again when its earlier result was trimmed instead of being refused; a refused repeat now says where the earlier result is and what to read instead, and a PDF page error shows the valid page form (TASK-632).
- Fixed: reconciling a table that was never loaded names the loaded tables and gives the exact load call; one retry after fixing the cause no longer counts as going in circles (TASK-633).
- Changed: GPT-6 answers stream live on OpenAI and Azure, and the task's effort sets GPT-6's reasoning effort (TASK-624, TASK-625).
- Internal (TASK-622; Claude's and Gemini's requests unchanged): after the "end with
finish" reminder, OpenAI and Azure are asked for a tool call (tool_choice: required).
OpenAI GPT-6 with the agent tools (M114 round 2)
- Changed: GPT-5 and GPT-6 on OpenAI and Azure use the new agent tools by default. With Settings → Nâng cao → "Bộ công cụ agent" on Tự động, GPT-5, GPT-6 and o-series models (on Azure, a deployment whose name starts that way) now get the same tools as Claude and Gemini on Google Cloud; GPT-6 Sol passed the tool bar on two measurements (12 of 13 tasks, no corrections). Older chat models such as GPT-4o, Azure deployments with other names and OpenAI-compatible endpoints keep the previous tools; choosing "Cũ" still switches back (TASK-628).
Settings and Tools & MCP cleanup (TASK-635)
- Changed: Công cụ & MCP is easier to scan. Page and section explanations moved into [?] tips, and the input schema in the detail pane is collapsed.
- Changed: the new tools (
read,files,table,workbook,document,deck,edit_file,finish) have titles and descriptions in Vietnamese, Japanese and Korean: the translate button appears in the detail pane, and the list shows the localized title next to the tool's name. - Removed: the "Làm mới" button on Settings → Mô hình AI → Tài khoản AMBA; usage is refreshed on Mức dùng & Chi phí. The card still reads the account when it opens and when the window regains focus.
- Removed: the Tools detail pane's duplicate "Loại nguồn / Chính sách chạy" rows (the badges above show both) and the raw source id in the source badge.
- Internal: the "Bộ cũ" group and
list_toolstoolSetthis task added were removed again by TASK-643 before release.
The lab's model picker (TASK-615)
- Changed: "Đo bộ công cụ" picks from the models you enabled in Settings → Mô hình AI → Bước 2. One checkbox per enabled model, with the same names, grouped AMBA / API trực tiếp / Nhà cung cấp đám mây, with its price on one line and the tier-2 tag; models the lab cannot run (local models, non-Claude Bedrock models) are greyed out with the reason in a [?] tip. The extra model ids offered under each profile are gone. The same model through two providers (for example Claude Opus on Anthropic and on AMBA) can run in one sweep and scores as two groups; a remembered selection that is no longer enabled is dropped.
- Internal (TASK-615): a target is a profile and its own model (
claude_profiles::eval_models,EvalModel,providers::amba::account::eval_modelsand the price table'sevalModelsremoved;ClaudeProfile.providerKindadded).resolverefuses another model or two targets with the same (provider, model); items carryprovider, resume and the running-cost estimate key by (provider, model), price overrides byprovider:model(a bare model id still reads).lab_get_statereturnslastTargets.
Gemini on Google Cloud with the v2 tools (M113 round 2)
- Fixed: a report can cite the workbook the same task just built. A Word, PowerPoint or Excel write whose figures come from a workbook the agent created earlier in the task, from the files it read, is no longer refused with "These sources were not read or loaded in this run"; the workbook must still hold exactly what the task wrote, and a file it only edited or filled without a source still needs a read (TASK-611, all models).
- Fixed: Gemini on Google Cloud no longer fails after a "repeating itself" notice with "Requests ending with a model turn are not supported", and that error is no longer shown as "model not offered in this location": a request Google refuses for its shape now says it is an AMBA bug (TASK-616).
- Changed: Google Cloud "quota reached" waits longer before giving up: the agent waits what Google asks (or 10, 20, 40 s, then a minute) instead of a few seconds. In the lab, Google models run at most two at once, and the time a run waits on Google's quota does not count against its run limit (TASK-617).
- Internal (TASK-618, 619; Claude's requests unchanged): Gemini's working-style note asks the
finishsummary to state each key figure with its value; a top-level argument name Gemini wraps in quotes ("path) is read as the plain name (the path is still confined as before).
Gemini on Google Cloud with the v2 tools (M113 round 1)
- Fixed: a fact can cite its cell the way the agent writes it elsewhere.
project_fact_recordaccepted onlyB12; a cell given asSheet!B12orreports/x.xlsx#Sheet!B12is now the same cell when the file and sheet match, and a range gets a clear "cite the one cell" message (TASK-607). - Internal (TASK-606, 608, 609; Claude's requests unchanged): Gemini's flattened op schemas say which fields each op takes; under the v2 tools the Google Cloud adapter adds a short working-style note to the system instruction (independent calls in one turn, write the deliverable, one-cell sources, end with
finish, at most 12 figures), and the turn after thefinishreminder must call a tool (functionCallingConfig: ANY). Gemini's default tool set is unchanged until it meets the v2 bar.
Cleaner prices and usage (TASK-604)
- Changed: Settings → Models step 2 and "Mức dùng & Chi phí" read cleaner. Each model card shows its price on one line ("$2 / $10 /1M token") with a small [?] that holds the input/output and cache prices, where the price comes from and the Bedrock regional +10% note; a user price is marked "đã sửa", and the pencil opens the price editor (with "Về giá mặc định" for your own price) instead of a block of text. On the usage page the subtitle is one short line, card captions and the notes under the table moved into [?] tips (hover, keyboard focus or tap), the "Giá" column became a small tag on each model, and models without a price stay visible as "N mô hình chưa có giá" and a "chưa có giá" chip on the row. Numbers are unchanged.
Models and usage in three tabs (TASK-603)
- Changed: Settings → Models and "Mức dùng & Chi phí" are split into three mini-tabs: AMBA, API trực tiếp (Anthropic, OpenAI, Google AI Studio, Ollama and OpenAI-compatible endpoints such as DeepSeek) and Nhà cung cấp đám mây (Amazon Bedrock, Google Cloud, Azure OpenAI). A dot marks the groups you have connected or used. Settings opens on the tab of your default model the first time, then on the last tab you used; a half-typed key survives a tab switch. The default model, prices and web search stay below the tabs for every provider. The AMBA quota bars are no longer in Settings: the account card has Xem mức dùng, and the usage page's AMBA tab shows the plan, the windows with reset times and credits only, without dollar estimates. The direct and cloud tabs each have their own spend, per-model table and notes (the +10 % regional-endpoint note under cloud). The period, the project, the budget warning and Xóa dữ liệu mức dùng sit above the tabs and apply to all; a group with no usage shows a short empty state with a Kết nối… link to the matching Settings tab.
Slow connections (TASK-601)
- Fixed: long turns on the AMBA account no longer fail on slow connections. On some networks a turn with web search results took a minute to upload and then failed with "error sending request". AMBA now sends each turn compressed to the AMBA gateway, and keeps web search results short (the title, the link and a short excerpt of each page; repeats are dropped), so a turn with five searches is many times smaller. Web search results are also shorter with your own keys; to read a whole page the agent opens it with web fetch.
- Internal (TASK-601):
providers/amba/gzip.rsgzips/v1/messagesbodies over 8 KB (flate2) only for a gateway whose last successful answer carriedx-amba-accepts: gzip, and on a 415 or a 400 "must be JSON" / "not valid gzip" forgets that and resends plain, so the gateway deployed before this change keeps working. The gateway (readBodyLimited) decompressesContent-Encoding: gzipwithDecompressionStream, holds both the compressed and the decompressed size toMAX_REQUEST_BYTES(413), refuses broken gzip (400) and other encodings (415), and sendsx-amba-accepts: gzipon every answer.tools/web_trim.rs:web_searchsnippets collapsed and cut at a sentence or word boundary to 600 characters (truncated: true), titles to 160, repeated URLs and snippets dropped,scoredropped, theresultsarray ≤ 4 KB (omitted_resultscounts what did not fit).web_fetchno longer panics when its character cap falls inside a multi-byte character. Gateway not deployed.
Usage & Costs (TASK-599)
- Fixed: costs use real, current prices. The Usage page used to price every current model (Claude 5.5, Claude in Amazon Bedrock, Gemini 3.x/4, current OpenAI models) at a made-up default of $0.50 / $2.00 per million tokens, so Claude Sonnet 5.5 showed about a quarter of its real cost and Opus less. AMBA now ships one price table (checked 2026-10-25 against Anthropic, Google and OpenAI's pricing pages): Anthropic, Amazon Bedrock (regional endpoints 10 % above global, as AWS bills them), Google AI Studio and Vertex AI, OpenAI and Azure OpenAI, with cache-read and cache-write prices; thinking tokens count as output. A model the table does not know shows "chưa có giá" and is left out of the totals with a note, instead of an invented number. The old built-in prices (GPT-4o, Claude 3.x, Gemini 1.5/2.0) are removed unless you had changed them.
- New: "Mức dùng & Chi phí" is rebuilt: spend this month and in the last 30 days, cost per run, tokens with cache reads and writes (and what the cache saved), spend per provider, and one table by model that says where each price comes from ("Giá mặc định AMBA (cập nhật 2026-10-25)", "Giá bạn nhập" or "Chưa có giá"). Costs on your own keys are labelled as estimates: the real invoice is in AWS, Anthropic or Google. The project budget warning uses the new numbers.
- New: with an AMBA account connected, the page shows the account: plan, the 5-hour, week and month windows (and Opus per week on Pro) with reset times, the credits AMBA counted this month, and this device's estimate in credits at the same prices, marked "theo hạn mức AMBA, không tính tiền thẻ".
- New: Settings → Models, step 2 shows each enabled model's price and its source, with Sửa giá to set your own (input, output, cache read, cache write) and Về giá mặc định. Bedrock models note that regional endpoints cost 10 % more.
- Internal (TASK-599): the price table moved from
tests/agent-eval/prices.jsontosrc-tauri/src/providers/pricing/prices.json, shared by the app (providers::pricing: user price, then the table by provider kind and normalised model id, then none) and the agent eval (Bedrock now priced from it; Opus/Sonnet 5.5 cache reads at 0.05× input; goldens regenerated; the lab's model picker readsevalModels). Migration V050 drops the untouched V007 seed rows and keysmodel_pricingby provider and model with a cache-write price. Commandsget_usage_report,list_profile_prices,set_model_price,reset_model_pricereplaceget_token_analyticsandget_project_token_analytics.
AMBA account (Milestone 112-lite)
- New: Settings → Models → "Tài khoản AMBA". Enter an invite code from AMBA, confirm you are 18 or older and press Kết nối: Claude Sonnet 5.5 and Haiku 5.5 (plus Opus 5.5 on Pro) appear in the model list with no API key. The card shows the account, plan, expiry, this device, usage bars for 5 hours, the week and the month with the time each frees up, and Đăng xuất. One line says it plainly: requests to Claude pass through AMBA's server and are not stored. The device token stays in the OS keychain. BYOK keeps working as before.
- New: the setup wizard offers "Dùng tài khoản AMBA (có mã mời)" first, before the Anthropic API and Amazon Bedrock; it makes Claude Sonnet 5.5 on the account the default model.
- New: a spent AMBA quota stops a task cleanly instead of failing it: the chat says "Đã dùng hết hạn mức 5 giờ, mở lại lúc 14:30" (or the week, the month), and the task can be continued from where it stopped once the window frees up. A task that reaches its cost cap says "Lượt này đã chạm trần chi phí"; when AMBA is at capacity for the day it says to try tomorrow or use your own API key; an expired, disabled or signed-out account says so and opens the account settings.
- New: the data-flow ledger names managed requests "AMBA gateway → Amazon Bedrock" (region us-east-1), with masking as for your own keys. The experimental lab's eval can measure the AMBA account's models through the gateway.
- Changed: the privacy policy and the Security page (English, Vietnamese, Japanese, Korean) describe the AMBA account. What the app sends, that requests pass through
gateway.ambadesk.com(Cloudflare) to Claude on Amazon Bedrock in the US, that the gateway stores and logs no content and keeps per-request usage records (account, device, model, tokens, credits, status, time), what the account holds (no email or password), Cloudflare and AWS as processors, and that your own key keeps requests off AMBA's servers (TASK-655). - Internal (TASK-594): provider kind
amba(providers/amba): the Anthropic adapter's newAmbaGatewaytransport (Bearer device token,x-amba-run-id, bare model ids, InvokeModel capabilities and probe facts, v2 tools byauto), coded gateway errors (amba_quota,amba_run,amba_daily_cap,amba_plan,amba_expired,amba_revoked,amba_auth), the runner's clean stop (runner/account_stop.rs), the commandsamba_account_status|redeem|usage|logoutandamba_set_gateway, and a local wire mock of the gateway for the tests (redeem, me, logout, SSE messages).tests/agent-eval/prices.jsongains theambaprovider (first-party fallback prices). - Internal (TASK-598): the model gateway's
/adminis rebuilt as a console (Tổng quan, Tài khoản, Gói & hạn mức, Lời mời, Nhật ký; light/dark, phone layout, Vietnamese with an English toggle; no external assets under the strict CSP; secret in sessionStorage only, Đăng xuất, confirmed destructive actions). Per-account limit overrides and notes, plan defaults and daily caps now live in D1 (vars and built-in limits as the seed) and apply from the next request; new admin routes for overview aggregates, per-account usage by model, invites (list, revoke unused) and a cursor-paginated request log. Additive migrationinfrastructure/model-gateway/migrations/2026-10-25_task-598_admin_settings.sql; the worker's wrangler is 4.149.0. Not deployed. - Internal (TASK-591): new Cloudflare Worker
infrastructure/model-gateway(not deployed): Anthropic-shapedPOST /v1/messages(streaming passed through chunk by chunk, tools, caching, thinking, betas) to Claude on Amazon Bedrock InvokeModel with SigV4; invite-code accounts with hashed device tokens (/v1/account/redeem,/me,/logout); per-request metering in credits at the Bedrock list price (no bodies stored or logged); per-account quota Durable Object (rolling 5 h / week / 30-day windows, per-run cap, requests per minute, Opus weekly cap) reserved before and settled after each stream; global daily caps ($50 Free, $100 all plans) in a singleton Durable Object; a Founder admin page at/admin. Its tests run in the gate's Vitest tier, and its sources are under the 800-line check.
Agent tools (Milestone 111)
- Changed: Claude now works with the new agent tool set by default. Runs on Claude, through the Anthropic API or Amazon Bedrock, use the v2 tools: one tool each to read files, find files, analyse tables in SQL, edit workbooks, documents and slides in place, and a checked hand-in at the end (
finish). In the lab on the office scenarios they succeeded more often and cost about a third less than the previous set. Other providers (OpenAI, Azure, Gemini, Google Cloud, OpenAI-compatible) keep the previous tools until they are measured; the switch below brings the previous tools back for Claude too. - New: Settings → Advanced → "Bộ công cụ agent": Tự động (khuyên dùng) (the new tools for Claude, the previous ones elsewhere), Mới (v2) or Cũ. A change applies from the next run, without restarting. It replaces the "Dùng bộ công cụ mới" switch of the experimental lab; a switch you had turned on reads as Mới (v2), one turned off as Tự động.
- Changed: asking a question about a spreadsheet no longer leaves a file in your project. The working database AMBA builds to analyse tables now lives with AMBA's own project data (
.amba/analytics.db) instead ofworkings/.analytics.db. An oldworkings/.analytics.dbis no longer used and can be deleted; the next analysis rebuilds the tables from your files. The end-of-day report template no longer needs permission to update that database. - Fixed: a run no longer fails its hand-in over formatting details.
finishasks for the numbers the user asked for or would check (totals, counts, rates); widths, styles and fonts go in the summary. A formatting fact cited to a header cell is told to move to the summary instead of being refused again and again. - Changed: Gemini 3 and 4 on Google Cloud now use the new agent tools under "Tự động", like Claude. Measured in the lab: Gemini 4 Argon 24/26 and Gemini 3.8 Flash 23/26 office scenarios, with all but one ending in a checked hand-in. Gemini through AI Studio and other providers keep the previous tools (TASK-614).
- Fixed: Google Cloud runs keep working after the computer sleeps. The Google sign-in token was timed with a clock that stops during sleep, so after waking the app kept sending an expired token and every request failed with "invalid authentication credentials" (401). Expiry now uses the wall clock, and a cached token Google refuses is replaced and the request sent again (M113).
- Fixed: a reply cut off mid-way is retried instead of read as an answer. When the connection to the model dropped mid-reply (seen on the AMBA account), the agent took the few words it had received as its answer, stopped calling tools and ended unfinished. Such a turn is now sent again, and so is a request that could not be sent at all ("error sending request") (TASK-605).
- Fixed: a result handed in as "Xong một phần" or blocked now offers "Tiếp tục". Before, the open items were listed but there was no button to have the agent carry on; it showed only for runs stopped at the step limit (TASK-602).
- Fixed: a chat answer is no longer replaced by "Đã trả lời trong chat". When Claude answered a question in the chat and then handed in with a short note, the note replaced the answer in the conversation. The chat now keeps the fuller answer (the hand-in note stays in the run's result), and the hand-in asks for the full answer rather than a note (TASK-600).
- Fixed: under the new tools, process steps name
files(by date) instead ofinbox_files, and Research mode no longer mentions the removed knowledge base. - Fixed: ▶ Thử on a process's agent step works with the new tools. A step test ended "chưa xong" because the hand-in did not find the files the test had written in its sandbox, and adding a row to an existing workbook in a test (the history of the daily report) found the workbook empty. A test now edits a copy of the file, checks the hand-in against what it wrote and gives a Markdown report its PDF copy, as a real run does; your project stays untouched.
- Fixed: the Telegram owner assistant on Claude is no longer told to report key figures with a tool it does not have. A reply follows the owner-assistant template, which reports none.
- Changed: other providers can follow the new templates as written. When a model on the previous tools calls a tool the 2.0.0 templates name (
files,table,workbook,read,edit_file), the call runs;finishat the end of a process step hands in the result likesubmit_result, and elsewhere it says to answer in text. - Internal (TASK-578):
runtime/process/actions/tests_smoke_v2.rsruns the demo shop with the financial-analyst 2.0.0 templates and a scripted model through Chạy ngay, the owner assistant on Telegram, the 18:00 schedule and a ▶ step test, on Claude (v2 recorded and offered, prompts name only offered tools,finishaccepted, no guard) and on OpenAI (current set, with the current names and with the v2 names). Dry runs record sandbox writes under the sandbox and map them back withproject_files::dry_run_logical(deliverables, PDF companions, ledger zone;finish,submit_resultandreport_key_figuressources); an allowed overwrite in a dry run starts from a copy of the file; write paths match the canonical project root too. Aconverseturn takes the persona's conversation-template contract; the key-figures directive is added only whenreport_key_figuresis offered. - Internal:
ToolsVersion::resolvetakes the run's provider kind and model; thetools_v2setting isauto/v2/current(one-time data step from the old bool),AMBA_TOOLS_V2still wins. The runner resolves once per run (a resumed run keeps its set) and records it inruns.tools_version(V048) and acontext_buildevent (source: "tools",decidedBy). IPCget_tools_mode/set_tools_mode;lab_set_tools_v2removed. The eval lab sets the tool set explicitly per run.db_pathmay name.amba/analytics.db(the only.amba/file a tool call can have written, by the table engine; no consent or overwrite question).
Built-in agents (Milestones 110–111)
- Changed: the seven built-in agents use the new agent tools (templates 2.0.0). Their instructions and process steps now read files with one reader, total and match tables in SQL, edit workbooks, Word files and decks in place, and end each task with a checked hand-in of the files and key figures, each figure with the cell it comes from. Their steps, rules, Vietnamese wording and output folders are unchanged. Agents you installed from the catalog and did not edit update themselves; an edited agent keeps your text and shows Mẫu có bản mới.
- Changed: filling a contract template (Lead Business Author, Chief of Staff) fills the fields in a copy in
reports/and no longer marks them as tracked changes in Word; compare the copy with the template, and every write can still be rolled back from the file's history. - Changed: the playbook pages list each agent's capability packs as the agent has them (Financial Analyst, Inventory Controller, Strategy Consultant), the Inventory Controller's playbook in the app is the same as on the website, and the example file names in every playbook are marked as examples (4 languages).
- Internal:
routineTemplates[]keepsid,name(s),mode,instruction,outputContract,parametersand a newconverse: true(the owner assistant's directive; a pre-2.0.0 cached catalog is still read by its trigger); the deadtriggers,unattendedPolicy,deliveryandquestionsare gone and the catalog build refuses unknown fields, aplaybook.mdthat differs fromlocales/en.md, and a pack header that differs frommeta.json.workings/.analytics.dbleft the process templates' overwrite lists and.amba/context.jsonthe write policies. New invariant testruntime/catalog_text_tests.rs: every template text names only tools the v2 set offers and writes nothing intosources/or.amba/.inventory-reconciliationis a required persona. - Changed (TASK-583): the ten built-in project templates (Invoice reconciliation, P&L analysis, Payroll audit, Executive command center, Media planning, Capital & debt financing, Marketing content, Logistics, F&B, Document analysis & contract review) now describe the new agent tools. In a Document Analysis project, a contract template is filled field by field into a copy in
reports/(the template in Sources is never changed) and the hand-in tells you to compare the copy with the template in Word; it no longer promises tracked changes, which the new tools do not make.
Agent templates (Milestone 110)
- New: agents installed from a built-in template now receive template updates. When a template gets a new version, an agent you have not edited gets the new instructions and capabilities by itself, at launch or when Agent Studio loads the templates; its name, icon and projects stay. A toast says "Đã cập nhật N agent mẫu".
- New: an agent you edited is never overwritten. Agent Studio marks it "Mẫu có bản mới" and offers Xem khác biệt (line by line, plus capabilities added or removed), Áp dụng (after a confirmation; your edits to the instructions and capabilities are replaced, name, icon and projects stay) and Bỏ qua (this version is not offered again). Custom agents are never touched. Process templates already added to a project are separate copies and do not change.
- Changed: a new app version brings its newer templates even offline: the templates shipped with the app are used when they are newer than the copy last downloaded. Đồng bộ từ Cloud still fetches the latest.
- Internal: V049
agent_template_state(template id, version frommeta.json, hash of the shipped instructions and packs, pending and dismissed versions);runtime/template_updates(launch step 7 and everyget_agent_catalog); installs written before V048 count as unedited only when their text matches the current template or one an earlier catalog shipped (hashes from the catalog's git history), otherwise they are treated as edited. IPClist_agent_template_updates,apply_agent_template_update,dismiss_agent_template_update,take_agent_template_upgrade_notice;AgentCatalogResult.upgradedAgents. Install records the template version instead of 1.0.0; the catalog build checks thatversionis numeric (TASK-567).
The new agent tools, measured on Claude (Milestone 108)
- Changed: Claude gets exact tool inputs where it matters most. On the Anthropic API, strict tool use (inputs guaranteed to match the tool's schema, limited per request) now goes first to finishing a run, the plan, questions to the user and the Office writers whose schemas allow it, then to readers; before, the allowance went to tools in alphabetical order. Amazon Bedrock keeps strict off until the probes below show it works there.
- Internal:
pnpm run probe:claudechecks which Claude request features the Anthropic API and Amazon Bedrock accept (strict tools, tool examples, tool search, system messages mid-conversation,tool_choice: none, eager streaming, progress notes, caching, PDF, the text editor and memory tools, strict limits) and prints the table as JSON and markdown;--savecommits the results into the build. The first time a Claude profile is used in a new version, AMBA checks the uncertain features once in the background with four short synthetic requests (listed under "Data leaving this device" ascapability_probe; no content) and remembers the answer for that version. Without results, requests are unchanged. - Internal (TASK-548): one canonical
ToolSpecper tool (tools/spec/) with typed op tables that generate the workbook op schemas, hints, examples, normalizer and validation hints (thespreadsheet_editandexcel_writeschemas are byte-identical to before); per-provider lowering (providers/anthropic/lowering.rs,providers/lowering.rs: Claude op unions,input_examplesonce probed, OpenAI strict form, Gemini op flattening) with snapshot tests; tool errors in one contract (code,at,expected,example,did_you_mean,applied,retryablenext to the unchangederrortext) for invalid inputs, workbook ops, every tool's argument errors and unknown tool names; a tool-definition size ceiling per pack and agent; thetools_v2flag (AMBA_TOOLS_V2or thetools_v2setting, no UI) andpnpm run eval:agent -- --tools v2. The agent sees the same tools. - Internal (TASK-549): with
tools_v2on, oneworkbooktool replacesexcel_write,spreadsheet_editandaccounting_export_table_to_xlsx(old names still accepted): create, edit in place or fill a template with one op vocabulary (21 ops incl. new Excel tables andwrite_queryfrom the analytics database) through the same engine, verification and revisions; results under 400 bytes;sourcesreplace the file-name grounding guard for it; read handlesRunRefsfor TASK-550. With the flag off nothing changes. - Internal (TASK-550): behind
tools_v2, three Claude-first readers replace 17 model-facing tools:read(one reader for text, CSV, Excel, PDF with the M107 tiers and tier-3 consent, Word, PowerPoint and images; outline first for workbooks, long documents, decks and PDFs, then apartsuch asTB!A1:H60,p3-5,s2or a heading; at most 24 KB with one{cursor, has_more}pair),files(listwith a glob,searchover the workspace index,by_dateover the inbox) andtable(loada CSV, sheet or range into the scratch SQLite,queryas TSV with at most 200 rows and a cursor,reconcile,describe;SELECT <expression>replacesmath_calculate). Every read, load and query carries areffrom the run'sRunRefsregistry (runtime/execution/refs.rs, saved in the resume state). Under v2system_time,system_info,directory_treeanddocument_convertare not offered (today's date opens the request); old names stay accepted at dispatch. The three definitions take 5.96 KB; mock eval v2: 8/9 as expected, 98,254 input tokens per run (current 109,105), 50,154 B of tool definitions for the eval agent (current 58,926). - Internal (TASK-551): behind
tools_v2,documentreplacesdocx_write,document_editandpdf_generate(create from Markdown, replace / insert / delete sections, fill template fields, tables, styles, append;export: "pdf"),deckreplacespptx_writeandpresentation_edit(create from an outline, add / replace / delete slides, text, tables, charts, reorder), andedit_filereplacesfilesystem_writeandreplace_file_contentwith the commands of Anthropic's text editor (view,create,str_replace,insert; Sources viewable, never written; revisions). Both Office tools edit in place, start a new file from the company template, run the same engines, verification and revisions, return under 400 bytes and citesources. On Claude the request offers Anthropic'stext_editor_20250728instead ofedit_fileonce the capability probe confirms it; until then, and on other providers, the custom tool. With the flag off nothing changes. - Internal (TASK-552): behind
tools_v2, every Agent-mode run ends with a verifiedfinish(summary, files with what each one is, key figures with their source, open items, status) in place ofsubmit_resultandreport_key_figures: the runtime checks the files, the figure sources and the deliverable verifiers before the run may end, a text reply gets one reminder, and two refusals end the run as incomplete. The chat shows a compact "Kết quả" block (status, files, figures with their source, open items). - Internal (TASK-553): behind
tools_v2, the runtime verifies instead of patching. One guard-budget table keyed by tool set and provider tier: on Claude (Anthropic API and Claude in Amazon Bedrock) the text tool-call salvage, relaxed parsing, code-block salvage, follow-through nudges,<plan>text fallback, file-name grounding guard, plan-document guard, draft keywords and the old workbook writer's hints are off; it keeps the mode refusal (read_only_mode, one sentence), the stagnation notice, the truncation continuation and the verifiers insidefinish. Gemini, OpenAI and other tier-2 models keep the salvage and nudges. A draft is an explicit run flag (draft). Every v2 guard message and notice is a plain sentence, sent as a mid-conversation system message where the provider takes one. The v2 "How you work" prompt is 2.9 KB (9.1 KB today) and no longer says "no Python" or asks for three linked sheets. With the flag off nothing changes. - New: a "Hạng 2" (tier 2) hint in the Agent-mode model picker. Models other than Claude (OpenAI, Azure OpenAI, Gemini, Google Cloud, local models) run the agent's tools in a reduced form, with more checks and retries; in Agent mode the picker marks them so. A model whose profile says
agentModeSupported: falseis not offered in Agent mode; no model is hidden until the eval has measured them. - Internal (TASK-554): behind
tools_v2, OpenAI and Azure OpenAI send strict tool schemas per tool where they can be expressed within each endpoint's limits (op unions asanyOf, optional fields nullable, open maps as key/value pairs;strict: falsefor a tool that cannot, one non-strict retry on a schema error); Gemini and Vertex receive the op unions flattened with conflicting field types kept, and each op is checked against its own shape before the tool runs. MCP tools stop inflating every request: behind tool search on Claude once the probe confirms it, else at most 8 offered plusmcp_find, which adds the matching ones from the next step; MCP results over 24 KB are paged. With 40 MCP tools the tool definitions go from 63 KB to 41.5 KB. The eval scorecard computes the tier-2 bar (success ≥ 70 % of Claude's at ≤ 1.5× the turns) per model, and--mockalso runs the scripted model as a tier-2 adapter. - Fixed: totals over SUMIF, SUMIFS, COUNTIF(S), AVERAGEIF(S), SUMPRODUCT and IFERROR show their value. A summary built from a detail sheet (
=SUMIFS('Chi tiết'!C:C, …)) and every total over it were saved without a value, so previews, AMBA's own readers and the agent's checks saw empty cells until Excel opened the file. AMBA now computes them when it writes the workbook. - Fixed: the agent finds a sheet whose name it typed differently: another case of a Vietnamese letter (
nl ănforNL ĂN), decomposed accents, or without a trailing space in the name. - Internal (TASK-561): the first live Bedrock eval of v2 (Opus 5.5, 7/13 vs 8/13 current) ended 8 of 13 runs in the stagnation wrap-up after identical reads. An identical repeat of a read on an unchanged file now gets the earlier result back (content capped at 8 KB) with a note on the next step instead of an empty "unchanged"; a read after the file changed is not a repeat; the first repeat of a read gets no stagnation notice, and the notice now follows the repeated call's result instead of preceding it. Under
finish, aworkbook,document,deckoredit_filewrite says to callfinishwhen done, and the finishing rule says to read a file back only for a value.finishevaluates a cited formula cell that has no cached value. Under v2office_scriptand its guidance send decks todeck, Word files todocumentand workbooks toworkbook; after the sandbox worker fails to start, the error says a retry fails the same way and later runs do not offer the tool until a host registers again. Failed eval run lines carrytranscript(each call with arguments and result cut to 1 KB, stagnation notices, the answer; kept in the lab results and theruns.jsonlexport) andofficeSandboxwhen the worker did not start. Mock eval (Claude script): v2 16/17 like current, 3.5 vs 7.1 triggers per 10 runs, 61 k vs 107 k input tokens per run. - Fixed: reading a short file returns its content. With the new tool set, the agent asked for a 5 KB Markdown file and got only its table of headings, asked again three times and the run stopped as "incomplete". A file now comes back whole whenever it fits one result (about 24 KB); a larger file comes back with its outline and its first page, and asking again gives the next page instead of the same answer.
- New: ask the agent which model changed a file. "Ai đã sửa file này?" or "which model wrote reports/bctc.xlsx?" now gets the file's changes made by AMBA runs in this project, newest first: when, which agent, which model profile and model, the start of the request, the tool and the revision to roll back to.
- Internal (TASK-562): v2
readis content first (outline only over the cap, then with the first page, the cursor and a hint with an example call; CSV rows up to the cap instead of 50). An identicalreadafter an outline reads on at its cursor (≤ 8 KB pages,repeat_page, one-sentence note) and does not count as stagnation; replays of content results keep the TASK-561 behaviour with a concrete next call in the note.files {op: "history", path}(v2) andfile_history {path}(current set, always on) list a file's writes from the project's run events, the write ledger, Doc-Ops revisions andruns.model_profile_id(≤ 20, newest first). Mock eval (Claude script): current 16/17, 3.4 turns, 7.1 triggers per 10 runs (unchanged); v2 16/17, 3.5 turns, 1.8 triggers per 10 runs (3.5 before),edit-append-rowswithout a stagnation notice; v2 input tokens 71 k per run (61 k before), mostlyedit-append-rows(320 k): the first read of its 3,000-row sheet now carries a 20 KB first page and the two repeats read on; the other 16 scenarios average 55 k. - Fixed: formulas that build text, and totals over them, get their values. A column such as
="Q"&ROUNDUP(VALUE(RIGHT(A2,2))/3,0)(quarter labels from months) had no value when AMBA saved the workbook, so every SUMIFS that used it as a criterion, and the totals over those, showed empty in previews, in AMBA's own readers and in the agent's checks. Text formulas (&, LEFT, RIGHT, MID, LEN, VALUE, TEXT, TRIM, UPPER, LOWER, CONCATENATE), ROUNDUP, ROUNDDOWN, INT, MOD, AND, OR, NOT, COUNTA and an IF whose other branch would divide by zero are now computed. - Fixed: a summary sheet follows its detail sheet. When the agent changed a detail sheet, the summary sheet that adds it up kept its old (or empty) values until Excel opened the file; every sheet that depends on a changed sheet is now recomputed. A formula AMBA cannot compute is named in the agent's result with the reason (for example the function it does not know).
- Fixed: the agent no longer reads an Excel, Word or PowerPoint file over and over to find its formatting. Reading the content says that formatting comes from the file's structure view, and reading the same content again says so first; the live run that read a stock-count workbook five times and stopped with nothing written now gets that answer the first time it repeats.
- Fixed: the agent can read one sheet, a range or the formatting of a file with Claude. With Claude, the reader received only the file path, never the part or the structure view the agent asked for, so it got the same content again and repeated itself until the run stopped. A large workbook is now read sheet after sheet instead of stopping after the first sheet.
- Fixed: speaker notes in a deck stay on their slides. After slides were added or deleted, reading the deck showed every note one slide late (the file itself was right); the agent can now set the notes of an existing slide.
- Internal (TASK-570): from the 2026-10-23 16:01 UTC live Bedrock eval (v2 11/13, 23 repeatNoop, 10 stagnation). Root cause of 38/38 v2
readcalls withpathonly:readwent outstrict: true, the strict grammar writes properties in the wire order (name-sorted:cursor,detail,max_bytes,part,path), so afterpathnothing could follow; the current set showed the same on strictdocx_write(nevercontent). Claude strict now only for fully required schemas (Capabilities.strict_optional, off); Claude v2 lowering snapshot. An identical read after its replay getsrepeat_call(retryable false). Eval:pptxSlides/docxTextapply a unit stated in a table's header row, first column or top-left cell ("(triệu đồng)", "(tỷ đồng)", "(million VND)"). Deck reader: slide order fromr:id(was archive order) and notes by relationship;deck create {title, slides}keeps the deck title as the cover. - Internal (TASK-564): from the 2026-10-23 live Bedrock eval of Opus 5.5 (v2 10/13, current 9/13). Engine: values carry text, criteria match text results, recalculation covers dependent sheets and uncached formulas (
office/xlsx/recalc.rs,tools/excel_writer/evaluator*.rs);workbookwarns whenwrite_querywrites formula-looking text.finishrefuses a figure cited from a cell of a workbook written in the run that has no saved value (the narrative run was accepted on an in-memory value while the file showed an empty total), withat/expected/example.readhint and repeat notice for Office files; tool-definition ceiling of the v2 eval profile +151 B. Eval: the deck grader reads3.410 triệu,3,41 tỷ,3.41 billion,3,410 millionas 3,410,000,000 (the unit word decides the decimal mark; rounding to the written precision up to 1.5 %); transcripts are kept for runs that failed, did not complete or needed a guard, with up to 16 KB per argument and result (768 KB per run, else 1 KB). The Office sandbox client reports an empty worker error event as a worker script that did not load. - Fixed: columns and rows the agent inserts look like the rest of the sheet. Inserted columns take the format of the column to their left (font, size, borders, fill, width) and inserted rows that of the row above, as in Excel; when the figures on the other side use another number format, the new cells keep the General number format instead of, say, a percentage. Changing a number format keeps the cell's font and borders. Before, a column inserted into a formatted count sheet came out in the default font without borders.
- Fixed: the agent can hand in a percentage it read from a ratio cell. "−2,4%" (or −2.4 with the unit %) cited from a cell holding −0.0242 was refused as "holds −0.0242, not 2.4"; it is now accepted within the rounding of what was written, and a real mismatch is still refused with its sign.
- Changed: the agent no longer pages through a long sheet to add rows or a total. Reading a large workbook shows the last rows of its long sheets and says that new rows go after them by themselves and that totals or lookups are computed with a query; reading on page by page is for when every row is needed.
- Fixed: the agent can remember a choice you made in its question. After you picked an option (or typed an answer) in the agent's question, recording that decision for later runs was refused because your answer did not count as your own words; the option you chose and what you typed now do, while a quote you never said is still refused.
- Changed: the agent writes a formula down a whole column in one step. A column of 2,000
=D2*E2-style formulas used to take ten writes of 200 rows; it is now one fill, like Excel's fill-down (references move with each row,$references stay), with every value computed. - Fixed: a query whose text contains a semicolon is no longer refused. A SQL query that used
'; 'as a separator, or ended with;or a comment, was refused as "multi-statement"; two statements are still refused. - Internal (TASK-573): from the 2026-10-24 full Bedrock eval (v2 13/13, triggers 2.31 per 10 runs).
bctc-tb-full: twoproject_fact_recordrefusals of theask_useranswer ended in a stagnation notice; answers now count as the user's words (RunState.user_answers), the fallback answer picks the recommended option, fact refusals carryretryable, and a content refusal (retryablewithout a contractcode) resent with new arguments gets one same-error turn more; schema and op errors keep the two-turn count (runner/turn_errors.rs).edit-formula-column:workbookopfill {sheet, range, formula}(office/xlsx/fill.rs).stock-next-day: thefinishrefusal was a wrong citation (NL NƯỚC!E22is empty; the sheet ends at row 10 and every formula of the written copy had its value, now tested on the fixture); refusals name the cell of that sheet holding the figure.tableSQL check masks literals and comments (tools/read_only_sql.rs). Tool definitions:fillpaid for by shorterworkbook,ask_userandproject_fact_recordtexts (v2 chief-of-staff 25,509 → 25,501 B; every profile −8 to −100 B). - Fixed: the agent can hand in a total or a count it read from a range. A figure cited from
Bán hàng!G3002:G3004(the total of three new invoices) orTồn kho!F2:F2001(2,000 formula rows) was refused as "not a cell"; it is now accepted when it is the sum of the range, the number of its filled cells, or the number of rows or cells it spans. Otherwise the refusal says what the range adds up to and counts, so the agent corrects it at once. A source with a note after it (thong_tin_hop_dong.md (Phí dịch vụ)) and a line of a text file (thong_tin_hop_dong.md#L8) are accepted too. - Changed: a write with figures no longer stops when the agent forgot to name its sources. Once the agent has read or loaded files in the run, an Excel, Word or PowerPoint write without
sourcesgoes through, attributed to the files it read, and the agent is told to name them; the file's history ("Ai đã sửa file này?") says the sources were attributed by AMBA. A write in a run that read nothing is still refused, so figures cannot be made up. - Changed: an agent that has written nothing yet is told which file to write and how. When a reply is cut off at the output limit, or ends without handing in the result, before any file is written, the reminder names the file the request asks for (for example an Excel file in
reports) and the exact call that writes it, instead of "continue where it stopped". - Internal (TASK-575): from the 2026-10-24 Bedrock evals of Haiku 5.5 (v2 11/13, 14.6 triggers per 10 runs) and Sonnet 5.5 (v2 13/13, 2.3).
finish(runner/finish/verify_source.rs): range sources match the sum (single-cell precision rules), the non-empty count or the size; one trailing note ((…),— …) is dropped when the source as written is refused;path#L12/#L12-14on text and Markdown files must hold the figure, and the refusal names the lines that do. Provenance (modes/provenance.rs): with refs, a writer call withoutsourcesreturnsGrounding::Attributed(every ref except reads of the file being written), and its result getssources: {refs, attributed: "auto"}and a warning (not counted as a guard trigger);file_historyentries carrysourcesandattributed(modelorauto). Follow-through (runner/finish/nudge.rs): with nothing written and a deliverable named by the request or plan (an output path, or a kind of file with a write verb, in the folder it names), the truncation continuation and thefinishreminder name it and the writer call; their counts are unchanged. Eval transcripts keep text replies between tool calls (2 KB each). Scorecard: a baseline-relative bar line for a model without a baseline group reads "n/a (no baseline for this model)" (was "84.6 % vs —", "199504 vs 0", "0.0182 vs undefined") in the card, the Markdown and the lab; scorer goldens rebuilt. - Internal (TASK-572): v2 tool definitions within 25 KB per agent (chief-of-staff 34,191 → 25,509 B; eval sets 21.4–24.9 KB): shorter descriptions and property texts (shared tools too), one example fewer on the Office tools, op unions as
op: {const}without per-optype/additionalProperties(added by the strict lowerings; runtime checks useclosed_variant); the 25 KB budget test runs for every v2 agent and eval profile.workbookofferscopy_style {sheet, from, to};sheet_defaultsis accepted but no longer offered. Office reads drop the repeated "Formula Dependency Graph". Eval oracle (office-verify):cf_addedcompares the rows the rules highlight (cellIs, AND/OR/NOT expressions) when a rule is written another way,col_widthstakes{min}(INV2/INV2N: 80 % of the reference), blank formatted cells in a row the task creates are accepted; the livestock-reconcile-countops replayed on the fixture pass INV2, and every app xlsx corpus task still passes.
Google Cloud (TASK-580)
- Changed: Vertex AI is now "Google Cloud — Gemini Enterprise Agent Platform (trước đây là Vertex AI)", Google's new name since April 2026. Existing providers and profiles keep working unchanged (the provider kind stays
vertex). - New: a step-by-step guide in Settings → Models → Add Cloud Provider → Google Cloud, open until a key is pasted: choose a project with billing, enable the Agent Platform API, create a service account with the role Agent Platform User (
roles/aiplatform.user), create a JSON key, what to do when the organization blocks key creation, and paste. Each step has a button that opens the Google Cloud Console page in your browser (4 languages). - New: the pasted JSON key is checked at once. An API key, an OAuth client JSON (
installed/web) or a cut-off paste is named as such; a valid key fills in the project ID and shows its service account (read only). Saving refuses an invalid key too. The key is still stored only in the OS keychain and never shown back. - New: Thử kết nối in the dialog gets a token with the service account and sends a one-word request before you save. A disabled API, a missing role, billing off, an unknown project, a model not offered in the location or a deleted key each get a clear message; failed runs carry the same hint.
- New: location
global(default), the multi-regionsusandeu, and a short list of regions that serve the current Gemini models; any other location can still be typed.globalusesaiplatform.googleapis.com,us/euuseaiplatform.{us,eu}.rep.googleapis.com, regions keep{region}-aiplatform.googleapis.com. - New: Fetch on a Google Cloud provider lists the current Gemini models: Gemini 4 Argon, 3.8 Flash, 3.5 Flash, 3.5 Flash-Lite and 3.1 Pro (preview). Other model ids can still be added by hand.
- Internal:
providers/vertex/{key,errors}.rs, IPCtest_vertex_connection(credential checked, nothing stored),num-bigintas a test-only dependency for a throwaway RSA key in the token-flow test. Manual (4 languages) and the security pages renamed. - Fixed (TASK-582): Gemini on Google Cloud can use tools again across turns. Every run that used a tool stopped after its first step with a 400 error ("Invalid value at …function_response.response" or "Function call is missing a thought_signature"). A tool result now always goes back as an object named after its function, and Gemini's thought signatures go back unchanged on the part they came with, also after a resumed run.
- Internal (TASK-582):
providers/vertex/parts.rs. Signatures are stored asContentBlock::Thinking(providervertex, payload typegemini_thought_signature, keyed by call id), so they persist in the run history andruns.resume_state_json; replayed only to the same model. A firstfunctionCallof a step in the current turn that has no signature gets Google's documentedskip_thought_signature_validator. A tool result whose call is no longer in the history goes as text. Vertex wire golden updated (functionResponse.name). - Fixed: a saved Google Cloud provider no longer shows the generic "Base URL" and "API key" fields, where saving replaced its service-account key with whatever was typed. Its card now shows the project, the location and the service account (read only), Thử kết nối with the saved key, and Thay khóa JSON, which opens the same fields and checks as Add provider. Every way of saving a key for a Google Cloud provider now checks it (TASK-581).
- Internal (TASK-581): IPC
vertex_provider_info(project, location,client_email; no secret) andtest_vertex_provider(the saved key);set_provider_credentialvalidates avertexprovider's value likesave_model_provider. - Fixed (TASK-586): Gemini sees every tool result of its run. On Google Cloud (and every provider other than Claude), the runner shortened all tool results older than the last four messages, so of seven files read in one step the model saw only four, then re-read and re-queried what it had lost. The latest results are never shortened now, and Gemini on Google Cloud keeps the whole run as it was said, like Claude.
- Changed (TASK-586): Gemini on Google Cloud costs less per run and the cost shown is right. Requests of a run now start with the same bytes (instructions, tools and the conversation so far; a runtime reminder stays where it was said), so Google's automatic context cache applies; the cached part (
cachedContentTokenCount) is counted as cache read and Gemini's thinking tokens (thoughtsTokenCount) as output. Before, every run showed 0 cached tokens and no thinking. The same usage fix applies to Gemini through AI Studio. - New (TASK-586): the
tabletool saves a query as a table (loadwithnameandsql): six monthly bank statements become one table forreconcile, or a signed amount column is added, instead of the agent copying 45 rows into a CSV by hand (both Gemini models did, one with changed descriptions). - Internal (TASK-586):
providers::google::gemini_usage(AI Studio final and stream, Vertex);VertexProvider::requires_append_only_history→ true; mid-runsystemmessages go in place as user text (wire golden updated);skip_thought_signature_validatoron every unsigned step, not only the current turn (prefix stays byte-stable);prune_tool_observationskeeps the latest batch. Eval:tests/agent-eval/prices.jsonprices Gemini 4 Argon ($4 / $0.20 cached / $20) and Gemini 3.8 Flash ($1.50 / $0.15 / $7.50) per million tokens at Google's standard global list price (source in the file), an entry'scacheReadwins overcacheReadMultiplier, a lab price override keeps the model's cached share (optionalcacheRead); the metrics judge a tier-2 v2 call as the runner reads it back (read_tier2_call), so Gemini's[{key, value}]map pairs are no longer counted as invalid calls or op-shape repairs (Argon's 2.7 validation errors per 50 calls were all such pairs). - Fixed (TASK-587): Gemini on Google Cloud no longer hangs on a request and answers sooner. Answers now stream as they are written. When Google sends nothing for 120 seconds (or stops for 90 seconds mid-answer), AMBA sends the request once more and then stops the step with "Google không trả lời trong N giây", which the run retries and can resume; before, one Gemini 3.8 Flash request never returned and its run sat for 10 minutes without a step. The connection test waits at most 180 seconds.
- Changed (TASK-587): Gemini thinks at a set level instead of Google's default: Gemini 3.8 Flash (and other Flash models) low, Gemini 4 Argon (and Pro) medium. Long answers are no longer cut off: Gemini's thinking counts against the answer length, which two Argon answers hit at exactly 4,096 tokens; Gemini models now get at least 32,768 output tokens.
- Internal (TASK-587):
providers/vertex/{stream,generation}.rs.streamGenerateContent?alt=sseon the global, multi-region and regional hosts; chunks map to text deltas, wholefunctionCalls in order (signatures throughPartCollector) and usage from the last chunk;streams_incrementally→ true. First-byte 120 s and idle 90 s (stream::FIRST_BYTE_TIMEOUT,IDLE_TIMEOUT), one re-send while nothing usable went out, thenvertex_timeout: … timed out(TransientNetwork,llm.timeout); while waiting for the first byte the stream reports hidden thinking (Alive { progress: true }).chat()has a 180 s overall limit (CHAT_TIMEOUT).generationConfig.thinkingConfig.thinkingLevelon Gemini 3+ (LOW/MEDIUM; effortXhigh/Max→HIGH,Low→LOW; neverthinkingBudget),maxOutputTokensclamped to 32,768–65,536 on Gemini 2.5+. New wire goldenvertex_gemini.json; the Vertex runner mocks stream SSE.
Legacy cleanup (Milestone 109)
- Changed: the Setup Wizard is one step: connect Claude. Choose Anthropic API (paste the key) or Amazon Bedrock (AWS region and a Bedrock API key); the key is checked and stored in the keychain exactly as in Settings, and Claude Opus 5.5 becomes the default model. The Gemini, OpenAI and Tavily steps, the offline demo and the sample prompts are gone; those providers and the web search keys stay in Settings.
- Changed: the web search keys (Tavily, Brave Search) have their own "Tra cứu web" section in Settings → Models, with the same keys as before.
- Changed: with no projects, the project list shows a simple empty state with Tạo dự án and the starter templates. No demo dialog opens by itself.
- Removed: System-One / TypeSafe AI "Jev": the "Step 3" card in Settings → Models, the composer's Auto button and "Jev" badge, and the routing step before each run. The mode you pick (Research, Plan, Agent) is the mode the run uses. On upgrade the experimental setting and a saved TypeSafe key are deleted once.
- Removed: the AMBA Trial (Gemini 2.5 Flash-Lite, 3 free runs): the "AMBA Trial" model, the trial badge and the "trial limit reached" dialog. On upgrade the trial model is removed; a project, agent or app default that used it falls back to "Theo mặc định" or asks you to pick a model.
- Removed: Import ChatGPT conversations (Settings → Vault & Security). The conversations it imported were never shown anywhere; on upgrade they are deleted with their messages.
- Removed: the demo sandbox projects ("Explore Demo Sandbox" and the welcome dialog). Demo projects you already created stay as ordinary projects.
- Removed: "Lưu vào tri thức" under answers and the Memory page (Settings → Advanced → Memory). What agents should know about a project lives in Những gì agent biết. Notes saved before are kept and still recalled; Memory used (n) and the session reset can remove them. Agents no longer get the
knowledge_store/knowledge_searchtools. - Removed: the read-only Models and Skills pages under Settings → Advanced. Models are managed in Settings → Models.
- Removed: AMBA no longer has a way to run system commands. The
shell_executetool is gone, with the "Thực thi lệnh hệ điều hành (shell)" switch in Create project → Advanced and "Chạy lệnh hệ thống (Terminal)" in Project settings → Permissions & Security. An agent or an old chat that still names the tool gets "tool not available". Projects that had the switch on keep working; the setting is no longer read. The security page says so (4 languages). - Removed: the Marketplace tab in Advanced → Tools (five developer MCP servers). Connecting your own MCP servers under MCP is unchanged, and servers you added from the Marketplace stay.
- Removed: the "Tạo bằng AI" (AI Co-Creation) tab in Agent Studio. It filled a template from keywords without asking a model; start from a template or from scratch in the editor instead.
- Removed: the "Kỹ thuật & Công nghệ" suite (code audit, performance, API refactor) from the chat's playbook menu.
- Removed: the "convert this large document to Markdown first?" question before a run. AMBA now reads large Office and PDF files in pages, so the run starts right away.
- Removed: Zalo from the list of services you can connect in the privacy policy (4 languages); the Zalo connector itself was removed in 0.5.14.
- Internal: one-time upgrade step
runtime/upgrade/m109.rs(ChatGPT imports, the System-One setting and keychain entry, theamba-cloudprovider and profiles; the knowledge tools joinREMOVED_TOOLS, whose rows the seed deletes), idempotent and tested. 13 IPC commands removed (import_chatgpt_conversations,get_systemone_status,set_systemone_experimental,test_systemone_connection,check_trial_quota,provision_demo_sandbox,ingest_knowledge,list_project_ingested_sources,list_memories,upsert_memory,make_memory_global,search_memories,clear_all_memories). Saving a Bedrock provider now adds its Claude in Amazon Bedrock profiles. ADR-049 and ADR-045 are withdrawn. - Internal: the feedback worker no longer serves
/v1/trial/*(404); deploying it needs a separate Founder approval. - Internal: deleted dead code:
runtime/hybrid_engine.rs,ResponseCache(runtime/cache.rs, its storage helpers; theresponse_cachetable goes next release), the live-follow half ofuseRoutineLive(routine history still renders),packages/examples/, the IPClist_marketplace_extensions,detect_conversion_candidateandconvert_project_document, theExecutetool effect andRunIntent.attachments. The launch seed deletes the oldshell_executetool and permission rows;projects.allow_shellstays in the schema, unread.
PDF
- New: AMBA reads hard PDFs by itself (Milestone 107). Tax and public-service forms such as "Giấy nộp tiền vào NSNN", scans, and files with broken fonts now reach the agent as correct text. There is nothing to set up, no button and no per-file question:
- The file's own text first. Filled-in form values (amounts, tax codes, dates, account numbers) are read next to their labels, in reading order. Before, AMBA read only the printed labels of these forms and the agent answered as if they were blank; some of them could not be opened at all. Pages whose text is garbled (a damaged font encoding) are recognised and are not handed to the agent as text.
- Then text recognition on this computer for every page without usable text: a scan, several images, a page drawn as shapes, a font AMBA cannot decode. Vietnamese first, then English. A form whose text lacks its filled-in values gets them from the page image. macOS uses Apple Vision, warmed up quietly after an install so the first scan is not slow. Windows uses its own text recognition when Vietnamese is installed (not yet verified on a Windows machine). Linux has no on-device recognition yet.
- Then AI, only for the pages this computer cannot read (Linux, a missing language pack, a faint scan). Just those pages go to the project's AI model, once: Claude Haiku 5.5 on Anthropic and Amazon Bedrock, the project's own vision model on OpenAI and Azure OpenAI. In a project that masks identifiers, AMBA first asks once, in the chat: "Cho phép AMBA nhờ AI đọc các trang PDF khó trong dự án này?" (Cho phép / Chỉ đọc trên máy). Background work never asks. The answer can be changed under Project settings → Permissions & Security → Cho phép AI đọc trang PDF khó.
- Each page is read once. The result is stored with the project, so opening the file again, other agents and workspace search reuse it and no page is sent twice. When a better way becomes available (the Vietnamese language pack is installed, the owner allows AI reading), pages left unread are read again in the background, a few at a time.
- The agent says what it could not read, for example "trang 3 không đọc được: máy chưa có gói OCR tiếng Việt", instead of guessing values.
- In Nguồn, a PDF's Lịch sử file shows one muted line on how it was read: "Đọc bằng: chữ trong file", "OCR trên máy", "AI (Haiku 5.5)" or "Một số trang chưa đọc được".
- Each page sent to AI is listed under "Data leaving this device" (
vision_ocr: model, file, page count, size, tokens; never content), and its tokens count in the usage view. Privacy policy updated (4 languages).
- Fixed: a damaged PDF that made the page renderer fail no longer shows a crash notice at the next launch.
- Internal: one PDF text engine for all 9 readers (
runtime/pdf_text: Form XObjects, widget appearances, tolerant ToUnicode CMaps, reading order) with a per-page quality verdict (good, partial, garbage, empty).pnpm run eval:pdfcompares it with a reference on local, private PDFs. - Internal: page renderer
runtime/pdf_render(pure-Rusthayro, compiled in, about 2 MB per installer, no native library); tier 2runtime/pdf_ocrbehindOcrEngine(Apple Vision in process throughobjc2-vision,Windows.Media.Ocr, none on Linux), cached per file hash, page, engine, version and dpi. - Internal: tier 3 (ADR-075)
runtime/pdf_transcribe: one-shot request (a sub-PDFdocumentblock for Anthropic / Claude in Amazon Bedrock, PNG parts for OpenAI / Azure), cached as engineai:<model>, never in chat history;refusal/max_tokens→ocr.ai_refused/ocr.ai_truncated; skips reportocr.ai_consent_needed,ocr.ai_local_only,ocr.ai_unavailable. The ledger gainsdetail_json(V046); the egress guard allows page media only inruntime/pdf_transcribe/.pnpm run eval:pdf:aimeasures real tokens per page with the owner's own key (opt-in). - Internal:
pdf_readandfilesystem_readon a PDF report per pageverdict,source(text,ocr:<engine>,text+ocr:<engine>,ai:<model>,none),ocrConfidenceandunreadableReason, plus a plainreadingNotefor the agent; tier 3 runs after both (TASK-541).runtime/pdf_refreshre-reads refreshable cached pages from the scheduler tick (every 15 min, 4 OCR + 4 AI pages per pass, never asks) and re-indexes the file;tools/ocr/warmupmakes one tiny Vision call per app and engine version. IPCsource_pdf_reading.
Amazon Bedrock
- Fixed: Claude Sonnet 5.5 and Claude Haiku 5.5 work on Amazon Bedrock when Bedrock's newer Claude endpoint (Mantle) does not offer them to your account. AMBA now switches by itself to the endpoint the Bedrock playground uses (InvokeModel) and remembers that for the model, so later chats go there directly. Before, these models failed with a wrong "enable model access in the AWS console" message. When InvokeModel also refuses a model, the error now says plainly that access is missing, for which model and region.
- New: the Amazon Bedrock provider form has Cổng gọi Claude (Claude endpoint): Tự động (default: Mantle first, InvokeModel when Mantle does not serve the model), Mantle or InvokeModel.
- Internal (TASK-560): a third Anthropic transport,
bedrock_invoke(bedrock-runtime/model/{inference profile}/invoke-with-response-stream,anthropic_version: bedrock-2023-05-31, betas inanthropic_beta, SigV4 forbedrockor the API key as a bearer token, AWS event stream decoded into the same Claude stream parser); the settingbedrock_claude_endpoint:<provider>, the remembered switchclaude_endpoint_choice:<profile>:<model>per app version; the capability probe, the background self-check and the lab's "Dò tính năng Claude" run on it and show the transport. The data-flow ledger recordsbedrock-runtime.{region}.amazonaws.comonce the switch is remembered.
Experimental
- New: Settings → Advanced → "Show experimental features" (off by default) opens an Experimental lab for trying new features with the keys AMBA already stores, no terminal: Probe Claude features checks which request features each Claude profile (Anthropic API, Amazon Bedrock) accepts, about $0.05 per platform, shows the table with exact errors, applies the result to that profile right away and exports it (Markdown or JSON); Measure the tool set runs the sample office tasks (core 13 or full 32) on the chosen models (Claude, or OpenAI and Gemini as "tier 2" with the recommendation whether to keep them in Agent mode) in temporary projects, only after a cost estimate and your confirmation with a required budget cap, with progress, Stop, a scorecard against a saved baseline, Save as baseline and Export results; New tool set (v2) turns the beta tool set on or off. Probe requests and eval model calls are listed under "Data leaving this device" (
capability_probe,tool_eval; synthetic text only). - New: Measure the tool set can re-run only some scenarios ("Bài chạy": Tất cả / Chỉ các bài lỗi lần trước / Tự chọn). "Failed last time" preselects the scenarios that did not pass, did not finish or ended with a wrap-up in the last run, for the models and tool sets you picked, and shows their names; "Choose" lists the suite's scenarios as checkboxes. The estimate and the budget cap cover only the picked scenarios. The result shows Chạy lại N/13 bài, compares each re-run scenario with the baseline's result for the same scenario, tools and model, and marks suite-wide success-bar lines "n/a (subset run)"; Lưu làm baseline is off for such a run. A merged view (labelled as not a single run) shows the last full run with the re-run scenarios replaced by their newest results; its success bar is measured only where every scenario has a result. The export adds
merged-scorecard.json/.md. - New: Measure the tool set can mix models from several profiles in one run. The single "Hồ sơ" list is gone: the models are grouped by profile, and you tick models in any of them (up to 6), for example
us.anthropic.claude-sonnet-5-5from the Sonnet profile andus.anthropic.claude-haiku-5-5from the Opus profile. Each model runs with its own profile's connection and key; a model ticked under one profile is greyed out under the others. The estimate lists each model with its profile; the cap, the scorecard groups, "Chỉ các bài lỗi lần trước", the merged view and the export work across profiles. A Bedrock profile written with an inference-profile prefix (us.,eu.,global.) now offers the other Claude models with the same prefix instead of the bareanthropic.claude-…ids; a profile whose own model is a bare id keeps them, marked Mã trần with a note that such an id may not be callable on demand. Internal (TASK-574):EvalPlan.targets [{profileId, model}]; the oldprofileId+modelsshape is still read (stored runs, older callers); unknown profile or model refused by name; the job and items carry the profile;lab_get_stateno longer returnspriceModels(profiles carryevalModels). - New: Measure the tool set no longer loses results and is easier to steer on a long run (Settings → Advanced → Experimental):
- Saved after every run. If AMBA closes mid-run, the next time you open the lab that run shows as Bị gián đoạn with its partial scorecard, which you can export.
- Tiếp tục lượt bị dừng: after Dừng, the budget cap or a closed app, continue the same run. Only the tasks without a result run, and the scorecard covers all of them. You can raise the cap for the whole run before continuing.
- Bỏ qua bài này: skips the task that is running. It is listed as skipped in the scorecard, counted neither as a pass nor a fail, and the next task starts.
- Song song: run up to 4 tasks at once (3 by default). The budget cap still holds; when the provider slows AMBA down (429), it waits and runs fewer at once.
- Time limit per task (10 minutes by default): past it the task counts as an error (timeout) and the next one starts. The progress list shows each running task with its elapsed time, marks it chậm after 5 minutes, and puts Bỏ qua bài này next to it.
- Ghép kết quả: build one scorecard from several runs of the same suite, for example a stopped run and a later run of the rest. For each task, tool set and model the newest result counts. The scorecard is labelled as combined, lists the runs it comes from, and exports like the merged view.
- Changed: the Experimental lab is tidier (TASK-585): three tabs, Đo bộ công cụ (one form: models, Bộ kịch bản, Bộ công cụ Cũ / Mới / Cả hai, Bài chạy, Trần chi phí; repetitions, runs at once, time limit and typed prices under Tùy chọn nâng cao; a running sweep's progress card replaces the form), Kết quả (the latest sweep first with success per scenario and the success-bar lines folded, the subset comparison and merged/combined views folded, the recent sweeps with Ghép kết quả; Lưu làm baseline only for a whole-suite run) and Dò tính năng Claude; the last tab is remembered. Long explanations moved behind an info icon, the inputs use the app's form styling, and the leftover "New tool set (v2)" card is gone (the switch is Settings → Advanced → "Bộ công cụ agent"; the "success bar last met" line is now under the results). Internal:
lab_get_statereturnsbarMetinstead oftoolsV2and no longerbundleBytes.
Long agent runs
- Fixed: large spreadsheets no longer stall a run. After the agent wrote or edited a big workbook (50,000 rows, say), the check that compares the report's figures with the workbook, and the check of the figures handed in at the end, could keep AMBA busy at full CPU for hours while the run showed no progress. They now take seconds on such a file. Each of these checks also has a time limit (20 seconds for the figure checks of the files, 30 seconds for the final check) and a size limit (200,000 cells per workbook for the figure comparison): past it the check is skipped with a note in the run's details, never a hang, and Stop ends a check at once.
- Fixed: the agent can save a report built from the files it read. On a project with many source files, writing a report workbook (say 160 rows of a BCTC) was refused again and again with "CHƯA ĐỌC dữ liệu thực từ file nguồn …", each time naming a different file of the project, until the run gave up. AMBA now checks only the files the report comes from (the ones you name and the ones the report mentions), and counts any way the agent read them: one sheet or a range, a page of a CSV or PDF, a table loaded with AMBA's table tools and queried, or a working copy made from the file. A report written with nothing read at all is still stopped once; after that the file is saved with a warning to check the figures, so the run never stalls on it.
- Fixed: a run that could not save its file no longer ends as done. When the agent never manages to write the file it promised, the answer keeps its last real summary, ends with "Chưa lưu được file: …", and the turn shows "Chưa tạo được" with the file name. Before, a one-line progress note replaced the summary and the run reported success with no file.
- Fixed: long tasks no longer stop while the agent writes a big Excel file. While Claude (Anthropic or Amazon Bedrock) wrote a large tool call — an 11 KB
excel_write, say — it sent no visible text for over a minute, and AMBA took the healthy connection for a stalled one: "LLM stream timed out … (connection stalled)", three retries that died the same way, then a failed run. AMBA now counts everything the model sends (tool arguments, hidden reasoning, keep-alive pings) as progress, for Claude, OpenAI-compatible and local servers and Gemini; only 90 seconds with no data at all counts as a stall, and one model turn may run up to 15 minutes. OpenAI, Gemini, Azure, Vertex and Bedrock (Converse) answers are no longer cut off after 2 minutes. - New: "Tiếp tục từ bước N" picks up where the run stopped. AMBA now saves a run after every finished step. When the AI provider or the network fails mid-run, AMBA first waits 30 seconds and tries that step once more by itself; if it still fails, the error card offers one button, Tiếp tục từ bước 13 (the step that failed): the run continues from there with everything it already read and wrote — no step is done twice and no tool runs again. A failure that retrying cannot fix (a refused API key, a wrong setting) still offers Thử lại. Migration V046 adds the column; saved steps are dropped when the run finishes.
- Fixed: a long run that reaches its step limit ends with a real summary. A chat run may now take 60 steps (was 30). When it uses them all, AMBA asks the agent once more, with no tools, for the final answer: what was done, the files written, the key figures and what is still open. Before, the run showed its last progress note ("Bước cuối: thêm sheet ghi chú …") as the answer. If plan steps are left, the answer ends with "Đã dừng ở giới hạn 60 bước …" and a Tiếp tục từ bước N button starts a follow-up turn in the same chat.
- Fixed: a run that got stuck says so instead of ending as done. A run stopped because it kept repeating a failing action, or that ends without an answer of its own, is shown as not finished: what it tried, why it stopped, the last error, and "Nhắn tiếp tục" with a Tiếp tục button. It never shows an earlier answer from the same chat as its own.
- Fixed: formatting an existing workbook works on the first try.
excel_writenow shows the agent every edit op with its exact fields and an example, accepts the shapes agents often guess (set_column_widths,widths,col+width, aformatstring for a number format), reports every wrong op at once with the expected form, and edits the workbook itself instead of a test copy. An agent fixing a call field by field is no longer stopped as "stuck"; the same error repeated still is. - Changed: long runs cost far less. On a run like an accounting close with 43 source files, a large working workbook, six bank statements and several workbook updates, the agent now sends about a quarter of what it sent before (measured on a replay of a real 26-step run: from about 10.3M to 2.5M input tokens), with the same result:
- The agent no longer gets the content of every project file at the start; it gets a short list of the files (kind, size, date, the sheets of a workbook, the pages of a PDF and whether they are scanned) and reads what it needs. Small files you name in your message are still read in up front.
- Large files are read in pieces: a big workbook first shows its outline (sheets, sizes, first rows), then the agent reads one sheet or a cell range; a bank statement CSV shows its header, row count and first rows, and totals or matching go through AMBA's table tools; long PDFs and documents are read page by page.
- A workbook the agent already wrote is updated in place (just the changed cells, sheets, formulas or formats), instead of being written again in full; formulas stay calculated. Repeating the exact same write or read on an unchanged file no longer runs it again.
- New: see how much came from the prompt cache. Under an agent's answer the token count now says, for example, "10.33M tok · 9.6M from cache" ("9.6M từ cache"); Usage shows cache reads and writes in total and per model, and the estimated cost prices cached tokens at the provider's lower cache price instead of the full input price.
- Changed: the progress view stays smooth however long the run. The live turn no longer redraws every finished step and tool row on each streamed word and each clock second; streamed text is drawn once per frame and large tool results are kept out of the live view's bookkeeping.
- Internal (TASK-543): first-turn file manifest (
context/manifest.rs,runner/file_context.rs: ≤ 200 entries / 10 KB, deterministic for prompt caching; named files ≤ 1 MB, at most 4, 12 KB each). Per-call reader captools/read_cap.rs(24 KB,max_bytes2–64 KB) withtruncatedandnext_offset/next_start_line/next_page(pdf_readfrom_page) /next_from/next_slide;excel_readmoved totools/excel_read.rs(outline / rows / range modes, content no longer duplicated).spreadsheet_editopset_range;excel_writereportsoverwrote_existing.runner/repeat_guard.rsanswers identical repeats on unchanged files. Usage keepscacheReadInputTokens/cacheCreationInputTokensin step activities, run usage, resume state, the ledgerdetail_jsonof every model call and the token analytics (storage/db/token_tally.rs, cache-aware pricing); Bedrock Converse and OpenAI cached tokens are parsed. Token benchruntime/execution/tests_token_bench.rs; research notedocs/ARCHITECTURE/context-trimming-research.md(no server-side context editing yet). - Internal (M108 TASK-546): scenario eval of the agent,
pnpm run eval:agent: 30 Vietnamese office scenarios (tests/agent-eval/) through the real runner with deterministic verifiers and per-run metrics (first-try valid tool calls, error results, guard/nudge/salvage triggers, turns, tokens incl. cache, tool-definition bytes, list-price cost); a scripted subset runs in the gate; live sweeps on Bedrock, Anthropic, OpenAI or Gemini use keys from the environment only and stop at--budget-usd.
Sources
- Changed: classify a file from its "Chưa phân loại" label. In a source's history, each unclassified file's "Chưa phân loại" label now opens that file's "File này là loại gì?" question (answering it still classifies every file of the same structure); the separate Phân loại button under the entry is gone. The question popover, and the day popover in the file tree, now always fit the window and scroll, so a long list no longer runs off the screen.
- New: change a file's kind after it was classified. In a source's history, a classified file's kind is now a button: Đổi loại moves it (and every file with the same structure — "Áp dụng cho cả N file cùng cấu trúc") to another kind or a new name, Đổi tên loại này renames the kind for all its files, and Bỏ phân loại sends the files back to "Chưa phân loại" so AMBA asks again. Answering the same structure twice now moves it instead of leaving it in both kinds; a kind left with no files is hidden from the pickers and its name can be reused.
Release tooling
- Internal:
release-all.ymlis the only release workflow (pick one platform to re-release it); the per-platformrelease-*.ymlworkflows, which passed bundles as GitHub workflow artifacts and hit the storage quota, are removed.scripts/release-deploy-local.shruns the R2/D1 distribute and smoke steps on a local machine when a run's builds staged their bundles but Actions cannot start the deploy job.
Website
- Changed: ambadesk.com speaks to SME finance and operations teams in English, Vietnamese, Japanese and Korean: the home page keeps its layout with features that exist today (sources and workspace, scheduled processes, hard PDFs and scans, your choice of model) and the catalog's real agent templates; new About and Security & architecture pages, a site-wide footer, and per-page titles, descriptions, Open Graph image, canonical and language links. Stale claims (agency pitches, "Executive Dossier", "10–25 minutes", "0% error") are gone (TASK-563).
0.5.14 — 2026-10-19
Processes
- Fixed: a file sent today counts as "có file", whatever date its name carries. A report sent today under an old name (a reused template, "Tồn kho LHP 3-10.xlsx" sent on 19/10) was counted for the day in its name, so the process took the "chưa có file" branch and told the owner nothing came. Now any file sent or received today counts for today (files named for today still count, each file once), the agent step gets it, and a "có file hôm nay?" check after a second fetch sees what that fetch brought.
- New: the agent checks the files against earlier data. For each file counted today AMBA records the date in its name, an identical earlier file (same content, e.g. "giống hệt file nhận ngày 15/10") and the previous reports from the same person; a Nhờ agent step working on fetched files gets these facts and is asked to compare the figures and to tell the owner plainly when the data repeats an earlier report or the file name or date looks wrong — it still does the report. Lịch sử chạy shows them on the Lấy file step: each file, "tên ghi ngày 3/10", "giống hệt file nhận ngày 15/10".
- New: a step warning when a file check after a wait still counts files fetched before the wait ("Bước kiểm tra này đếm file lấy trước lúc đợi đến 17:00…"); Nhờ AMBA kiểm tra lại proposes the fix (fetch again right after the wait and count that fetch).
- New: a process remembers what you asked for. A process made with "Tạo bằng một câu" keeps your sentence, every Chỉnh thêm… sentence and every Sửa bằng một câu change you apply later (the last 10) with it, shown at the top of its steps as Yêu cầu ban đầu (the changes folded under "N lần chỉnh thêm"). Nhờ AMBA kiểm tra lại now compares the process with those words, not only its name and steps, and points out a step that goes against or leaves out something you asked for. Processes made by hand or before this update have no Yêu cầu ban đầu and are checked as before. Migration V045 adds the column; nothing else changes on upgrade.
Cleanup (Milestone 106)
- Fixed: the agent can search your project files again.
workspace_searchnow finds text in the project's Markdown, text, CSV, JSON and HTML files and in Word, Excel, PowerPoint and PDF files with a text layer, in Sources and the workspace. AMBA indexes them on this computer (nothing leaves it) in the background when a project opens and whenever its files change; only new or changed files are read again, deleted or renamed files drop out of the results, and.amba/, hidden and build folders and files over 5 MB of text are left out. Before, the search always came back empty. - Removed: the Chốt & Xuất bản (Finalize & Publish) button on the plan card and in the plan file preview, and its confirmation. When the drafts are right, ask the agent in chat for the final version; it writes it to
reports/. Xem kế hoạch and Tạo bản nháp are unchanged. - The sidebar's "Processes on" indicator shows the next scheduled process run again (name and time; a click opens that process), and quitting AMBA from the tray while a process run is in progress asks first, as it does for a chat run.
- Internal: dead frontend code from before processes removed (unused routine, pipeline and connector wrappers, mock handlers, types and components) and duplicate text/format helpers merged; nothing changes on screen.
- Internal: the retired routine runtime (executor, gate, dry runs, routine proposals, 13 routine IPC commands) and the legacy pipeline sync, Telegram fan-out and Zalo connector are removed (21 more unused IPC commands with them); what processes and sources share moved to
runtime/schedule,file_events,arrivals,delivery. Migration V043 renamesroutine_arrivalstoarrivals; watcher settings keys, theprocess_set_flagandpropose_processtools (old names still accepted),process:changedandbackground_status.activeProcessesdrop the routine names. Databases from 0.5.12 still upgrade on their first launch. - Internal: release and CI workflows pinned to Ubuntu 24.04 (Linux builds stay on 22.04) and moved to Node 24 GitHub actions; the agent catalog is published from the bundled
src/assets/catalog/agents.json(nodist-catalog/copy), and the gate fails when the catalog or the site's playbook pages drift fromcatalog/playbooks/; code highlighting loads only the languages it shows. - Internal: oversized source files split into small modules with no behaviour change (filesystem tools, document ops, planning and one module for answer markup cleaners, legacy Office parsers, seeds, model types, the Telegram wire types, the Excel formula tokenizer, the engine tests and the feedback worker's routes); the 800-line file check now also covers the feedback worker.
0.5.13 — 2026-10-18
Claude-first agent protocol (Milestone 105)
- New: give an agent "Tra cứu web". An agent's capabilities are now switches, in the project agent's ⋯ → Cài đặt agent and in Agent Studio on an installed agent, with Tra cứu web (web search and opening pages) first. A switch saves at once and says Áp dụng cho agent này ở mọi dự án dùng nó; the agent's other tools and the clarifying question tool are kept. Where web search is missing because of the agent, one click fixes it: a "Nhờ agent" step that failed with "agent này chưa được bật Tra cứu web" shows Cho agent tra cứu web in Lịch sử chạy, in the step panel and in the agent's conversation, then Thử lại; the builder's Nhờ agent form warns as soon as Cho phép tra cứu internet is on for such an agent, with the same button. A step stopped for a missing search key has a button to Cài đặt → Tài khoản kết nối. In chat, an agent without Tra cứu web (while a search key is set) now says it cannot look things up and that the owner can turn it on in the agent settings, instead of guessing figures or being pushed to call a web tool it does not have. The Chuyên gia Phân tích Tài chính & Kế toán and Chuyên viên Đối soát Tồn kho & Hao hụt templates now include Tra cứu web (exchange rates, gold, commodity and supplier prices); agents already installed from them get it once on update, only if their capabilities were never changed since install.
- New: Nhờ AMBA kiểm tra lại on a saved process. When a step has a warning or an error, or Bật was refused, the process tab offers Nhờ AMBA kiểm tra lại; it is also always in the tab's ⋯ menu. AMBA checks each situation of the process as it is now against what it is for, and answers AMBA thấy quy trình đúng ý, AMBA đề xuất sửa: with the lines that would change (Áp dụng saves it like any step edit and asks for consent first if it lets the process do something new; Bỏ qua keeps it as it is), or one short question to tap. Nothing is saved before Áp dụng. If the model fails, AMBA says why and still shows the warnings and situations. The free Kiểm tra lại next to a Bật error still only re-reads the process.
- New: "Tạo bằng một câu" is a conversation you can keep refining before anything is saved. Under AMBA's proposal, Chỉnh thêm… takes another sentence ("gửi lúc 5h chiều", "khi gửi xong thì nhắn Anh Hùng"): AMBA applies it to the draft — remembering your first sentence and every earlier change — runs the same checks again (Xem diễn biến, the step warnings, AMBA đã tự sửa, questions) and answers with an updated card that lists what changed. Earlier cards fold to one line and open on tap. Tạo quy trình saves the latest draft, off, as before. Until then nothing is saved: closing the screen or its tab leaves no draft behind, and once you have refined it AMBA asks before discarding your work. A change AMBA cannot apply says so and keeps the previous draft with your words still in the box; up to 10 changes per draft.
- New: a process made from a sentence is checked against what you said before you can turn it on. Xem diễn biến shows what it does in each situation — files in at the first fetch, files only before the cutoff, no files all day — as a timeline ("20:00 lấy file từ Nhóm Kế toán → có file → tổng hợp báo cáo → gửi báo cáo cho Chị Lan"), walked without fetching or sending anything, with Không ai được báo on a situation where the report's recipient hears nothing; it is also under the steps of every process. Common mistakes show on the step: a wait and a second fetch outside the "chưa có file" branch ("luôn chạy kể cả khi đã có file"), a "có file" check without Nếu không ("nếu không có file, người nhận không được báo"), a reminder whose time differs from the wait, a fetch nothing uses, and an agent that is not in the project (with Giao cho … to pick one of the project's agents). AMBA then asks the same model once more to compare the situations with your sentence: it fixes what does not match and shows AMBA đã tự sửa: with the changed lines, or asks one tap-question; if that check cannot run, the draft is kept with a note. Bật is refused while an error is left, and with warnings left it asks once (Vẫn bật). "Sửa bằng một câu" goes through the same checks, and "Tạo bằng một câu" now puts the reminder, the wait and the second fetch inside the "no files yet" branch and tells the recipient when no files came.
- Changed: the default model in Cài đặt → Mô hình AI (Bước 2) is now the base for everything, and an explicit choice overrides it: the model picked in an agent's chat, then the project's model, then the default. "Tạo bằng một câu" and routine drafting used the project's model or else the first model in the list and ignored the default; they now follow the same order, as do chats, process steps, step tests and routines. New projects start on Theo mặc định (…) (the project's model is shown in Cài đặt dự án → Chung → Model AI with that option first), so changing the default moves every project left on it. Picking a model in a chat no longer changes the project's model silently: it is saved to that chat's agent (the first "Bot 1" too), and Theo mặc định (…) at the top of the picker removes the agent's own choice. "Tạo bằng một câu" and the builder's "Nhờ agent" step show which model runs and why ("Opus 5.5 (Amazon Bedrock) · mặc định", "· dự án", "· agent"). Projects and agents keep the model they already have; Cho tất cả dự án dùng model mặc định under Bước 2 puts them all back on the default after a confirm that says how many projects and agents change.
- New: Claude in Amazon Bedrock. With an AWS Bedrock provider (Cài đặt → Mô hình AI → AWS Bedrock, a Bedrock API key or an IAM access key), Claude Opus 5.5, Sonnet 5.5 and Haiku 5.5 run through AMBA's Claude adapter on Amazon Bedrock's Messages API, billed to your AWS account: thinking summaries, effort, prompt caching and native tool calls work as with an Anthropic key. Adding models for a Bedrock provider now offers them as "(Claude in Amazon Bedrock)" even when the key cannot list models, and existing Bedrock providers get the three 5.5 models once. A request for a model whose access is not enabled says so and points to Amazon Bedrock → Model access in the AWS console. Older Bedrock Claude ids such as Claude Sonnet 4.5 (
us.anthropic.claude-sonnet-4-5-20250929-v1:0) and non-Claude Bedrock models keep working exactly as before. On Bedrock, AMBA does not use Anthropic's server-side retry of declined requests or strict tool schemas (not offered there). The "Dữ liệu rời khỏi máy này" panel shows these requests going tobedrock-mantle.<region>.api.aws. - New: every agent turn has a Suy nghĩ line above its work: the model's own short summary of how it reasoned (Claude's reasoning summary), folded by default with the time it spent — open it to read it. While the agent works it streams live with a running clock, and short progress notes ("Đang viết phần đề xuất cho từng khoản.") appear under the running step. AMBA never shows raw reasoning; answers saved without a summary show no Suy nghĩ line.
- New: the plan card of a turn is the checklist the agent keeps while it works (with its one-line explanation), ticked step by step; answers saved before this update keep their plan. A turn without a plan lists Các bước đã làm instead — one line per action it actually ran, with its result — drawn lighter than a plan. The agent's own bookkeeping calls (keeping the plan, handing in the result) no longer appear as tool rows or in the tool count.
- New: a process step or routine that hands in its result shows it under the answer as Kết quả with its files as chips; a click opens the file.
- Fixed: when the agent's answer had no text besides its plan markup, the turn said "Task completed." in English. It now says "Đã hoàn thành công việc." (or the English, Japanese or Korean equivalent) in your interface language, and a Telegram delivery uses its localized empty summary instead of English text.
- New: Claude is the reference model family. Claude Opus 5.5 (the default Claude model), Sonnet 5.5, Haiku 5.5 and Fable 5.1 are available in Cài đặt → Mô hình AI (existing databases get them once; the Claude 3.x entries stay but are marked Legacy). With Claude, agents use the provider's native tool calls and thinking: the turn records Claude's reasoning summary as the agent's thinking, long reasoning no longer trips the 90-second stall check, repeated parts of the conversation are served from Anthropic's prompt cache (cheaper and faster on long runs), and a tool call whose input arrives incomplete is answered with an error instead of being run. Chat uses medium reasoning effort and lets Anthropic retry a declined request on its recommended model; processes and routines use high effort and never switch models — a declined request is reported as "Anthropic declined the request (category)". Other providers send exactly what they sent before.
- Changed: agents keep their plan and their reasoning out of the answer. The plan of a multi-step task is recorded by the agent as a checklist (shown with the turn) instead of being written into the reply, so chat answers, Telegram messages, reports, the run list, the owner's conversation under a process and exported conversations show the answer only — including answers saved before this update. Agent instructions were rewritten for current Claude models: shorter, without capitalised commands, and without asking the model to write its reasoning in the text; the rules about Sources, deliverables, Office files, figures and language are unchanged. In Plan mode the agent records the plan and AMBA writes the dated plan file from it, as before.
- New: a process's "Nhờ agent" step and a routine end by handing in their result — the message people receive, the files written and the key figures. AMBA checks that every file it names exists before the step succeeds (otherwise "Agent báo đã tạo file nhưng không có: …"), and the step's summary, files and figures come from it. An agent that forgets is reminded once; if it still does not, its last answer is used as before.
- Fixed: the result of a "Nhờ agent" step no longer carries the model's
<plan>/<thought>markup into messages, reports and the step panel. - New: a process's "Nhờ agent" step can look things up online. Turn on Cho phép tra cứu internet on the step (or describe it in the sentence: "tra giá vàng", "xem tin tức"): the agent then searches the web like in chat, using the search provider set up in Cài đặt — only the search queries leave the computer, as in chat. Turning it on in a running process asks first ("Quy trình sẽ cho agent tra cứu internet — Đồng ý"), the step reads "… (được tra cứu internet)" and AMBA sẽ lists it. Other steps of the process stay offline. Without a search key, or with Internet off for the project, the step stops with "agent chưa tra cứu internet được" and says where to set it up, instead of the agent being refused mid-run.
- Fixed: when the agent wrote its own plan before acting, the first row of its work showed that plan as text ("🎯 Mục tiêu: …"). The plan now appears only in the plan card.
Processes (Milestone 104)
- New: a process schedule can end. In the Lịch step choose Kết thúc: Không kết thúc (as before), Chỉ hôm nay or Đến ngày… with a date. "Every 5 minutes until 22:00, only today" now runs its last repeat at 22:00 and does not start again tomorrow; a daily time until a date runs through that date. After its last run the process turns itself off (Tắt, history kept) and the run history and the next-run card say "Lịch đã kết thúc ngày 16/10"; before that the card says "Lần cuối: 22:00 hôm nay" when the next run is the last one. Turning it back on asks to extend the date or remove it. Runs missed while the app was closed are not made up after the end date. Sentences like "chỉ hôm nay", "hôm nay thôi", "đến hết ngày 20/10" or "until Friday" set the end date too.
- New: a process's "Nhờ agent" step is now a real turn in the agent's session for that process, followed live. Each run (on schedule, Chạy cả quy trình, ▶ on the step, a retry) shows the exact request the agent received under "⏰ <quy trình> · <bước> · <cách chạy> · HH:MM", then the agent's plan, the files it reads and writes and its answer as they happen — the same view as a chat turn — and the session keeps every run. "Xem agent làm việc" on a running step, in the ▶ panel, on a running row of Lịch sử chạy and in the run inspector opens the session at that run; the agent's chip pulses while it works and its chat says "Đang làm: <quy trình> · Xem". A failed run says why in the session ("Agent nói đã tạo bao-cao.xlsx nhưng không có file" with a hint to check the model, or the model error) with Chi tiết, and the step panel and history show the cause ("Agent báo đã tạo file nhưng không có: …") instead of "trợ lý chưa làm xong việc".
- New: when a process's agent step fails because of the AI model (key refused, quota used up, request rejected, model gone, connection lost), the people waiting for the result are told right away on the process's Telegram ("⚠️ Báo cáo cuối ngày hôm nay chưa xong: Google từ chối yêu cầu. AMBA sẽ thử lại lúc 22:30."), and AMBA tries the step again twice, 30 minutes apart, in the same run; when the tries run out they get a closing message. No other model is used: process steps and routines no longer switch to an agent's backup model after a failure (chat still does). A model that is missing or has no key is reported at once and not retried. Lịch sử chạy shows "Lỗi model: … · thử lại lúc 22:30" with Chi tiết, who was told and a link to Cài đặt → Mô hình AI; the next-run card shows "Đang chờ thử lại lúc 22:30 · Huỷ", and a desktop notification appears. Repeats faster than 30 minutes do not wait: the next repeat is the retry.
- Fixed: a process step done by a project agent ran on the project's first model (for example Gemini) instead of the model picked in that agent's chat. The model you pick in an agent's chat is now saved to that agent and used everywhere it works — its chat, its process steps, step tests and routines; the process builder shows it on the "Nhờ agent" step ("Kế toán đối soát · gpt-6-astra (Azure OpenAI)") and the run history shows the model each agent step used. A picked model that can no longer run (deleted, or its API key removed) stops the step with "mô hình … chưa chạy được" instead of switching to another provider. Agents whose model was never picked keep using the project's model until you pick one in their chat once.
- Fixed: agent steps and chats on Google Gemini / Vertex failed with "Invalid JSON payload … Proto field is not repeating" because some tool schemas use JSON Schema type lists; they are now sent as one type (
nullablefor null), and Vertex sanitizes tool schemas like Gemini.
v0.5.13 turns routines into Processes you describe in one sentence (Milestone 100) and gives every project Sources — the files your team sends, kept exactly as sent, classified and shown by day — plus step-by-step testing of a process before it runs for real (Milestone 101). Both changes migrate existing data once, on the first start after the update (see "Upgrading from 0.5.12" below). The Milestone 98 features (end-of-day report, owner assistant on Telegram, reliable Telegram/Drive arrivals, business days of files) and the Milestone 97 project context ship in this release too, now running as processes.
Upgrading from 0.5.12 (runs once, automatically)
- Database schema V024–V041 (arrivals, inbox manifest, memory scope v2, processes and their runs, project sources, process sends, source kinds and usage, file model v2, file states, process test runs, source ingestion history, removed sources, failed-download retries, source layout).
- Routines → processes (Milestone 100): every routine, intake routine and "Data Sources & Sync" binding becomes a process or a file source in one transaction; the bot's Telegram position is kept, so no message is read twice.
- Project files → Sources (Milestone 101), right after step 2 and again when a project is opened: files in
input/move tosources/(arrivals to their source's day, the rest tosources/uploads/keeping sub-folders); every stored path (inbox, arrivals, process specs, messages, facts, revisions, templates) is rewritten in the same transaction;workings/andoutput/stay as ordinary workspace folders. A project whose target holds a different file is left untouched and reported; the move can be re-run and resumes after an interruption. A one-time notice in each project says how many files moved.
Routines are now Processes (Milestone 100)
- Describe a process in one sentence (Project → Quy trình). Each project has a "Quy trình" tab next to its agents. Write how the work runs, the way you would tell a colleague ("2h chiều thu báo cáo từ team kế toán, 3h chưa có thì nhắc, 4h tổng hợp gửi tôi"); AMBA shows it back as your own lines and asks at most three short questions with tap answers (which group "team kế toán" is, how many reports make "đủ"). A missing connection is set up in the same place — pick a group the bot has seen, turn a group into a file source, or connect a new Telegram group. The "AMBA sẽ …" line lists what it will read, who it will message and which files it creates; Bật turns it on, Xem thử runs it once without sending anything. No form, no template gallery; three example sentences show how to start.
- The card is the process. Each card shows the same lines with today's status ("✓ 14:02 đã nhận 4/4", "⏳ chờ 16:00"), the next run and the last result in words, and Chạy ngay · Tạm dừng / Tiếp tục. Change it with a sentence ("dời tổng hợp sang 5h") or tap a line to change its time, days or recipient — "+1 giờ" then Áp dụng moves 18:00 to 19:00 in three clicks; the change is shown as a line diff first. ⋯ holds Lịch sử (each day's run and what each step did), Nâng cao (the process spec, an editor checked like any edit, version history) and Xoá. The owner's Telegram conversation ("Trao đổi với Chị Lan") sits under its card instead of an agent tab.
- Edits apply without a test run when they are safe. Changing the time or days, pausing, removing a recipient or rewording a reminder applies at once. Adding someone the project already sends to on the same bot applies at once; adding a new person first sends them "AMBA sẽ gửi báo cáo cho bạn tại đây: <quy trình>" and applies only when that message arrives. Changing what the report contains, the file sources or what AMBA may do shows the changed lines, offers a preview run (nothing is sent, files go to
workings/.dry-run/) and applies when you press Bật; until then the previous version keeps running. - "Cần xử lý" tells you what to fix, in your language. A process card shows Chưa xong / Đang xem trước / Đang bật / Tạm dừng (by you or from the menu bar) / Cần xử lý, the next run, and the last result ("Đã gửi cho Chị Lan", "Không gửi vì …", "Lỗi: …"). Cần xử lý names one cause with a button that opens the right screen: Google needs sign-in again, the bot is not connected or cannot read the group, a file source failed or its folder is gone, a recipient is not chosen or has no chat yet, the last three runs failed, files are waiting for you to choose their date, or a converted routine needs a look. Every error AMBA reports has wording in English, Vietnamese, Japanese and Korean — no codes or English left in the Vietnamese interface.
- Removed: the routine panel, routine editor, template chips and run monitor, and "Data Sources & Sync". Automations live only in the Quy trình tab; the sidebar shows "Quy trình đang bật: N" and opens it, and the tray menu speaks of processes. Ingestion rules, the daily sync schedule and "Send deliverable" to a channel are gone — file sources and recipients are part of a process. "Hộp file đến" now opens from the file tree: the project's file sources with their health (Đang nhận, Chưa nhận file nào, Cần đăng nhập lại, Bot không đọc được nhóm) and Kiểm tra, then files by business day. Uploading files from the computer stays in the input folder menu. An automation the agent proposes in chat opens in the Quy trình tab with your words, and after the update a one-time note in the tab says what was converted and what could not be.
- Routines are now Processes; existing ones were converted. On the first start after the update, every routine becomes a process with the same schedule, agent, playbook template, recipients and sections: the end-of-day report keeps running at its time, conditional sends ("only when the loss is over the threshold") stay conditional, and an active routine stays on without asking again. The owner assistant on Telegram becomes "Chị Lan có thể hỏi lại / duyệt qua Telegram" of the report it belongs to; it may still only record the decisions its playbook allows (for example approving a bonus). Intake routines (files from a Telegram group or a Drive folder) and the rules of "Data Sources & Sync" become the project's file sources, keeping their position so no file is downloaded twice; files now land in the Inbox (
input/). Chats you sent to become named people and groups of the project. Old routines are kept, read-only, for one release and no longer run; what could not be converted (Zalo, a deterministic routine that sent files) is listed with the reason. Folders on your computer from "Data Sources & Sync" (also outside the project) become file sources too: new files there are copied into the Inbox; files already in the folder are not imported again. - What this means for the features above. The end-of-day report, the owner assistant on Telegram, file arrivals, business days of files (now shown in Nguồn) and running in the tray (Milestone 98) ship in this release as processes: set them up with one sentence in the Quy trình tab instead of "New routine → Start from template", and read "routine" in those notes as "process". The user manual has a new "Processes" page in all four languages, and the end-of-day report guide follows the new flow.
- Add a Google Drive folder or a folder on this computer as a file source. Nguồn ⋯ → Thêm nguồn offers a Telegram group, a Google Drive folder or a folder on this computer. For Drive, sign in to Google right there if needed, open folders by name (My Drive, shared drives, "Shared with me"), choose Lấy cả file đã có to also take the files already there and how many subfolder levels to watch (0–3); nothing to type. A folder on this computer is chosen with the system picker; one outside the project is watched too, its new files copied into Sources (a note says so). The new source shows at once with its status and Kiểm tra. A process sentence that names a Drive folder or a folder ("lấy báo cáo trong thư mục Drive Kế toán") offers the same two choices in its question, so the process is ready without leaving the conversation.
- Import files once from Google Drive — into a Drive source. Open a Google Drive source and click Nhập file một lần… at the top of its tab: pick files by name anywhere in that Google account (Google Docs/Sheets arrive as Office files); they are copied into that source, dated and classified like the files it receives, and its history shows "Nhập một lần: N file" (Milestone 102).
Your files stay as you sent them: Sources (Milestone 101)
- One folder for everything that comes in. Every project now has a
sources/folder ("Nguồn"): files from a Telegram group, a Google Drive folder or a folder on this computer land insources/<source>/<day>/(the business day the file is about, orundated/), and files you add by hand insources/uploads/. Nothing is ever overwritten: a different file with the same name becomes "name (2)", the same file again is kept once. Everything else in the project is your workspace — organise it as you like; new projects no longer getinput/,workings/andoutput/folders. - Agents never change your sources. No agent, process or Office tool can edit, overwrite, rename, move or delete a file in Sources (or AMBA's own
.amba/data), in any mode and whatever is approved; results always go to a new file in the workspace. The app's editor does not edit source files either (you can still delete one). - You can fix a source file — AMBA keeps the old version. If you edit a file in Sources yourself (in Excel or Finder), AMBA notices, keeps the previous version, updates the day's files and marks figures taken from the old version as "needs re-check".
- Existing projects move once, automatically. On the first start (or when a project is opened), files in
input/move into Sources — files that arrived from a group or folder under their source and day, everything else undersources/uploads/with its sub-folders — and everything AMBA remembered about them follows: the Inbox, dates you confirmed, questions asked, facts, edit history, process folders, file mentions in chats and your company templates.workings/andoutput/stay where they are. If a file with the same name but different content is already in Sources, the project is left unchanged and reported instead. - Polish. The studio footer counts files in Sources and in the workspace (it used to say "N in · 0 out"), and the chat's welcome line no longer mentions the old
workings/folder.
Organise your workspace your way; "final" is a mark, not a folder (Milestone 101)
- No more fixed
input/·workings/·output/folders. Agents, playbooks and processes now read your Sources (the files of a day, by source) and write everywhere else as you like. Reports go where you ask; without a folder named they go toreports/(scheduled reports toreports/<YYYY-MM>/). Drafts and working files stay inworkings/. Older projects keep theiroutput/folder as an ordinary folder. - Agents never ask to write into Sources any more. Every agent instruction, playbook, template and tool description now says Sources are read-only and points results at the workspace.
- A file is final when it is delivered or when you say so. Files a process sends to people become final automatically; you can mark or unmark any workspace file as final. "Finalize and export" on drafts publishes them to
reports/and marks them final. Final files lead the list of deliverables agents see. - Deliverables are checked wherever they are written. The check that a run really produced the files it claims (and that they are valid Office/PDF files) now covers every file the run wrote and declared in the workspace, not only
output/. - Process review says "create files in the workspace". Processes may create files anywhere outside Sources and
.amba/; existing processes keep the folders they were approved for and read the migrated Sources without asking again. - Open an earlier version of a source file. A kept version of a Sources file you edited can be opened as a read-only copy.
Sources know what each file is and whether it was used (Milestone 101)
- AMBA learns your kinds of files. Each file that arrives is recognised by its layout (sheet columns and their types, document headings), not by its name: "bao cao.xlsx", "Book1 (3).xlsx" and a sales CSV are all "Doanh thu" once you have named that layout. A new layout is asked about once — in the app and, for Telegram files, to the owner's chat ("File này là loại gì?") with suggested names — never once per file. Photos are "Ảnh" by default. Kinds can be renamed and merged.
- See which report used a file. Every source file now records the process run or agent conversation that read it and the report it produced ("used in <report> at <time>"), from what the run actually read.
- Nguồn replaces the Inbox screen. The file tree has two parts — Nguồn (never changed by agents) and Làm việc (organise freely; delivered or approved files carry Bản cuối, and you can mark or unmark a file as final) — and shows once how many files moved into Sources after the upgrade.
- Each source is an item of the file tree (Milestone 102). Under Nguồn, every source is its own item — "Telegram · Nhóm Kế toán", "Drive · Báo cáo chi nhánh", "Thư mục · Hoá đơn" — with a health dot (green receiving, amber needs a look, red stopped: sign in again, the bot cannot read the group, the folder is gone), its days below it and the files of each day. Files you add yourself are under Bạn tải lên. The separate "Nguồn" tab and its "Xem theo ngày" button are gone.
- Each day says whether the agent did its job, per source. A small badge on each day — computed from that source's files only — shows ✓ (used in a report: which one, when, which run), "N chưa rõ loại" (name the new kind right there), "N cần chọn ngày" (choose the day) or ⚠ (files but no report yet — the process did not run, stopped with a problem, waits for files, needs a sign-in — or a file changed after its report) with the fix one click away. A file of a new kind carries a dot, and a Sources file's own menu shows Lịch sử file: the reports that used it and the older versions AMBA kept.
- Open a source like a file: its ingestion history. Clicking a source opens it as a tab next to your file tabs. Lịch sử nạp file lists every check, newest first, by day: "✓ 3 file mới" with who sent each file, "– không có file mới" (a run of quiet checks is one line: "(17 lần)"), "⚠ bỏ qua 1 file" with the reason (same content as a file already there, over Telegram's 20 MB, an installer, an Office temp file
~$…, a Google file that cannot be downloaded) and "✗ Google cần đăng nhập lại" with Đăng nhập lại (a repeated error is one line: "Lặp lại 12 lần từ 06:00"). Files of a new kind have Phân loại in place. History is kept 90 days. Bạn tải lên opens as a tab too, listing what you added by time. - Setup beside the history, when you want it. The Thiết lập button in the tab shows or hides the source's setup (AMBA remembers your choice; a new source opens with it): Telegram — bot, group by name, who is asked for an unclear date, ask the kind of a new file on Telegram; Drive — the Google account (sign in again right there), the folder by name, take the files already there, subfolders; folder on this computer — its path, take the files already there. Kiểm tra, Tạm dừng / Tiếp tục and Xoá nguồn (the files already received stay; a source a process still reads cannot be removed until that process is paused or changed).
- Add a source from the tree. Nguồn ⋯ has Tải file lên and Thêm nguồn ▸ Telegram · Drive · Thư mục. Thêm nguồn opens a new tab ready to set up; once saved, the source appears in the tree. A Telegram group added as a source is also saved, once, in the project's people & groups, so processes can name it. Loại file (rename or merge kinds) moved to project settings. The cutoff-hour setting for undated files is gone (files arriving before 10:00 count for the previous day; unclear files still ask for their date).
- A source owns its files: remove it with them (Milestone 102). Xoá nguồn now asks "Xoá luôn N file đã nạp từ nguồn này (size)", ticked by default: the files, the earlier versions AMBA kept and their history go, and the dialog says which facts and reports will need a re-check. Untick it to keep the files under "Nguồn đã xoá · <name>", which you can delete later. A source a process still reads is never removed; a file another app keeps open is named and retried on the next start. Files imported once from Drive before this release move into the Drive source of the same Google account when there is exactly one; otherwise they show as "Nhập từ Drive (cũ)" with Chuyển vào nguồn… and Xoá — no part of the Nguồn tree is stuck any more.
Sources are read when you ask: "Lấy file" (Milestone 102)
- No more background reading of sources. AMBA no longer checks Telegram groups, Drive folders or folders on this computer on its own. Press Lấy file at the top of a source's tab (or ⋯ → Lấy file / right-click on the source in the tree) to read it once: a spinner while it runs, then "Đã lấy N file mới" or "Không có file mới", and the history gains a "Lấy file thủ công" entry. ⋯ → Lấy file từ tất cả nguồn on Nguồn reads every active source of the project in turn. Telegram groups on the same bot are read together (one shared position, so no message is skipped); processes that read a source still start when fetched files arrive. A second press while a fetch runs just shows "Đang lấy file…". Scheduled fetching will come later through processes.
- Telegram's 24-hour limit is shown. Telegram keeps a bot's messages only about 24 hours: a Telegram source not fetched for 20 hours shows "Lần lấy gần nhất: N giờ trước — Telegram chỉ giữ tin khoảng 24 giờ" and an amber dot; after 24 hours the dot turns red with "Có thể đã mất tin cũ hơn 24 giờ".
- Paused until fetching is automatic again: AMBA sends no questions on Telegram (a file's date or kind is asked in the app), process conversations with the owner on Telegram and process questions (
ask) do not wait for replies; the process shows them as "Tạm ngừng (cần lấy tin tự động)". Existing processes stay valid.
Build a process step by step, on one screen (Milestone 104)
- A process is a schedule that presses the app's own buttons, in order. Its tab is now one screen: the Lịch row (every day, Mon–Fri or chosen days at a time, or every N minutes / hours), then the steps — Lấy file, Kiểm tra (with Đúng → and Sai → branches), Nhắn tin, Nhờ agent, Gửi file, Đợi đến — each with a one-line summary, its agent and ▶ to run that step alone (test mode, with its result panel; "Gửi thử cho tôi" on steps that send).
- Build by hand, no ids to type. "+" next to Quy trình offers Tạo bằng tay (an empty process with only its Lịch row) or ✨ Tạo bằng một câu. + Thêm bước between steps and at the end of each branch adds a step with sensible defaults and opens its settings on the right: sources to tick, a group or person to message, an agent to ask (with today's files or what an earlier Lấy file brought), recipients and what to send, conditions in words ("Chưa có file của Anh Minh hôm nay", "Lấy được ≥ 3 file từ Nhóm Kế toán", a figure from the agent; và / hoặc). Move a step up or down, or delete it, from the same pane.
- Every change is saved when its field closes and takes effect on the next run — no apply button, no test run needed. On a process that is on, a change that lets it do more (a new source, recipient or agent) asks once, in the pane: "Quy trình sẽ gửi tin cho … — Đồng ý".
- One switch: Bật / Tắt, plus ▶ Chạy cả quy trình (it asks first, because it sends for real). Tạm dừng, the Thiết lập pane and the Các bước/Thiết lập split are gone; the tree's ⋯ is Mở · Chạy cả quy trình · Bật/Tắt · Đổi tên · Xoá. A process created from a sentence now opens in the editor off — review its steps, then Bật.
- Steps from older processes (thu báo cáo, chờ đủ, sắp xếp, hỏi, dừng) keep running and show as Bước nâng cao; edit them with a sentence, or replace them with the new steps.
- New step "Lấy file". A process step fetches the files of the sources you pick (or all of them) exactly like pressing Lấy file, at that moment, and tells the next steps how many files came, from which source and from whom. ▶ on that step fetches for real and says so; a preview fetches nothing.
- Check who has not sent yet. A Kiểm tra (IF) step can ask "chưa có file của Minh hôm nay?" (files fetched earlier that day count too, also by pressing Lấy file yourself) or "có ít nhất 3 file từ Nhóm Kho trong lần lấy này?" about an earlier Lấy file step, with a branch for yes and for no — for example remind the group, wait until 17:50, fetch again.
- Huỷ lần chạy. A run that is waiting (for example until 17:50 because a file is missing) or still running can be cancelled from the process header ("Đang chờ đến 17:50 · Huỷ") or from its row in Lịch sử chạy, after a one-line confirmation. Its remaining steps do not run and the day is free, so ▶ Chạy cả quy trình works again right away (before, a waiting run blocked every other run that day).
- The right person, whatever their Telegram name. "Chưa có file của Anh Minh" now recognises Anh Minh by his Telegram account, so a sender called "Kế toán Minh" on Telegram counts as him and no wrong reminder goes out. The person list of a Kiểm tra step also offers people who have already sent the bot something; picking one adds them to the project's people with their Telegram account. Without a Telegram account (and in processes written from a sentence, which name the person) AMBA matches names, ignoring titles such as anh, chị, em, cô, chú, bác, ông, bà, Mr, Mrs, Ms and a role in brackets ("Anh Minh (Kế toán trưởng)").
- Sentences in the new steps. "Mỗi 5 phút lấy file…", "nếu chưa có file của X thì nhắc…", "lấy file lúc 17h rồi tổng hợp gửi chủ" and "chưa đủ" (fewer than the usual number of files) become the new steps; "chủ", "sếp" and "the owner" mean you.
- Every N minutes or hours. A process can run every 5 minutes up to every 24 hours (aligned to the clock, optionally only on some days). Every scheduled time now runs once: moving today's time to later today runs it again at the new time. While a run is still going, the next times are skipped quietly (one note in the history).
- "Every 5 minutes, until 9" ends on the schedule. Lặp lại in Lịch now has Từ … Đến … and the days: "mỗi 5 phút, từ 07:00 đến 09:00, thứ 2–6" runs 25 times a day (09:00 included) and stops by itself; "… tới 9h thì dừng" in a sentence becomes that window. A repeat now waits only for the previous run: if it is still open the repeat is skipped, but a run left waiting no longer blocks the rest of the day. Đợi đến is greyed in a repeating process, and a Đợi đến or stop step already in one shows a warning on its step (it keeps each run open, and stop ends only that run, not the process).
- Scheduled processes start on time while AMBA is in the background. While a process is on with a schedule, or a run is open, AMBA asks the OS not to slow it down in the background (macOS App Nap, Windows 11 power throttling; the computer may still sleep), and the scheduler now wakes right after each minute instead of on a drifting one-minute timer, so a 12:30 process starts in the 12:30 minute rather than a few minutes late. Windows battery saver, or "Efficiency mode" set for AMBA in Task Manager, still takes precedence. While a time has come and its run is starting, Lần chạy tiếp theo shows "12:30 · đang bắt đầu…" instead of tomorrow's time, and the card and Lịch sử chạy re-read as soon as you come back to the window.
- Lịch sử chạy, compact. On top, Lần chạy tiếp theo says what happens next: "08:30 hôm nay · còn 3 phút" with what it will do, the run in progress ("Đang chờ đến 09:00", Huỷ), or why nothing is coming ("Quy trình đang Tắt", "Hết khung giờ hôm nay — lần tới 07:00 mai"); the same line sits under the header of Các bước. Below, one row per run grouped by day: time, how it started, a status dot and the result in words; skips in a row fold into "Bỏ qua 7 lần (lần trước còn đang chạy)"; a row opens its steps in place; Chỉ lỗi keeps the failures. New runs appear without reloading.
- Lịch sử chạy keeps up by itself, also when you come back to its tab. Switching to another studio tab (an agent, a file, a source) and back now shows the runs that came meanwhile; before, only switching Các bước ↔ Lịch sử chạy did. A run in progress shows a spinner and where it is ("Bước 2/3: Nhắn tin…") on its row and in Lần chạy tiếp theo; its opened row ticks through the steps as they finish; a new run comes in on top with a short highlight. The process tab, its row in the explorer, the tab title and the agents' busy dots change at the same moment. After ▶ Chạy cả quy trình, Lịch sử chạy opens at the new run; in Các bước the run's line has Xem, and the last result opens its run.
- Edit one step at a time. Adding, changing, moving or removing a step (also inside a Kiểm tra branch) is saved at once; a step that lets the process read a new source or message someone new asks for your consent first (a new person gets the test message), and a process that is off just saves it until you turn it on. "+ Thêm quy trình" can start an empty process (every day at 17:00) to build by hand.
Processes fetch their own sources; agents do the steps (Milestone 103)
- Scheduled fetching is back, through processes. When a process runs at its time (or you press Chạy ngay), its first step reads the Telegram groups, Drive folders and folders it collects from — exactly like Lấy file — before counting the day's files, so "14:00 thu báo cáo" sees what the team sent since the last fetch. A process that waits ("15:00 chưa đủ thì nhắc") reads them once more when the wait ends, so nobody is reminded about a file that already arrived. The source's history shows these entries as "Quy trình <tên> lấy file". A preview run, ▶ Thử and a process started by arriving files read nothing on their own; ▶ Thử can read first when you ask it to.
- Each agent has its own conversation for each process. A process step done by an agent runs in that agent's conversation for the process ("Báo cáo cuối ngày · Financial Analyst"), so the agent keeps the context of earlier days; a process from before this update keeps its conversation.
- An agent never does more than the process allows — and never more than the agent itself may do. A process step can use only the agent's own tools, and only within what you agreed to when you turned the process on.
- A leaner studio: agents in the tab bar, processes in the explorer. The project's agents are chips at the start of the tab bar (initials and name, a pulsing dot while one works, + to add one); each chip's ⋯ (or right-click) has Cài đặt agent, Quy trình tham gia and Phiên trước, and beyond five agents the rest sit under Agent ▾. The agent list left the explorer, which now reads Nguồn → Quy trình → Làm việc (each section folds and is remembered). Every process is an item there with its status (on, paused, needs attention, not finished) and a mark while it runs; ⋯ or right-click has Mở · Chạy ngay · Tạm dừng/Tiếp tục · Đổi tên · Xoá.
- Each process opens as a tab, like a source. Các bước shows its lines with today's status and the agent doing each step — click the agent to open its conversation for this process — with ▶ Thử, Lấy file trước khi thử, and editing by one sentence at the bottom; Lịch sử chạy lists the runs and opens what each step did. The Thiết lập pane on the right (hide it with one click; AMBA remembers) has Khi nào chạy, Lấy file từ, Người làm, Gửi cho, "AMBA sẽ…", Bật/Tắt and Xoá quy trình. + next to Quy trình opens a new tab where you write the process in one sentence; the chat's "Tạo quy trình" card opens it with your words, and "Quy trình đang bật" in the sidebar opens the next process and shows it in the explorer. Above an agent's chat, Quy trình tham gia lists its processes. The single "Quy trình" tab and its cards are gone.
- Two agents made from the same base agent are two agents. Creating a second project agent from an agent another one already uses (or switching one to it in its settings) gives it its own copy, named after it: its own steps under Người làm, its own process sessions and its own busy dot. Its copy goes away with its last chat. Agents' process sessions — also those of a deleted process — never appear as extra agents in the tab bar.
- One report per business day. Files that come in after Chạy ngay (or the schedule) has made today's report — including files that run's own fetch brought — no longer start the process again for that day; press Chạy ngay to make it again. A run that failed or was cancelled leaves the day to the next arrival.
- On a narrow window the active agent stays in view in the tab bar.
Choose how a source's files are arranged: "Cách xếp file" (Milestone 102)
- By day, month, year, or the original folders. Each source's setup has Cách xếp file: Theo ngày (as before, the default), Theo tháng (
2026-10), Theo năm (2026), or — for a Drive folder or a folder on this computer — Giữ nguyên thư mục gốc, the same folders as in the source. Files without a known date still go to "Chưa rõ ngày". A file's business date, its kind and the day badges do not change with the arrangement; month and year folders in the tree carry the badge of their days, and with months, years or the original folders the source's tab shows Theo ngày số liệu with each day's badge. - Sắp xếp lại. Changing the arrangement and saving asks whether to Sắp xếp lại ngay the files already there or apply it to new files only; ⋯ → Sắp xếp lại… (on the source in the tree or in its tab) does it any time, after a preview: "Sẽ chuyển N file vào M thư mục". Two files with the same name keep both ("(2)"); facts, reports, file history, mentions in chats and the search index follow the files. An interrupted move finishes on the next start.
- Every subfolder is read. The "Thư mục con" depth option is gone: Drive folders and folders on this computer are read at every level (a folder that links back up is read once). One Lấy file takes at most 5,000 files and says so — press it again for the rest. Database schema V041 drops the old option.
Test a process step by step (Milestone 101)
- Test a process step by step (engine). Each line of a process can be tried on its own — with today's files, another day's, or the result of an earlier step from a real run or an earlier test — with simulated conditions ("15:00 still missing Minh", "a loss today"), from the start up to a line, or again from a failed run. A test sends nothing (it shows the exact message and who would get it), writes only into a test folder, remembers no facts and never counts as a run; "Send me a test" sends one copy, marked "[Thử]", only to your own chat. Tests expire after 7 days.
- ▶ Thử on every process line. On a process card (and on the review while creating one), each line has ▶ Thử: a panel opens under it with what the step took in (the day, its files with their kind, who is missing), what it produced (counts, figures, the report file — opens in the preview), what it would send (the exact Telegram message and attachments, to whom; nothing is sent) and any error with its fix. Pick the data (Hôm nay, a day that has files, or the previous step's result so a later line is tried without re-collecting), Giả lập a condition (someone missing, a loss — the bonus section follows —, the time), Chạy tới đây to try every line up to one, and Gửi thử cho tôi to get one [Thử] copy on your own Telegram. In Lịch sử, a run's line shows what it took in, produced, sent or failed on, with Thử lại bước này.
- Tests can never touch your Sources either. A step test follows the same rule as a real run: an agent's attempt to write into Sources or AMBA's own project data is refused with the same message as in a real run, so a test never passes where the real run would be refused.
Talk to the agent on Telegram (Milestone 98)
- Paused in this release (Milestone 102): replies to the bot on Telegram are not answered for now, because files and messages are read only when you press Lấy file. Ask the agent inside AMBA instead (the agent chip on a process's "Nhờ agent" step opens its session). The items below describe the feature as it will work again.
- The owner can reply to the report and get an answer in the same chat. A new routine template, "Owner assistant on Telegram" (Senior Financial Analyst & Controller), answers every text message the owner sends to the bot — "sao hôm nay chi phí cao?" — in that chat, in Vietnamese and in a few lines, from the project's files, the history workbook and the latest report, with figures read by tools; when a file or a day is missing it says so instead of guessing. Messages from other chats, from bots and replies to the "File … thuộc ngày nào?" question never start it; messages sent while it is answering are answered together, in order.
- Decisions are remembered with the owner's words. "duyệt phương án 2", "ok 1,5 triệu" or "không thưởng" is recorded as a decision with the exact message (shown in "What the agent knows" as "<name> on Telegram: “…”"), the amount is written into "Bonus approved" of that day's row in the history workbook, and the agent confirms in one line.
- The thread lives in AMBA. Each Telegram chat gets its own conversation in the project, "Telegram — <name>", so follow-up questions keep the context and you can read the exchange on the PC; messages from Telegram are marked "From Telegram · <name>".
- Set the owner chat once. The report and the assistant share the owner's chat: whichever you add second starts with the chat already filled. Once the assistant is active, the 18:00 report ends with one line telling the owner they can reply. Any Telegram trigger can also be switched to "Answer every message in this chat" in the routine editor.
Routines: end-of-day business report (Milestone 98)
- New routine template "End-of-day business report" for agents installed from the Senior Financial Analyst & Controller playbook (New routine → Start from template). Every day at 18:00 (Asia/Ho_Chi_Minh) or on Run now it reads the day's sales and cost files from
input/YYYY-MM/DD/, computes revenue, costs, gross and net profit (by branch and product when the files have them) with queries and workbook formulas, compares with the previous day and the 7-day average, writesoutput/YYYY-MM/YYYY-MM-DD_Bao_cao_kinh_doanh.xlsxand a short PDF report, and sends both to the owner's Telegram chat. You only answer which chat receives it; dry run it before activating. - A history of every business day. The routine keeps one row per day in
workings/lich_su_kinh_doanh.xlsx(revenue, costs, profit, staff hours and cost when available, bonus proposed, bonus approved). Running the same day again replaces that day's row and its own report files instead of failing or adding a duplicate; it still cannot overwrite any other file. - Bonus advice, not a decision. On a profitable day the report adds 2–3 bonus options with their cost, share of profit, effect on the staff cost share and a split by hours, shift or role, explained from the history and with caveats. The owner decides; "bonus approved" stays empty until then.
Routines: the owner's Telegram report reads well and is checked (Milestone 98)
- Clean messages on the phone. The routine summary arrives on Telegram formatted — bold headings, bullet lists, links — instead of raw
**and|characters. Small tables are aligned with numbers on the right; wide tables become one line per row. Long reports are split into several messages without breaking the formatting, and if Telegram ever refuses the formatting the message is sent again as plain text. - The right files, with a proper caption. The report attaches exactly the files the run created (the workbook and its PDF), not files picked by name, with a caption such as "📊 Báo cáo kinh doanh ngày 11/10/2026". Files over Telegram's 50 MB limit and anything beyond 6 files are listed in the run instead of failing silently.
- Wrong numbers are never sent. Before sending, the summary's figures are compared with the run's Excel file. If a figure contradicts it (for example a thousand times too large), the owner receives a short warning instead of the wrong text, and the run shows why under "Delivery notes".
- Bonus options only when there are some. The end-of-day report's bonus part reaches the owner only on days the agent actually proposed options, and the report must state revenue and net profit as key figures.
Each file finds its business day (Milestone 98)
- AMBA works out which day a file belongs to. Files arrive late, misnamed, with several days in one sheet or as revised copies. AMBA now reads the date column and title inside the file, the file name ("0710", "7.10", "ngay7"), the message sent with it ("hôm qua") and when it arrived (before 10:00 counts as the previous day), and files every file in
input/under its business day with how sure it is. Nothing is guessed by the AI. - The end-of-day report uses the right files. The report routine asks for "the files of day D" instead of a folder: it uses only that day's rows of a multi-day file, ignores duplicates and older versions of a re-sent report, and lists the files whose day is unclear under "Cần xác nhận" instead of counting them.
- Asked once, answered on Telegram. When a file's day cannot be told (a photo without a caption, say), AMBA asks once in the owner's chat "File … thuộc ngày nào?". Replying to that message with a date ("07/10", "hôm qua") files it and AMBA confirms; the reply does not start the routine. The question can go to the group instead or be turned off in the trigger.
- See and correct it in the app. In the routine panel, "Inbound files by business day" lists every file by day with its confidence, why AMBA chose that day, duplicates and older versions; "Set date" fixes a file's day or marks it as not tied to a day (a staff list), and you can change the 10:00 cut-off.
Telegram files arrive reliably (Milestone 98)
- Files with the same name no longer overwrite each other. When the accountant sends "doanh thu.xlsx" twice in one day, the second version is kept as "doanh thu (2).xlsx". Sending exactly the same file again is recognised and not saved twice (and does not start the routine again). File names are cleaned so they always work on Windows (characters such as
:or?, names likeCON, very long names and paths), and Vietnamese names keep their accents. - Files over 20 MB are reported instead of silently missing. Telegram bots cannot download files above 20 MB; AMBA no longer tries, and the routine's run in the chat lists such files — together with duplicates, renamed files and failed downloads — under "Received files to check".
- The chat picker keeps your groups. The trigger editor still lists the accounting group and the owner's chat after the routine has started receiving messages.
- A bot used by a routine is no longer emptied by the old sync. "Data Sources & Sync" no longer syncs a Telegram bot that a routine receives files from (it shows "Managed in Routines"), so the two never take messages from each other.
Google Drive is ready for daily files (Milestone 98)
- Sign in with Google works on Windows and in release builds. The browser opens correctly on Windows (the sign-in address was cut off before), AMBA uses PKCE and listens only on your own computer (
127.0.0.1) during sign-in, and you have 5 minutes to finish. When sign-in fails, AMBA says why in your language: the account is not on the app's test-user list, a company administrator blocks the app, the build has no valid Google setup, and so on. - No silent stop after a week. When Google stops accepting the saved sign-in (after 7 days while the app is in Google's testing phase, or when access is removed), the account shows "Needs sign-in", Connected Accounts shows a banner with "Sign in again", and the routine's next run says that Drive files are not being received. Signing in again with the same account resumes the same routines. A refreshed sign-in is reused while AMBA runs, so AMBA no longer asks Google for a new one on every check.
- Google Sheets, Docs and Slides arrive as Excel, Word and PowerPoint files (
.xlsx,.docx,.pptx) instead of files without an extension (Docs were PDF before in "Data Sources & Sync"). Shortcuts are followed to their file; broken shortcuts and Google Forms are listed under "Received files to check". - New trigger options: "Include files already in the folder" saves the files already there once when you set up the routine (off by default: only new files), and "Subfolders" also watches up to 3 levels of subfolders. Folders with many files are read completely.
- Drive files get their business day too: the subfolder name ("Tháng 10/07-10") and when the file was put in Drive count as evidence; confirm unclear files in the Inbox dialog.
Routines keep running when you close the window (Milestone 98)
- AMBA stays in the tray while routines are active. Closing the window no longer stops the 18:00 report or the Telegram/Drive arrivals: AMBA keeps running in the notification area (menu bar on macOS) and says so the first time. The tray menu opens AMBA, shows how many routines are active, pauses or resumes them all, and quits — asking first when a run is in progress. Turn it off in Settings → General → "Background & routines".
- The computer stays awake for scheduled runs. From 2 minutes before a scheduled routine until its run ends, Windows and macOS do not go to sleep on their own (the screen may still turn off). AMBA cannot wake a computer that is already asleep or switched off; a missed run still catches up within 24 hours. Not yet available on Linux.
- Start AMBA when you sign in. A new setting starts AMBA hidden in the tray when you sign in, so routines survive a restart. The end-of-day report guide recommends turning it on.
- See that routines are armed. The sidebar shows "Routines active: N" with the next scheduled run; click it to open that routine's panel. Opening AMBA a second time brings the running window to the front instead of starting another copy.
Project context v2 (Milestone 97)
Removed: the auto-generated Living Blueprint. The "Living Blueprint" chip in the project chat and the
workings/PROJECT_DECLARATION.mdfile AMBA rewrote after every run are gone: the file was guessed from keywords, kept repeating old assumptions and overwrote your edits. Agents no longer read it, so answers rely on your project files and instructions instead. Projects created before keep the file inworkings/; you can delete it.Memory no longer keeps copies of your conversations. Earlier versions saved every question and full answer (figures and names included) into memory after each run. Now nothing is saved automatically: memory holds only notes you save with "Save to knowledge" (or an agent saves with its knowledge tool) and searchable excerpts of documents a connector delivers. On the first start after the update, conversations saved by earlier versions are exported once to
~/.amba/exports/memory-<date>/(one file per project, API keys and card numbers removed) and then removed from memory; a notice offers "Open export folder".Memory stays inside its project. An agent sees only its own notes in this project, notes shared with the project, project documents, and knowledge you saved outside any project — never another project's memory, and never another agent's private notes. "Clear memory" in the session reset clears only this agent's memory in this project. Notes are cleaned of API keys and card numbers before they are saved, and long notes are split into parts of at most 4 KB.
See which notes an answer used. An answer that recalled saved notes shows "Memory used (n)": open it to see each note with its kind (note or document excerpt) and remove one that is wrong or outdated. A link next to it opens "What the agent knows", so the two sources stay clear: project context = facts from your files, memory = notes you saved. Nothing is shown when no note was used.
"Save to knowledge" asks who may use the note: all agents of this project (default) or only the agent that answered.
A clearer Memory screen. Filter by project (or knowledge for all projects) and by agent; search uses the same filters. Each note shows a readable title instead of an internal key, whether it is a note or a document excerpt, who can use it, where it came from and who created it; the key is only in the details. Edit or delete a note, or "Mark as global knowledge" so every agent in every project can use it (document excerpts stay in their project). "Clear" removes exactly what the filters show — this agent in this project, the whole project, or everything — after you confirm. The "New note" and "Clear" buttons, missing from the screen before, are back.
Agents know your project — and say when they are not sure. Every agent run now starts with a short, sourced picture of the project that AMBA builds from your files: which sheets and columns each workbook has, its date range and totals row, document headings, business dates of inbound files, your currency and number format. Figures an agent checked in a file are remembered with their source (file, sheet and cell; the cell is read to confirm the value), and rules you state in chat ("our fiscal year starts in April", "always VND, no decimals") are remembered with your words. When a file changes, the figures taken from it are marked "needs re-check" and the agent reads the file again instead of reusing an old number; anything not known is read from the files or asked, never guessed. See it in the project header → "What the agent knows", where you can also remove a wrong entry. It is stored in the project folder (
.amba/context.json), so it moves with the project. The "Project Mission & Context" field of an agent's settings is replaced by it; existing text was moved in automatically.
Fixed (Milestone 102)
- No file is skipped when it lands during "Lấy file". A file saved into a source folder on this computer while a fetch was running (even in the same millisecond) was never fetched afterwards; it is now fetched on the next press, and files already taken — including AMBA's own copies — are still never taken twice. A Google Drive file changed in the same millisecond the source was added is no longer mistaken for an old file on the first fetch.
- A file that failed to download is tried again. When a Telegram, Google Drive or computer-folder file could not be downloaded during "Lấy file" (network drop, timeout, Telegram or Google briefly failing, a file locked by another program), it was recorded as failed and never fetched again. AMBA now keeps it on a retry list: the history shows "Không tải được N file — sẽ thử lại khi Lấy file", every later "Lấy file" tries it first, and a later success shows "Tải lại được N file" and is filed under its original day (from the message or Drive time). After 5 failed retries the file is given up with its name and a "Thử lại" button. Files skipped on purpose (duplicates, too large, unsupported, Office temp files) are still never retried.
Fixed (Milestone 99)
- Telegram sources say why no file arrives, and recover without a restart. A bot connected before 0.5.12 could stop delivering files with only "Temporary error, will retry": its token is kept in an older keychain entry, and when macOS denied the first read AMBA treated the token as missing until the app restarted. The source tab and its setup pane now name the real cause with its fix — Allow keychain access (retries the read once; choose Always Allow), Enter the bot token again (missing or revoked token), Turn off webhook (after a confirmation), another program reading the bot, Telegram refusing the bot — and only a short network or Telegram outage reads "Temporary error". Check, opening the group picker or saving the bot again retries a denied keychain read once; background polls never ask again. The group picker fetches the bot's groups live and explains an empty list; the bot selector lists every bot by username and says which one the source uses (switching bots reads the group again from the start).
- Sources update while files arrive. Files that reached a Telegram group, a Drive folder or a folder on this computer in the background did not show until you switched windows or tabs: the open source tab's history, the Nguồn tree (new day folders and files, health dots, day badges), the file tree and the counters stayed as they were. They now update within a moment of each change — a new entry appears at the top of the history without losing the pages you loaded or your place in the list, a quiet check only updates its "(N lần)" line, and a source that starts receiving again turns green. Kinds learned in the background, dates confirmed by Telegram replies and processes that read a source refresh the same way; coming back to the window re-reads once as a fallback.
- macOS no longer keeps asking for keychain access. AMBA reads its single keychain entry once per launch and now writes it only when a key or sign-in really changes: Google Drive's hourly sign-in refresh stays in memory instead of being saved back (each save could raise up to three "AMBA wants to use your confidential information" prompts), saving an unchanged key does nothing, and keys already moved from older versions are not deleted again on every save. Choose Always Allow once; Settings help explains which entry ("amba") it is. For developers: a stable local signing identity (
AMBA_DEV_SIGN_IDENTITY, seedocs/ARCHITECTURE/platforms.md) keeps Always Allow acrosstauri devrebuilds. - Connected accounts: adding an account and signing in to Google again work cleanly. The add/edit dialog was blurred by a leftover backdrop layer; the provider tabs no longer wrap and spill over; "Save" stays disabled until there is something to save (a token, a folder or a Google sign-in) instead of creating an empty account; after signing in with Google, "Save" updates the account the sign-in created instead of adding a second "Google Drive" entry without a sign-in; the "signed in with old permissions" warning no longer appears right after a fresh sign-in; account status shows in your language ("Đang hoạt động", "Cần đăng nhập lại", "Lỗi kết nối") and the Telegram setup steps are no longer numbered twice.
- The macOS keychain prompt names AMBA's entry clearly. The access prompt now says "AMBA – saved API keys and connections" instead of "amba", and Keychain Access shows the comment "Used by AMBA to keep your AI provider keys and connected accounts on this Mac." Existing entries are renamed the next time a key or sign-in is saved; AMBA does not write to the keychain just to rename it.
Fixed (Milestone 98)
- Dates in Excel files are read on the right day. Date cells of
.xlsx/.xlsfiles were read one day early (07/10/2026 showed as 06/10/2026) when the agent loaded or read a workbook; they now match what Excel shows. - Vietnamese amounts in CSV files are summed correctly. Amounts like
1.234.000,25.000,1.234.000 ₫,1,234,000.50or(1.234)were loaded as text (or25.000as 25), so totals were wrong. Each column's decimal mark is now detected and the amounts become numbers; a cell that is not an amount (for example "chưa có") stays as text and is listed so the agent reports it instead of counting it as zero. - A missed evening routine reports the right day. When the app was closed at a schedule's time and the run caught up the next morning, it used the next day's date for its input folder, output folder and files. It now uses the date of the missed run and tells the agent which business date it works on.
- Appending the first row under a frozen header works. Adding rows to a sheet that had only its frozen header row was refused by the workbook check because the frozen pane moved; the pane now stays put.
Processes core (Milestone 100, internal)
- One canonical spec for automations, validated in Rust (TASK-481, ADR-071).
src-tauri/src/runtime/process/: serde types foramba.process/v1, a single validator that returns coded issues{code, path, params}(refs resolved in execution order, the 6 v1 actions with typedwith, limits of 30 steps / depth 3 / waits ≤ 48 h, wait timeline, people and sources only asperson:/group:/source:references), the effective policy (effects + sources + paths + recipients) with widening detection for renewed consent and a projection onto the existing unattended policy, and storage in new tablesprocesses/process_versions(migration V029; versions immutable, consent recorded once). Schema ↔ validator parity tests run every published example and 27 negative fixtures against both. Nothing runs processes yet (TASK-482/483). - Durable process runs (TASK-482, ADR-071 §4).
runtime/process/{engine,exec,resolve,clock,inputs,converse,action,run_model,run_store}.rs+ migration V030 (process_runs,process_stepsjournal). A run has a business date (process timezone), its trigger (schedulewith the routine catch-up rule,manual,inputsArrived,fileEvent), a state (queued/running/waiting/succeeded/failed/cancelled/skipped), the step it is on, a durable wait (waitUntil,waitForuntil inputs are complete or the deadline, retry backoff, waiting action) and alateflag. The interpreter replays the journal on every drive: decided branches are kept, succeeded steps — and their external effects — are never repeated, a non-idempotent action found running after a restart fails withprocess.interrupted, retries keep one idempotency key per(process, run, step). One run per process per business date, at mostmaxOpenRuns(default 2) open. Runs move on the shared 60 s scheduler tick (also feeding keep-awake); hookson_inputs_arrived(sources),on_file_event,wake_run, theActionHandlerrun/resume contract (TASK-483) and theconverseentry point. IPCprocess_run_now,process_runs_list,process_run_get. No action is attached yet, so a run reaching an action fails withprocess.action_unavailable(TASK-483). - File sources and the people & groups directory (TASK-484, ADR-071, contract §5).
src-tauri/src/runtime/sources/+ migration V031 (project_sources,project_people;routine_arrivalsgainssource_id,routine_idbecomes nullable). A project source (Telegram group, Drive folder, project folder) is an arrival watcher on the existing code path — the Telegram poll (onegetUpdatesand one offset per bot for routine triggers and sources together; a source also keeps the legacy "Data Sources & Sync" off the bot), the Drive listing (seen-set and baseline on the source row) and thefile_eventwatcher (project folders) — so there is still no second poller. Its files land ininput/and the Inbox with the source id and the sender id; processes reading the source are told per business date (RoutineHooks::inputs_arrived→ TASK-482). A group upgraded to a supergroup is followed automatically (directory + sources). The directory holdsperson:/group:entries with their Telegram bindings and roles (owner receives the "which day is this file" question), detected from chats the bots have seen and senders of arrived files.runtime/process/directory.rsresolves references: unknownperson:/group:/source:→process.ref_unknownat its path, resolved recipients → unattendeddeliverTo(unreachable ones stay out). "Đủ chưa" for a process input is computed from the Inbox (explicitexpect, or count/senders learned from the last 14 days; duplicates, superseded and low-confidence files never count) and plugs into the executor asInboxInputs. Source health is derived (receiving,no_files_yet,needs_sign_in,bot_cannot_read,group_migrated,poll_failed, …) andsources_testchecks the bot can read the group (getMe/getChat/getChatMember, privacy mode) and waits for a test message. IPCsources_*,directory_*. No UI yet (TASK-488); routine channel triggers keep working side by side until TASK-487 migrates them. - Process actions (TASK-483, ADR-071 §3).
src-tauri/src/runtime/process/actions/attaches the six v1 building blocks at app start, on the existing primitives:collect(the business day's counted files, count and missing names from the Inbox),organize(manifest re-sync; ask-once date questions to the input'sbusinessDate.askTo),remind(Telegram HTML to a directory person/group),agent-task(the agent engine through the run settle point, unattended under the consented policy; playbook template directive, the day's files and the flags later steps read in the input; outputs summary, files, key figures, flags),deliver(the routine delivery: HTML with flag-gated sections, numeric guard — a wrong figure is replaced by an alert and fails the step —, the run's workbook with caption, "reply" line when the person can converse) andask(question with choices, durable wait, reply recorded by the poller, decision fact).stop.notifysends throughremind; theconversehandler answers like the owner assistant (chat conversation, grounded directive, decisions as facts with the person's words). Every recipient must be in the directory and in the consented policy (fails closed); every message is sent at most once per step and recipient (newprocess_sendsledger, migration V032) and recorded in the data-flow ledger. Coded errorsprocess.action.*. Not routed yet: Telegram messages toconverse(TASK-487). - Processes read as the owner's own lines (TASK-485, ADR-071 §1, contract §3–§4).
runtime/process/render/: a deterministic, pure renderer (validated spec + directory names + locale → structured lines{key, kind, depth, when, text, parts[], steps[]}; phrases for every action, condition, trigger and status in en/vi/ja/ko compiled fromrender/locales/*.json). Waits fold into the time column ("14:00 mỗi ngày", "Khi đủ", "Luôn"),waitFor+if chưa đủ → nhắcbecomes one "Nếu chưa đủ → nhắn nhắc …" line, an agent task and the delivery of its result share a line, conditions and days are words ("thứ 2–6", "ngày 1, 15 hằng tháng"), a stepname(the owner's phrasing) wins over the generic phrase, and anything unresolved shows a placeholder ("(chưa chọn người nhận)"), never an id. Also the "AMBA sẽ: …" consent line from the effective policy (reads, messages, sends, created/overwritten files, remembered decisions), widening phrases ("thêm người nhận: Anh Hùng"), edit diffs ("Tổng hợp báo cáo → gửi Chị Lan: 16:00 → 17:00", added/removed lines, changed reminder wording) and the card overlay from a run journal ("✓ 14:02 đã nhận 4/4", "⚠ chưa đủ, đã nhắc lúc 15:00", "⏳ chờ 16:00", "✗ lỗi: …" with the code kept for the UI). IPCprocess_render,process_render_diff,process_render_card(invalid specs return their coded issues); TS wrappers inservices/api/processRender.ts. 23 golden cases × 4 locales, plus a test that vi/en output never contains code words or raw references. No UI yet (TASK-488). - A process from one sentence (TASK-486, ADR-071 §1, contract §3).
runtime/process/compile/: the owner writes "2h chiều hằng ngày thu gom báo cáo từ team kế toán, 3h chưa có thì nhắc, đủ thì tổ chức file gọn gàng, 4h chiều tổng hợp báo cáo"; the project's model (any provider, masked and recorded in the data-flow ledger) proposes anamba.process/v1spec from a prompt built in Rust (spec shape, the action catalog generated from the registry, the project's people/groups/sources by name, agents and templates, learned "đủ", Vietnamese and English examples). The validator's coded issues get one automatic repair round; whatever is still unknown becomes at most three tap-questions, never a guess ("Team kế toán là nhóm nào?" with the directory's groups and "Kết nối nhóm Telegram mới", "Gửi báo cáo cho ai?", "Thường có mấy báo cáo mỗi ngày?" only when it cannot be learned, "4h là sáng hay chiều?" only without any am/pm cue). Answers apply without another model call; the review lines come from the deterministic renderer and reuse the owner's verbs ("Tổ chức file gọn gàng"). Edits are sentences too ("dời tổng hợp sang 5h", "thêm gửi cho anh Hùng", "thứ 7 không cần") and return the line diff with what the change newly allows. Nothing is saved or activated by the compiler. IPCprocess_compile,process_compile_answer,process_compile_edit; TS wrappers inservices/api/processCompile.ts. Eval settests/process-eval/(31 Vietnamese + 5 English sentences from restaurants, shops, accounting, HR and an agency; 7 ambiguous ones must ask) checked incargo testwith an oracle model and against a real model withpnpm run eval:process. No UI yet (TASK-488). - Migration and cut-over (TASK-487, ADR-071 §6).
runtime/process/migrate/runs at app start after the schema migrations: one snapshot (routines with lifecycle, pipeline bindings, directory, sources, discovered chats, cursor settings) → a plan (routine → spec: triggers →on, agent mode →amba/agent-taskwith the routine's agent, template and write globs, deliveries →amba/deliverper destination withwhen.onOutputFlag→if: {output}, quorum reminder →if incomplete → amba/remind+waitUntil; intake routines and inbound bindings → sources with Drive seen-set/baseline and Telegram offset carried; outbound bindings and recipients → directory entries named from the chat cache; owner assistant →converseof the matching report with the playbook'scanDecide) → every spec validated and ref-checked → one transaction (processes + consented versions, sources, people, settings,process_migration_reportV033, cut-over flag). Idempotent; dry run via IPCprocess_migration_preview, stored reportprocess_migration_report. After the cut-over no routine executes (scheduler, catch-up, quorum reminders, arrivals, file triggers, manual/dry runs; routine edits answerroutine.retired) and migrated legacy bindings are not synced (pipeline.migrated_to_source). Telegram messages from aconverseparty reachProcessEngine::converseon the one poll per bot; ask replies are recorded whenever the bot is polled; processon.fileEventfolders are watched (process:<id>). New run originprocess {processId, runId, stepKey, canDecide};project_fact_recordrefuses a decision outsideconverse.canDecide(process.converse.decision_not_allowed);routine_set_flagkeeps its name for process flags. Catalog playbooks gainprocessTemplates(validated bybuild-agent-catalog.mjsand the Rust validator);routineTemplatesstay readable for one release.amba/deliver@v1gains optionalincludeWorkings; an agent task's instruction may be up to 20 000 characters. - Status view, code catalog and risk tiers (TASK-489, ADR-071, contract §4/§6/§7).
runtime/process/status/derives per process{state, view, pausedBy, nextRun, lastResult, attention {code, params, fix {action, target}}, pendingVersion, previewRunId}(never stored; attention priority: connection → source health → unresolved people/sources → 3 failed runs / error → Inbox dates → migration notes).runtime/process/lifecycle/saves edits through the D1 tiers (applied | needs_test_message | needs_consent | needs_preview), stores consent-needing edits as a pending version, sends the test message to a new recipient through the remind path (data-flow ledger) and runs previews through the real engine in dry-run mode (trigger.occurrence = preview; waits pass, nothing sent —wouldSendrecorded —, agent writes sandboxed underworkings/.dry-run/; previews never block or count as runs). IPCprocess_status,process_create,process_get,process_save_version,process_consent,process_set_paused,process_delete,process_preview_run,process_versions_list; TSservices/api/processStatus.ts. One catalogsrc/locales/codes/{en,vi,ja,ko}.json(221 codes) read by Rust (runtime/codes, used by the card's failed-step line and the test message) and the UI (utils/formatCode.ts); a Rust test scans the sources and fails on any emitted code without a phrase in all four locales. Inbound local-folder bindings left unmigrated by TASK-487 are migrated again aslocal_foldersources (absolute folders watched from their parent, files copied into the Inbox). - Acceptance against the automation contract §11 (TASK-490).
tests/usability/process-founder-sentence.spec.tsreplays the Founder's sentence in the real Project Studio over the mock-app IPC and counts what the owner does (1 field + 2 tap-answers, 5 taps to an active process; from zero accounts the inline Telegram setup adds only the token paste; a time change in 3 clicks without a preview run; Drive sign-in expiry → "Cần xử lý: Google cần đăng nhập lại" within one 30 s poll and the fix signs in again; a vi DOM scan of every process screen for English, code words, raw codes and references), so regressions fail the gate. Mock:expireDriveSignIn(). Visual baselines re-recorded for the screens M100 changed outside the process scenarios (tab strip, wording). Site manual: new Processes page ×4, connector and playbook pages moved off routines and "Data Sources & Sync". - Coded errors keep their params over IPC (TASK-493, ADR-071).
AppError::Coded {code, params}crosses Tauri IPC as{code, params, message}(every other error is still the plain message string), soformatErrorfills placeholders: "Chạy ngay" over the open-run limit reads "Đang có quá nhiều lượt chạy dở (tối đa 2)", and a card's Bật whose test message fails names the recipient. Process, source, directory, migration cut-over, compiler and lifecycle errors use it (process.not_foundandsource.not_foundreplace "not found: process …" strings);process.max_open_runsandprocess.compile.sentence_too_longgained{max}. Keychain and Google sign-in codes staycode: detailstrings (they reach many generic message sites);credentialErrors.tsreads both shapes.
Demo kit (Milestone 98, internal: docs/demo)
- docs/demo: synthetic demo dataset
demo/daily-owner-report/(fictional coffee shop, 2 branches, 14 days of chaotic Telegram/Drive files, staff list, history workbook, answer key, deterministic generator with--endfor the demo day), end-to-end regression testtests_demo_e2e(mock Telegram, Drive and model: arrival → business dates 43/43 → 18:00 report with bonus advisory, loss-day catch-up without it, owner question and decision), Founder runbook and Windows rehearsal checklist indocs/DEMO/; the outdated accounting Telegram SOP (SOP-OPS-062) is retired. Visual harness: Inbox dialog, "What the agent knows", the owner's Telegram tab and the background settings card added; baselines re-recorded. - The end-of-day report and the owner assistant can load the day's files every day. From the second run on, loading a sales or cost file was refused because the loader's working database (
workings/.analytics.db) already existed; both templates now allow AMBA to update that database (only it, besides their own files).
Build hygiene (Milestone 99, internal: developer builds only)
- Smaller
src-tauri/target, fewertauri devrebuilds. The library is built asrlibonly (no 870 MB staticlib / cdylib), the integration tests are one binary (src-tauri/tests/it/, test names<module>::<test>), dependencies are built without debug info in the dev/test profiles,src-tauri/.taurignorestopstauri devfrom rebuilding when tests, docs or run-time files change, andpnpm run clean:buildfrees incremental caches and our own crate's artifacts while keeping compiled dependencies (scripts/README.md). No change to the app or the release bundles.
0.5.12 — 2026-10-11
Security (Milestone 96)
- Research and Plan modes can no longer change your files. In these read-only modes the agent could still edit workbooks, decks and Word documents in place or run an Office script, because the guard only knew the older file-writing tools. Every tool now declares whether it reads or writes, and the read-only modes refuse anything that writes, runs commands or calls a connected MCP tool — before asking you for permission. Previewing a deck or Word edit without saving it still works; Plan mode can still save its plan.
Privacy (Milestone 96)
- Scanned files and images are read on your computer, and pictures never go to the AI provider. We checked every path: text in scanned PDFs and images is recognised on the device (Apple Vision on macOS), and only that text can reach the model, where identifier masking applies to it. An unused code path that could have sent page images to a cloud model has been removed, and a test now fails if one is added without a per-project consent gate. The privacy policy (English, Vietnamese, Japanese, Korean) now says that files reach the AI provider as text only, and that on Windows and Linux a scanned page without a text layer is reported as unreadable.
Fixed (Milestone 96)
- macOS no longer asks for keychain access over and over. AMBA read the keychain every time it needed a key, and each key was a separate keychain entry, so one chat could show "AMBA wants to use your confidential information" several times. AMBA now keeps all its keys in a single keychain entry, reads it at most once while it runs, and no longer reads any key at launch; keys saved by earlier versions move into that entry the first time they are used (the old entries are removed only after the move is confirmed). Choose Always Allow to stop the prompt for good. Windows and Linux keep working as before.
Office: decks that fit their slides (Milestone 96)
- New decks no longer run off the slide. When AMBA writes a deck in a dense company template, text that does not fit a slide is shrunk the way PowerPoint's own "shrink text on overflow" does (never below 70 % or 10 pt). It is shrunk only if the template allows it. Otherwise it continues on the next slide with the same layout, titled "(1/2)", "(2/2)". Before, bullets could spill past the bottom edge on most slides of such a template.
- AMBA checks the layout of every deck and Word document it delivers. It looks for text overflowing its box or the slide, text hidden under another shape or picture, text smaller than 10 pt, and pictures, tables or long unbroken values wider than the Word page. The check runs on your computer and nothing is sent anywhere. Problems are recorded as warnings with the run's deliverables, and a playbook can make them block delivery until fixed. The agent sees the same estimate when it reads a deck or document, so it can fix a slide before handing it over. Only problems the run itself added are reported, never what was already in your file or template.
Office: PowerPoint decks and templates edited in place (Milestone 90)
- AMBA can now edit your own PowerPoint decks and fill your company template instead of rebuilding them. Give it a deck (.pptx) or a template (.potx) and it changes only what you asked: replace text while keeping each word's formatting (even when PowerPoint split it into pieces), add slides from the template's own layouts, duplicate, delete or reorder slides, fill and extend tables, update chart numbers together with the chart's built-in Excel data, turn on chart data labels, add pictures and speaker notes. Masters, layouts, theme and every slide you did not mention stay exactly as they were; a template saved as .pptx becomes a normal presentation. Placeholders left empty on new slides are removed, so no "Click to add text" is left behind.
- Every deck edit is checked before it is saved. If anything outside the requested change would differ, a chart's numbers would not match its data, or a deleted slide would leave pieces behind, nothing is written and the agent is told why. Overwriting an existing deck keeps the previous version for rollback, and the agent can preview an edit without writing it.
- New decks are built on a real template — yours if you set one. In project settings (General) you can choose your company's PowerPoint template (.potx or a .pptx used as one); it is kept in the project's
input/templates/folder (a file chosen elsewhere is copied there) and nothing leaves your computer. Every new deck AMBA creates then uses that template's layouts, theme, fonts and footers; without one, AMBA uses its own neutral 16:9 template with proper slide masters and layouts instead of the old hand-made slides. Outlines can now have nested bullets, tables, pictures, code blocks, speaker notes and section slides next to titles, bullets and KPI cards, and Vietnamese, Japanese and Korean text uses suitable fonts. Starting a deck from a customer's sample deck removes its sample slides (or keeps the ones you name) and leaves the original file untouched.
Office: Word documents and templates edited in place (Milestone 90)
- AMBA can now edit your own Word documents and fill your company's Word templates instead of rebuilding them. Give it a contract, report or form (.docx) or a template (.dotx) and it changes only what you asked: fill fields and replace text while keeping each word's formatting (even when Word split it into pieces or it sits next to a link), set the text of bookmarks and content controls, insert paragraphs and lists in the document's own styles (it refuses styles the document does not have), replace one section or the whole body of a template, fill tables and add rows formatted like their neighbours, delete rows, and set headers and footers with page numbers. Styles, numbering, sections, comments and every other paragraph stay exactly as they were; a new table of contents is marked to update when Word opens the file. Vietnamese, Japanese and Korean text are handled like any other.
- Edits can be tracked changes for review. With tracked changes on, every edit appears in Word as a revision by "AMBA" (deleted text struck through, new text underlined, new and deleted rows and paragraphs, style changes), so your team can accept or reject each one; accepting all gives exactly the requested document. The check before saving also verifies that, and nothing outside the requested change may differ — otherwise nothing is written and the agent is told why. Overwriting an existing document keeps the previous version for rollback.
- New Word documents are built on a real template — yours if you set one. In project settings (General) you can now also choose your company's Word template (.dotx or a .docx used as one), kept in the project's
input/templates/folder like the deck template. Every new Word file AMBA writes then uses that template's styles, lists, fonts, page setup, headers and footers, without copying its sample text; without one, AMBA uses its own neutral A4 template (proper headings, lists, quotes, code, captions, tables and a page-number footer) instead of the old hand-made file. Documents can now have nested and numbered lists, code blocks, pictures, links, strikethrough and a table of contents that updates when Word opens the file. When filling a template, the yellow highlighting that marks its fields can be removed from the filled-in text.
Office: decks and Word files are checked before the run finishes; better previews (Milestone 90)
- Decks and Word documents with template leftovers are sent back to the agent. A finished deck or Word file is read back before the run completes: leftover template text ("Click to add title", "[Company Name]", "[Fill in …]", "Lorem ipsum"), sample slides kept from the template the deck was built from, empty placeholders on a slide or Word fields still showing their placeholder, styles the document does not have, and broken or left-behind parts make the agent fix the file in place; if it does not, the run fails and names the problem. Problems your own file already had before the run are not blamed on it. A playbook can add its own prompt texts, ignore some, or turn individual checks into warnings.
- Decks can no longer contradict the workbook. The workbook number check now also reads PowerPoint decks — slide text, KPI cards, tables, speaker notes and the numbers behind native charts — and the tables of Word documents. A deck whose chart says 95,238,095 clicks when the plan has 95,238 is sent back for correction like a Markdown proposal.
- Slide and Word previews look like the file. The slide preview now fills the preview pane in the slide's real shape (16:9, 4:3, 16:10 …), shows the slide list only when the pane is wide enough, and places text boxes, KPI cards, pictures and tables where the layout puts them (instead of stacking them at default positions), with the layout's and master's background, accent shapes, logos and font sizes. The Word preview no longer shows a grey band above the page, and at 100 % the page fits the pane width; page size, margins, headers and footers come from the document.
Office playbooks: pitch decks, Word briefs and contract fills in your templates (Milestone 90)
- The media pitch is now a PowerPoint deck in your agency's template. The Media Planning & Agency Pitch template builds
Media_Pitch_Deck.pptxon the company deck template from project settings (or a client template you name ininput/), with native PowerPoint charts and tables whose numbers come from the media plan workbook; the deck is checked against the workbook and for template leftovers. The Markdown proposal is now optional, written only when you ask for it. - The executive brief is a Word document in your company Word template. The Executive Chief of Staff template writes
Executive_Master_Briefing.docxin your template's own styles, opening with the key figures taken from the financial model, and checks the brief and the strategy deck against the workbook. The Senior Financial Analyst playbook can now write Word briefs too, and the Executive Strategy Consultant can read workbooks so deck charts use their numbers. - Fill NDAs, SOWs and service contracts from your own template. The Document Analysis & Contract Review template (and the Lead Business Author playbook) fills only the fields of a contract template — names, addresses, dates, amounts — from your message and the files in
input/, asks you for anything it cannot find instead of guessing, never changes a clause, and writes every filled field as a tracked change by "AMBA" so you can accept or reject it in Word. A contract that still has a blank such as[Company Name],[Date],[●]or[Tên công ty]is sent back before the run finishes, and the answer ends with a table of each filled field, its value and where it came from. - New manual pages (English, Vietnamese, Japanese, Korean): the pitch deck in your template, the executive brief in your Word template, and contract fill with tracked-changes review in Word.
0.5.11 — 2026-10-10
Deliverable accuracy (Milestone 95)
- Every answer now lists the files it actually wrote. Below the answer, a "Files written" list shows each file the run created or updated (output files first) with its size, an "auto" badge for PDFs made automatically from Markdown, and a note when a file is not mentioned in the answer; click a file to open it. Files the answer mentions but this run did not write are listed too, next to the existing "Not produced" note. The list comes from what is on disk, not from the agent's wording, and stays after reopening the conversation.
- Key figures above the files. The Inventory Reconciliation and Financial Analyst playbooks now ask the agent for the headline numbers of the result (for example total loss, shrinkage %, items over the threshold); they appear as "Key figures" above the file list. A figure that points at a file is only accepted if that file was written in the run.
- Reconciliation pairs rows deterministically and can no longer report invented matches. The reconciliation tool now pairs each row with at most one row on the other side — by exact ID, normalized ID (case, separators, leading zeros), an ID found in the other side's reference text, or amount within tolerance and date within a window — and keeps the full result (matched pairs with the rule used, discrepancies, every unmatched row on both sides, unreadable values) instead of a 20-row sample. Amounts are read the way they are written (
1.234.000 ₫,1,234,000,(1,234),VND 12,500); a value that cannot be read is reported, never counted as 0. The Invoice Reconciliation template and the Financial Analyst playbook export these tables into the report, and a report whose "Matched" rows do not exist in the source files, do not carry the source amounts, or do not add up to the engine's count now fails with the exact rows named. Spreadsheet loading no longer turns a decimal comma such as1,5into 15. - Proposals and briefings must use the workbook's numbers. When a run writes both a workbook and a Markdown/Word narrative, every significant number in the narrative (money, percentages, counts such as clicks or impressions, Vietnamese and English formats like
95.238 lượt click,1,2 tỷ,95.2M) is checked against the workbook's calculated values. A number that is off by a factor of 1,000 or more (for example clicks quoted as "95,238,095" when the plan has 95,238) or that contradicts a reported key figure sends the agent back to fix the document, and the run fails if it does not; other numbers not found in the workbook are listed as warnings only. Years, dates, phone numbers, versions and page numbers are ignored. The Media Planning playbook now reads its workbook back before writing the proposal, totals each metric separately, and a total that adds different metrics (impressions + clicks) is rejected. - PDFs with emoji stay small and render the same on every computer. A short report with emoji could become an 11 MB PDF because the emoji pulled in the system colour-emoji font. PDFs now use only the fonts bundled with AMBA (Noto Sans regular and bold, plus Fira Mono for code) for Vietnamese and Latin text, and system fonts only for Japanese, Korean, Chinese, Arabic, Thai and Devanagari; colour-emoji fonts are never embedded. Common status emoji become text (✅ → √, ❌ → ×, ⚠️ → (!), 📈 → ↗, 🟢 → ●, 🇻🇳 → VN) and other emoji are left out. Lines in paragraphs, code blocks and table cells no longer overlap or drift apart, bold text is always bold Noto Sans, and Vietnamese characters in code keep their accents.
pdf.generatereports the file size and a warning when a short document produces an unexpectedly large PDF. - F&B template reports the ratio your brief defines. When the brief defines a labour cost ratio (for example company-wide wages ÷ revenue for the period), the F&B Operations template now computes exactly that ratio, puts it in the workbook and reports it as the headline key figure, with per-store ratios as a breakdown; a run that reports only per-store ratios is asked again. The template no longer applies built-in benchmark ranges (such as "25–35%") that could contradict your own targets, and the labour workbook and operations briefing are now required deliverables. A request that names
output/files is no longer treated as a draft just because it says "draft the memo".
Robustness (Milestone 95)
- Projects whose folder was deleted or moved are marked instead of shown as normal. The project list used to keep every project AMBA ever registered, even after its folder was gone. A project whose folder no longer exists now shows "Folder missing" on its card (and when you open it) with two choices: Locate folder… to point AMBA at the folder you moved (it must contain
input/,output/orworkings/), or Remove from list, which asks first and only removes the project from AMBA — no files are deleted. - AMBA tells you when it closed unexpectedly. If the app is closed by a crash that leaves no error record (for example inside the system web view on Linux), the next launch says "AMBA closed unexpectedly last time" and, with your crash-report setting on Ask, offers to send a minimal report through the existing consent dialog: app version, operating system and time only. With Always send it is sent automatically; with Never nothing is sent. Running AMBA twice at the same time does not trigger it.
- Pasting an API key cleans it. Spaces, line breaks and invisible characters in a pasted key are removed in the key field; a key with unusual characters (smart quotes, look-alike letters) shows a warning to copy it again.
- Linux: typing with Vietnamese or CJK input methods no longer drops characters. Project, agent and file name fields (and the descriptions and rename prompts) no longer lose characters while ibus or fcitx is composing, and Enter that confirms an input-method candidate no longer submits the form. Dropdowns on Linux are drawn by AMBA so the chosen value stays readable, and the model selector in the new-project dialog always shows a real model when the saved default no longer exists.
UI (Milestone 93)
- The whole app speaks your language, with local number and date formats. About 450 labels, buttons, tooltips, placeholders and messages that were still in English (command palette, History, Usage, Memory, Models, Skills, Settings → Models provider cards and messages, Diagnostics self-test, update prompt, spreadsheet pager, slide previews, file menu, permission prompt, data sources) are now translated in English, Vietnamese, Japanese and Korean, and Vietnamese labels use sentence case. Dates and times, counts, costs, file sizes and durations follow your language (for example "6,70 US$" and "1,5 KB" in Vietnamese); costs show two decimals instead of four. Release notes in the update prompt are shown as formatted text. Finished tool steps no longer read "Searching…"/"Đang…", routine runs show "Sent" in your language, a routine proposal shows "(not set)" instead of "?", the Telegram bot name no longer shows "@@", and the data sources overview lists the channels you actually connected.
- Agent Studio, Tools & MCP and the project studio are translated too. The agent library and editor, the MCP server form, server list, tool registry and tool permissions, the studio status bar ("Ready", files in/out), the file filter, tab and tree tooltips, the drop-files hint and the live run status (waiting for permission or your answer, rate-limit retries, repeated-action recovery) now follow your language. The new-project dialog shows template names, badges and the starting description in your language. Tool policies show as Allow / Confirm / Deny in your language, and agent cards no longer show the instruction length twice.
- Safer permission prompts. When an agent asks to use a tool that needs your approval, the prompt is now a proper dialog: Esc means Deny, keyboard focus stays inside it, and it appears above any window you have open (for example Settings) and returns you there afterwards. Requests that would delete, move or rename files, overwrite an existing file outside
workings/andoutput/, or write outside the project folder are marked with a warning and start on Deny; the prompt shows the tool, the file paths and the policy's reason, with a button to copy the details. Several requests at once are shown one after another in order, and prompts from a run that has ended or was cancelled disappear. - Command palette (⌘K / Ctrl+K) behaves like the other dialogs. Keyboard focus stays inside it while it is open and returns to where you were when it closes; Esc or a click outside closes it; the highlighted result is clearly marked and stays in view while you move with the arrow keys, and screen readers announce the highlighted result. It no longer opens on top of another open dialog (close that one first), so it cannot hide or interfere with unsaved work there.
0.5.10 — 2026-10-10 — Hotfix: credentials and honest results
Upgrade notes
- Please re-enter API keys and connector credentials you saved after updating to 0.5.9. 0.5.9 reported them as saved but did not keep them across restarts. Keys saved in 0.5.8 or earlier are moved into your system keychain automatically on first launch.
- Linux: saving keys now requires a running system keychain (GNOME Keyring, KWallet ≥ 5.97 or KeePassXC). Without one, AMBA shows a clear error instead of pretending to save. Settings → System Diagnostics shows the keychain status.
- Includes the UI integrity work from Milestone 93 (consistent dialogs, restored hover states and tints, 12px minimum text, offline icons).
Security / Fixed (Milestone 94)
- API keys and credentials are now actually stored in the OS keychain (macOS Keychain, Windows Credential Manager, Linux Secret Service). In 0.5.9, keys saved after updating were lost on restart — please re-enter them. Keys saved before 0.5.9 are migrated automatically.
- Saving a key now fails with a clear message instead of showing "saved" when the keychain did not keep it. On Linux without a running keyring (GNOME Keyring or KWallet), saving shows "No system keychain is available" — AMBA never falls back to storing keys unencrypted.
- Pasted keys are trimmed; keys containing line breaks, invisible or non-ASCII characters are rejected with a hint to paste again.
- Settings → Diagnostics shows which keychain is in use and whether it is available.
- Runs no longer report files that were not produced. If the agent says it created files that are not on disk and cannot fix it (including when the model service fails during the fix-up attempt), the run now ends as failed and the chat shows "Not produced: …" with the missing files, also after reopening the conversation. Requests that only mention a draft (e.g. "review the draft budget in input/") no longer switch into draft mode, and draft runs say that their files were saved in
workings/drafts/. - Clearer error when a folder is given instead of a file. Loading data, reading files or inspecting workbooks with a folder (or an empty path) now fails right away with a message listing the files in
input/to choose from, instead of "Unsupported file format". - PDFs are refreshed when their Markdown changes. A rewritten Markdown deliverable in
output/now gets a new PDF instead of keeping the outdated one.
Docs, site and packaging (Milestone 94)
- The website and manual now describe how keys are really stored. Every page (4 languages) says keys live only in the OS keychain (macOS Keychain, Windows Credential Manager, Linux Secret Service: GNOME Keyring, KWallet 5.97+ or KeePassXC), that there is no plaintext or database fallback, that Linux without a running keyring cannot save keys (and what to install), and that keys saved after updating to 0.5.9 must be entered again. The old claim of an "encrypted SQLite fallback" is gone.
- More accurate claims. "Zero Math Hallucinations" became "Computed, Not Guessed": calculations run in deterministic tools and you should still review the numbers. The playbook pages no longer state a wrong number of built-in playbooks (there are seven).
- New Release Notes page on the website (nav and footer, all languages), generated from this changelog at every site build.
/playbooksnow redirects to the playbook library, and the old/download/<os>links (which pointed to 0.4.5 files that no longer exist) go to the download section. - Linux packages: the
.debnow depends onlibdbus-1-3and recommendsgnome-keyring | kwalletmanager(the.rpmrequiresdbus-libsand recommendsgnome-keyring), drops a duplicate WebKitGTK entry, and AMBA appears under Office/Productivity in application menus. The install guide usessudo apt install ./AMBA_*_amd64.deband no longer listslibssl3. - Download page shows only current files. The release manifest no longer keeps installers from older versions (0.4.x installers and a 0.5.4
.rpmwere still listed); the new.rpmis mapped correctly.
UI (Milestone 93)
- Readable, theme-consistent text and colours everywhere. No text is smaller than 12px any more (badges, counters, footers and helper text were 9–11px in places). Status colours (success, warning, error, info) now come from the app theme, so they read well in both light and dark mode instead of fixed colours that were too faint on white or too bright on dark; filled badges and buttons with white text have enough contrast. Code blocks, diagrams and document viewers that ignored the light theme now follow it. Leftover styles from an older UI kit were removed, so buttons, badges and form fields look like the rest of the app.
- Hover states, selected states and soft tints are back. Many buttons, list rows, badges, cards and dividers were designed with semi-transparent theme colours that never took effect, so hover feedback was missing, selected items were not highlighted, and some dividers showed as bright lines in the dark theme. They now render as designed in both light and dark themes. The file filter box in the project explorer is no longer white in the dark theme.
- Consistent dialogs and in-app confirmations. Project Configuration, Delete project, New project, the welcome sandbox, Help & Guide, Clean up session and the trial-limit dialog now behave like every other dialog: Esc closes them (or goes Back), keyboard focus stays inside, and only one dialog is shown at a time — Delete project has a Back button to Project Configuration. Every "Are you sure?" question, error message and the new-file name prompt is now an in-app dialog in your language and theme instead of a plain system pop-up; deleting asks with a red button and starts on Cancel. Backup and restore in Settings use the normal save/open file pickers instead of asking you to type a path. The Settings row in the sidebar and the collapsed-sidebar expand button work with the keyboard and screen readers; the crash-report dialog shows a readable time and starts on Send; the routine run history keeps its filters on one row; the data-flow table fits inside Project Configuration.
- Quick setup is reachable with the sidebar collapsed. The collapsed sidebar (narrow windows, or after collapsing it) now has a Setup Wizard icon next to Help and Feedback, so the setup wizard no longer requires expanding the sidebar first.
0.5.9 — 2026-10-09 — Milestones 76–92
First release since 0.5.6 (0.5.7 was tagged but never distributed).
Upgrade notes
- Keychain prompt on first launch (macOS): API keys and connector credentials previously stored as plaintext in the local database are moved into the OS keychain and removed from the database; macOS may ask once for keychain access. Correction (0.5.10): this did not work in 0.5.9 — keys saved after updating to 0.5.9 were lost on restart and older keys stayed in the database. Fixed in 0.5.10; see its notes.
- Backups no longer contain credentials: restoring a backup on another machine requires re-entering keys.
- Routines: existing routines are migrated automatically and keep their permissions; "weekdays" schedules no longer fire on weekends; new or edited routines need a successful dry run before activation.
- Overwrites: agents now ask before overwriting existing files outside
workings/andoutput/; unattended routines are denied such overwrites unless the path is allowed in the routine policy. - HTML previews render statically (scripts disabled); open externally for interactive pages.
- Crash reports are sent only with your consent (Settings → Security).
- Installer is ~10 MB larger (bundled offline Office sandbox and icons).
UI (Milestone 93)
- Fixed: icons are visible again in the installed app, and they work offline. Icons were downloaded from a third-party icon server each time the app started; the app's security policy blocks that, so the installed app showed no icons. All icons now ship inside the app and nothing is fetched from a third-party server to draw the interface.
Chat (Milestone 88)
- File mentions in chat now only ever point inside the project folder. When you write
@fileor@folder/, the app (not the chat window) finds the matching project files, and a mention that resolves outside the project folder or to a missing file is ignored. Project instructions, automatic mode selection (TypeSafe AI Jev) and the large-document conversion check also moved into the app runtime; how chat looks and behaves is otherwise unchanged. One visible difference: after a reload, a message sent after converting a document also shows the "converted to Markdown" note. - Stop now works while the agent is waiting for you. Stopping a run while it is asking for permission or asking you a question now ends the run right away. Before, the run stayed open until the prompt was answered, or kept working on the remaining steps of that turn.
- Agents remember earlier conversations again. Memories saved after a run are now found in later runs. Before, a project that uses a catalog agent saved its memories under that agent but searched under the default assistant, so it never found them. New chats started inside a project are now also linked to that project from their first message, so project search, project-scoped memory and the project file refresh after a run work in the first conversation too.
- Repeated questions get a fresh answer. A run no longer replays an AI reply that was saved from an earlier run with identical wording (this could happen with low-creativity model profiles such as "Coding & Architecture").
- More reliable deliverable retries. When the app asks the agent to redo a missing deliverable, the files it reads or writes in that retry now show in the timeline and in the changed-files list. A second retry also no longer fails at the AI provider because of an unanswered tool step.
- Chat follows running agents live instead of checking every few seconds. Sending a prompt returns immediately and the answer, tool steps, errors and Stop all update from the agent's own progress messages. Reopening a chat or switching back to an agent while it is still working picks the run up where it is, and a run that finished while you were away is shown as finished instead of "working". The final answer now keeps its saved message id right away, so "Save to project knowledge" works on it without reloading the chat.
- Agents now only use the tools you gave them. Every agent can still read the files in your project (open, search and list files, read PDFs and spreadsheets), ask you a question and read the clock. Writing files, creating Office documents, accounting, web search and system tools now need the matching capability pack or an explicit tool on the agent. Before, almost every agent got all of these whatever its configuration. Example: an agent built only with "Executive Presentations" reads your project files and builds decks, but cannot write other files until you add "Document Authoring". Project settings still apply on top (internet, MCP, shell). Connected MCP tools stay available to every agent in projects that allow MCP. Older agents with no tools or packs configured keep access to every tool. Changing an agent's packs in Agent Studio no longer removes tools it had outside those packs.
Routines (Milestone 91)
- Routines are now stored in the app database and run one at a time. Existing routines (and the old hidden daily project schedule) are moved over automatically on first launch and keep their schedule, Telegram/Google Drive inbound and outbound settings. "Weekdays" routines now really skip Saturday and Sunday. If a routine is triggered while it is already running, one extra run waits and starts right after; further triggers join that waiting run instead of running in parallel. Pressing Run Now no longer cancels that day's scheduled run. A scheduled run that is still missing required files is recorded as skipped. After three failed scheduled runs in a row a routine stops (error state) until you resume it.
- Routines can now start when files or messages arrive, and catch up after the app was closed. A routine can watch a project folder (for example
input/, with a filter such as*.xlsx): once new or changed files stop arriving for 30 seconds (adjustable), it runs once for the whole batch and works on exactly those files; a minimum number of files can be required. Files the routine writes itself never start it again, and files dropped while the app was closed are picked up on the next launch. A routine can also start when a matching Telegram message or file arrives in a chosen chat (filter by sender, text, attachment or file name), or when a new file appears in a Google Drive folder: the files are saved toinput/first, then the run starts. If the app was closed when a scheduled routine should have run, it runs once when you reopen the app within 24 hours; older missed runs are listed as skipped ("missed while app closed"). Schedules can use a time zone (UTC, an offset such as+07:00, or zones such asAsia/Ho_Chi_Minh); the default is the computer's time zone. The run block shows what started the run (schedule, file names, message). Zalo cannot start routines yet (the app explains this when saving). - Routines now stay inside the limits you set when nobody is watching. Each routine has a policy of what it may do on its own: which folders it may read and write, whether it may replace existing files (or only specific ones, such as
output/media_plan.xlsx), whether it may use the web or specific MCP tools, and where it may send results. The app enforces it on every run and lists anything it refused in the run's result; anything that would normally ask for your confirmation is refused. Before an existing Office file is replaced, a revision is kept so it can be rolled back. A new routine must pass a dry run before it can be switched on: the dry run works on your real current files but writes only intoworkings/.dry-run/, sends nothing, and shows what it would have sent (destination, size, a preview). Editing a running routine keeps the current version running until you run the new version dry and confirm it. Existing routines keep working as before (they may read the whole project, replace files in their output folders and use the web and MCP tools when the project allows them) and need no dry run. Routine deliveries, Telegram/Google Drive checks for new messages (grouped per hour) and routine model calls now also appear in "Data leaving this device", linked to the routine run; describing a routine in your own words is masked like any chat when the project masks identifiers. - Describe a routine in your own words and get a proposal to check, test and switch on. Ask the agent in chat for something that should happen on its own ("every Monday at 8…", "whenever the accountant drops a bank statement into input/bank…", "khi có file mới…", "毎朝…") and it shows a routine proposal card instead of doing the work right away: the name, what it does, when it runs, where it sends results and what it may do while you are away, all in plain language. Anything the app cannot know for sure is asked, never guessed — for example which of several matching folders, which Telegram chat (picked from the chats your bot knows), which file it may update, or to connect Telegram first. Answer and click "Answer & refine"; then "Run dry run" tests it on your real files without sending anything, and "Activate" becomes available once that dry run of exactly this version succeeds. "Edit in editor" opens the routine editor prefilled. The old "schedule proposal" card in chat is replaced by this card.
- New routine panel, editor and run history — routines now live only with their agent. The routine panel beside each agent's chat lists that agent's routines with their state (draft, active, paused, error, edit waiting for confirmation), when they run next or how the last run went, and buttons to Run now, Pause/Resume, Dry run and edit; with no routine yet it offers to describe one in chat or create it. The editor shows what the routine does, a trigger builder (schedule with time zone, files arriving in a project folder, a Telegram or Google Drive message, or only Run now — up to three), what it may do while you are away with a plain-language summary that updates as you edit, up to three places to send results, and its versions; mistakes are shown next to the field they concern. "Describe in plain language" in the editor fills the form from your own words (the same proposal as in chat). Save draft → Dry run (result shown inline: files written in the sandbox, what would be sent, anything refused) → Activate; editing an active routine keeps the running version until you confirm the edit after its dry run, or discard it. Run history shows every run of the agent's routines with filters (routine, status including skipped and cancelled, dry runs), what started each run, and a link to the run in the conversation. Run now is not available for drafts (use Dry run). The old schedule section of the agent settings and the old routine editor with its "AI assistant" are removed; all of this updates live without refreshing.
- Send a routine's result only when it matters. Each destination of a routine has a "Send only when…" field: give it a flag name (for example
over_threshold) and say in the routine's instruction when it applies ("…set over_threshold when an item loses more than 5 %"). The routine then sends to that destination only when the run raised the flag; other destinations and error alerts are sent as before. The dry run shows "would skip: flag … not set to true" or that the flag was raised, and run history lists such deliveries as skipped (condition not met). - Start a routine from your agent's playbook. Agents installed from a playbook that ships routine templates (such as the Inventory Reconciliation & Shrinkage Controller) offer them as "Start from template" in the routine proposal card and in the routine editor, and use them when you describe a similar routine in chat. A template becomes a normal proposal: folders and thresholds come from the playbook, anything it cannot know (such as your Telegram chat) is asked, and it still needs a dry run before you switch it on. The inventory template now sends its summary only when something is over the threshold, and the opening-stock template adds rows for new items instead of only listing them.
Privacy (Milestone 92)
- See every time project data left your computer. Project Configuration → Permissions & Security now has a "Data leaving this device" panel listing each outbound request — AI model calls (including the provider's region for Bedrock and Vertex), web searches and page fetches, remote MCP servers, deliveries to Telegram or Google Drive, feedback, crash reports and update checks — with destination, size, status and what was masked before sending. Only this metadata is recorded, never the content. "Export evidence" writes a CSV and a short summary into the project's
output/compliance/folder for audits. Entries are kept on your device for 365 days. - Mask client identifiers before they reach the AI model. In Project Configuration → Permissions & Security you can turn on masking for a project: e-mails, phone numbers, bank accounts, card/IBAN numbers, API keys, plus national ID, tax and business numbers for the markets you pick (Vietnam, Japan, Korea, Singapore, Thailand) and any terms you list, such as client names, are replaced with placeholders like ⟦CLIENT_1⟧ before a request is sent. The answer you see and the files the agent writes contain the real values again, restored on your computer. "Strict" uses every market and also masks any number with 9 or more digits. The "Data leaving this device" panel shows how many items of each kind were masked per model call (never the values). Off by default; masking can reduce answer quality for tasks that need the exact values, and local models (Ollama) are never masked because nothing leaves the device.
- Fixed: the "Data leaving this device" panel and data source setup can be opened again. Both lived in a window that no button opened any more. The data-flow panel is now in Project Configuration → Permissions & Security, next to identifier masking. Connecting Google Drive folders, local folders and Telegram chats to Source Documents (with recent sync activity) opens from the Source Documents pane menu → "Data Sources & Sync".
- Fixed: "Manage Inbound Sources" opens properly from Data Sources & Sync. The inbound source setup (Google Drive folder, local folder, Telegram chat) used to open underneath the Data Sources & Sync window and could not be used. It now replaces that window, with a Back button (or Esc) to return to it. Both windows were also tidied up: consistent spacing, headers and buttons, readable text in light and dark themes, only the middle part scrolls, and localized sync status labels. The update prompt now also stays usable when it appears while another window is open.
Excel (Milestone 89)
- Excel files created by agents can now include charts, conditional formatting, Excel tables and drop-down lists. When an agent builds a new workbook it can add native charts (column, bar, line, area, pie, doughnut, scatter, stacked, and combined column + line charts with a second value axis, including charts that read data from another sheet), conditional formatting (highlight rules, formula rules, colour scales, data bars, icon sets), Excel tables with a style, a totals row and calculated columns (
[@Qty]*[@[Unit Price]]), drop-down lists and number limits for input cells, sparklines, frozen panes per sheet, column widths, merged and two-row headers. Number formats can follow the market: VND, JPY, KRW, SGD, THB or USD currency and the local date order (e.g. dd/mm/yyyy in Vietnam, yyyy/mm/dd in Japan); ISO dates such as2026-01-31become real Excel dates in date columns. Invalid chart, table or validation settings are now reported to the agent with the exact problem instead of producing a broken file. - Agents can now edit your own Excel workbooks in place without breaking anything else. Asked to update figures, add a month column, insert a transaction, rename a sheet or add a summary sheet with a chart, an agent now changes exactly those cells and objects in your existing file: formats, charts, pictures, notes, Excel tables, pivot tables, macros and every sheet it does not touch stay exactly as they were. Inserting or deleting rows and columns, renaming or deleting sheets moves every formula, name, chart range, table, pivot source, merged range and conditional format that refers to them, like Excel does; changes that would break formulas (
#REF!) are refused unless you ask for them. Before saving, the app checks the result opens and that nothing outside the requested change differs — if anything else changed, nothing is written. Replacing a file in your project asks for confirmation as before, and the previous version is kept so the change can be rolled back. Agents can also start a new workbook from your template (the template is copied and filled, not rebuilt), and the agent can first look at a workbook's structure (sheets, tables, names, charts, formulas). Large files work: correcting values at the end of a 50,000-row sheet takes about a second. - Fixed: Excel generation no longer hangs on cross-sheet formulas. Creating a workbook with a formula such as
=SUM(Ledger!D2:D3)used to freeze the agent run. Formulas that point to another sheet (Ledger!D2,'P&L'!B3,Ledger!$D$2:$D$9, whole columns likeLedger!D:D) are now calculated correctly, so the saved file shows their values right away. Opening customer spreadsheets with very large ranges or merged areas is also protected: such formulas are left for Excel to calculate instead of blocking the app. - New agent template: Inventory Reconciliation & Shrinkage Controller (draft). For teams that keep stock in Excel: it builds tomorrow's opening stock from today's count in a copy of your stock file, reconciles the count in place (variance value and shrinkage % columns, a totals row, red highlights below your thresholds — default −5 %), adds a sheet comparing the loss with the day's revenue from your accounting report, and a weekly sheet with the trend per item. Your fonts, colours, filters and notes stay as they are; notes typed next to the table are moved, not overwritten. It finds columns by their headers, so branches with different layouts work, and it asks for figures that your report only shows as screenshots instead of guessing. The template includes two routine drafts to review before use: reconcile when a new count file arrives (with a short Telegram summary) and build the opening stock every morning.
- Fixed: totals on a summary sheet no longer show 0 before Excel recalculates. After an in-place edit, a total such as
SUM()over formulas that read another sheet could be saved with a wrong value (0 or a partial sum) until the workbook was opened in Excel; it now waits for those values. - Agents can add new rows to a list that has a totals row, and the totals grow with it. When a new item shows up (for example an item counted today that is not in yesterday's stock file), the agent adds its row right above the TOTAL row with the same formats and formulas as the row above; every sum, filter, highlight rule, drop-down, name and chart that covered the list now also covers the new row. It finds the totals row by its formulas, so it works whatever the row is called.
- Sheet names with a stray space are found. A sheet named
NL ĂN(with a trailing space) is now found when the agent writesNL ĂN, as long as only one sheet matches; formulas the agent writes point to the exact sheet name. If two sheets match, the agent is told both names instead of picking one. - Fixed: numbers with many decimals are written exactly. Values such as
111.50000000000003(typical for weighed quantities) could be stored one digit off in the last place, so totals differed from the source file in the 15th decimal.
Office sandbox (Milestone 89)
- Agents can now build decks from your own template and handle complex Word documents with Python, offline. A new tool,
office_script, lets an agent write a short Python script (openpyxl, python-docx, python-pptx, XlsxWriter) that runs inside a sandbox in the AMBA window: no internet, no access to your disk, no access to the app — it only receives the files the agent names and returns new file contents. AMBA checks every result before saving: the file must open and be valid, and when an existing file is edited, nothing outside the parts the agent declared may change (for existing Excel workbooks, any lost chart, shape or formatting rejects the edit and the agent is told to use the in-place spreadsheet editor instead). All results are saved together or not at all, and every overwrite can be rolled back. Overwriting your own files still asks for confirmation, and routines follow their file rules. The sandbox starts on first use (about 2 seconds) and needs the AMBA window to be open; Settings → Diagnostics has a self-test. Nothing leaves your device. The app download grows by about 10 MB.
Security (Milestone 85)
- API keys and connector/account credentials are now stored only in the OS keychain. Previously a plaintext copy was also written to the local database. On first launch, existing plaintext copies are moved into the keychain and deleted; database backups no longer contain any credentials. If the system keychain refuses to save a key, AMBA now shows an error instead of silently saving it in plaintext.
- Hardened the app window against malicious content. A strict Content Security Policy is now enforced, and all AI replies, code blocks, diagrams and slide text are sanitized before display, so text from an AI model or an opened file can no longer run scripts inside AMBA. Diagrams use Mermaid's strict mode. HTML file previews are now shown as static pages (scripts inside the previewed file do not run; open the file externally for interactive pages), and remote images are not loaded inside chat content.
- Agents can no longer read or write files outside the project folder through a second path or a shortcut link. Every file path a tool receives (not just the first one) is now checked against the project folder, after resolving shortcuts/symlinks, so e.g. converting a project file into a location outside the project is blocked. File tools called without a path are refused. Writing new files anywhere in the project and updating files in
workings/andoutput/work as before; overwriting an existing file elsewhere (for example ininput/) now asks for your confirmation, and in scheduled routines such an overwrite is refused because nobody is there to confirm. - Abuse protection for AMBA's online services. The free trial service now also limits usage per network (in addition to per device), caps request and reply sizes, and only uses approved AI models; feedback submissions are rate-limited per network; update checks reject malformed requests. Networks are identified only by a one-way hash — IP addresses are never stored. If the trial limit for your network is reached, AMBA asks you to add your own API key, as it already does when your device's free runs are used up.
- Secrets no longer end up in the local run history, and feedback/crash reports hide more personal data. API keys, tokens, passwords and private keys that appear in tool inputs or results are now masked before a run's steps are saved, and very large tool inputs/results are shortened when saved (the live view while a run is working is unchanged; after a reload such rows show
[REDACTED_SECRET]or a "truncated" note). File paths and your document content stay visible in the history. Feedback and automatic crash reports now also hide email addresses, phone numbers (international and Vietnamese formats) and Vietnamese citizen ID (CCCD) numbers, in addition to user folder paths and API keys. - Privacy policy rewritten to match what the app actually sends (English, Vietnamese, Japanese, Korean). The old "zero telemetry / no servers" wording is gone; the policy now lists every network flow — AI requests with your own key, the free trial relayed to Google Gemini, feedback, automatic crash reports, update checks and the template catalog — with what is sent, where it goes and how long it is kept, plus how to request deletion. The website's FAQ, footer, security diagram and terms were corrected where they contradicted this (including the outdated Linux "encrypted SQLite fallback" for API keys).
Privacy (Milestone 85)
- Crash reports are now sent only with your consent. After an unexpected close, AMBA shows exactly what the report contains (error, code location, stack trace, app version, OS) and asks: Send, Don't send or Always send. A new Crash reports setting in Settings → Vault & Security lets you choose Ask (default) / Always send / Never. The local crash file is deleted once you send or decline it.
- Your feedback contact address is no longer copied into the report text. It is sent as a separate field, stored only in AMBA's feedback database, and never appears in the public GitHub issue or team chat alerts.
- Real feedback reference IDs. After sending feedback you now see the reference ID issued by AMBA's server (e.g.
AMBA-FB-3F2A9C1B) instead of a random number that was never recorded. If the server cannot be reached, the dialog says the feedback was only saved on your device instead of showing an ID. - Automatic data retention on AMBA's servers. Feedback and crash reports are deleted 180 days after the issue is resolved or closed (and at most 365 days after submission); free-trial device records are deleted after 90 days without use. The privacy policy (4 languages) was updated to match.
Release pipeline (Milestone 86)
- Releases can no longer look successful without actually being distributed. Pushing a version tag now runs the full release automatically. Each release job uploads to the download server, checks that every file can be downloaded, registers the version with the update service, and only then publishes the update manifest. A final check confirms that the update service offers the new version and that each offered download works. Missing credentials, an unreachable file or a failed registration now fail the release instead of being skipped silently, which is how v0.5.7 ended up tagged but never distributed. Registration also no longer re-registers older installers from the merged manifest. That had made the Intel-Mac updater offer v0.4.0 instead of the newest Intel build.
- The app version is now defined in one place. The version shown in Help and in the feedback form now always matches the installed build, and the Linux installation guide no longer names a specific (possibly outdated) installer file. Release preparation is one command (
pnpm run release:bump X.Y.Z), and the quality gate fails if any version copy disagrees. - Website: no more pages for things the app doesn't ship. The Business Playbooks section now lists the six agent playbooks that ship in the built-in catalog (several of them were missing from the menu). It also lists six walkthroughs, each built on a project template the app really has, with a note that their figures and run times are examples. A duplicate reconciliation page was removed, and the Vietnamese reconciliation guide no longer points to the removed Pipelines tab (it now describes Routines). Button names in the Connected Accounts guide now match the app in all four languages. The site also publishes a sitemap, and the build fails if any link points to a missing page.
Agent Chat Timeline Rework & Routine Self-Work Streaming (Milestone 84)
- Routines now appear as the agent working on its own — no more fake "user message" for a scheduled routine. Pressing Run now shows the routine block immediately and streams its progress live (checking sources → working → delivering), instead of a spinner on a button followed by everything appearing at once.
- Redesigned agent turns, coding-agent style: a collapsible "Working · 00:42 → Worked for 1m 12s · 5 tool calls" group with per-tool rows (status, duration, start time, expandable details), thoughts folded to one line, and the answer streaming live below.
- Clear timing: every turn shows its start time (hover for the full timestamp), recent turns show "2m ago", and days are separated in the timeline. Scroll/elapsed timers now follow the real run start.
- Fixed cross-talk: a run in one agent can no longer leak into another agent's window; routines run in (and report to) the agent that owns them.
- Older routine history is displayed in the new format automatically (no data migration).
- Routine block shows status (Running → Completed / Failed), execution mode, trigger (manual or scheduled), and a collapsed "Task instruction" — deterministic routines show live steps too.
- Polish & accessibility: readable 12px minimum text in the chat, subtle date-separator rules that now render in both themes, a neutral "Stopped" state for cancelled runs (no endless spinners), full keyboard navigation with visible focus rings (message copy/edit actions also appear on keyboard focus), screen-reader-friendly timestamps, and "Reduce motion" support.
- Remaining English strings in the chat (edit-prompt hint, token tooltip, "Saved locally") are now translated in Vietnamese, Japanese and Korean.
Bug Fixes (Milestone 83 follow-up)
- Agent list is visible again above the file tree in Project Studio (finished the "bot"→"agent" rename that had hidden it).
- Switching agents restores each agent's chat scroll position reliably instead of jumping.
- Routines run in their own conversation (never in whichever conversation was opened last), and finishing a routine no longer pulls you away from the agent you are viewing.
- Deleting an agent also deletes its routines, so orphaned routines no longer keep running.
Routine Identity Unification + "bot"→"agent" Rename (Milestone 82)
- Routines now belong to each agent conversation (not a shared template), so switching between agent tabs instantly shows that agent's own routines with its own open/close state, and two agents built from the same template no longer share routines. Fixes the "sidebar stays put / don't know whose routines" behavior.
- Fixed a mount-time race and project-switch inconsistency in the agent chat state.
- Removed leftover dead "executive roster" modal code.
- Terminology: "bot" → "agent" throughout the app (UI text, identifiers, API, and settings). Persisted agent configurations are migrated automatically on launch (no data loss). Telegram's own "bot" terms (e.g. BotFather, bot token) are unchanged since they refer to Telegram bots.
Per-Agent Routine State Isolation (Milestone 81)
- Switching agents now cleanly swaps the routine sidebar to that agent's own routines — the sidebar remounts per agent, so no state leaks between agents, and the header shows which agent you're configuring.
- Switching projects resets the chat + routine state cleanly (no stale agent carried over from the previous project).
- The routine sidebar is now a config-only surface — the execution history list was removed from it; run history lives in the agent's chat timeline, with the "View logs" button opening the detailed run monitor on demand.
Agent Routine Rework (Milestone 78)
- Run Now reliably pulls Telegram files, or tells you why not. A routine with inbound collection enabled now requires an account + channel (validated on save), so it can no longer silently pull nothing. The Telegram fetch persists a per-account offset so a prior sync no longer empties the backlog.
- Execution logs are reachable. A new "View logs" button in the Routine sidebar (per routine and for all) opens the run history. Deterministic (default-mode) runs now record step events (inbound fetch, file counts, errors), so every run is observable — not just agent-mode runs.
- New Telegram routines default to inbound ON with the account pre-selected, so "Add new → pick channel → Run Now" works out of the box.
- Legacy cleanup. Removed the redundant per-agent "Schedule" settings tab (routines are configured from the sidebar — the single source of truth), deleted the orphaned Pipelines tab, retired the dead background poller loop, and stopped the migration that kept resurrecting a deleted accounting task.
Multi-Cloud Provider Adapters + OpenAI Responses API (Milestones 76 & 77)
Added
- Bring-Your-Own-Key for enterprise clouds (Milestone 76): configure AWS Bedrock, Azure OpenAI, and GCP Vertex AI directly from the Cloud Provider Hub, reaching their full model catalogs (not just OpenAI-compatible gateways).
- AWS Bedrock (full catalog): native Converse API adapter reaching Claude, Llama, Titan, Mistral and more, with live model discovery via
ListFoundationModels. Two auth modes, chosen with a toggle in the Bedrock form:- Bedrock API key (recommended) — paste a single Amazon Bedrock API key (Bearer); the simplest setup for end users.
- IAM Access Key + Secret — SigV4 signed per request (session token supported for temporary credentials); signing happens per request, eliminating the "Signature expired" errors seen with cached credentials.
- Inference-profile-aware discovery — model discovery lists invocable cross-Region inference profiles (e.g. Claude Sonnet 4.5) alongside on-demand foundation models, and hides bare IDs that return "on-demand throughput isn't supported".
- Reactive inference-param recovery — when a model rejects an
inferenceConfigfield (e.g. OpenAI models on Bedrock that don't accepttemperature), AMBA removes the offending field named in the error and retries automatically. Model-agnostic, so new restrictions are handled without code changes.
- Azure OpenAI: deployment-routed chat completions with
api-keyauth and configurableapi-version. Shares OpenAI's reactive 400-recovery, so Azure deployments of restricted models (e.g. gpt-6-astra) self-heal — whenreasoning_effort: 'none'is rejected, AMBA switches to a supported value the error lists (low/medium/high/xhigh) instead of failing. - Reasoning models + function tools on OpenAI/Azure via the Responses API (Milestone 77): reasoning models (gpt-6-astra, terra, o-series) are automatically routed to the
/v1/responsesAPI, where function tools are supported — so agent sessions on OpenAI and Azure now work with these models. Non-reasoning models and OpenAI-compatible gateways keep using/v1/chat/completionsunchanged. (If a reasoning model is ever reached over a chat/completions-only gateway, AMBA still returns a clear error suggesting an AWS Bedrock profile.) - GCP Vertex AI: Gemini
generateContentwith service-account OAuth2 (short-lived tokens minted and cached per session). - Per-provider credential forms: dedicated secure input fields per cloud (AWS keys + region, Azure endpoint + version, Vertex service-account JSON + project/location), stored in the OS keychain. Existing API keys continue to work unchanged.
- 1-click presets: AWS Bedrock, Azure OpenAI, and GCP Vertex added alongside the existing DeepSeek/OpenRouter/Groq/Together presets.
- AWS Bedrock (full catalog): native Converse API adapter reaching Claude, Llama, Titan, Mistral and more, with live model discovery via
0.5.7 — 2026-09-30
> Tagged only — never distributed (updater, R2 and download portal stayed on 0.5.6); superseded by the next release.
Added
- High-Fidelity In-Tree Excel Formula Engine & Auto-Evaluation (Milestone 55):
- Rust In-Tree Formula Evaluator: Pure Rust recursive descent formula engine (
evaluator.rs) supporting arithmetic operations, parenthesized expressions, and standard business functions (SUM,AVERAGE/AVG,COUNT,MAX,MIN,ROUND,ABS,IF). - Zero-Zero Invariant Guarantee: Evaluates formulas at generation time and writes computed results via
worksheet.set_formula_result(), ensuring Excel displays authentic values immediately without showing<v>0</v>. - Auto-Recalculation on Read: Automatically evaluates formulas when reading
.xlsxspreadsheets where cached values are0or empty, keeping spreadsheet previews accurate and responsive. - Resilient Cell Parsing: Supports formula strings missing leading
=, object cells ({"formula": "...", "value": ...}), and auto-evaluates formulas embedded inside Markdown tables and CSV files.
- Rust In-Tree Formula Evaluator: Pure Rust recursive descent formula engine (
- Conversational Flow, Turn-Scoped Deliverables & Surgical Core Tools (Milestone 54):
- Turn-Scoped Deliverables: Cleanly isolates draft deliverable cards per conversational turn in
ProjectChat.vue, eliminating ghost file cards from previous turns. - Surgical Tool
replace_file_content: Native Rust tool for exact string replacement with line-range constraints (start_line,end_line), occurrence counting, andallow_multipleguards. - Structural Tool
directory_tree: Fast ASCII hierarchy generator for file tree exploration with depth limiting and noise filtering (.git,node_modules,target, etc.). - OpenAI gpt-5.6-terra Auto-Recovery: Intercepts reasoning model 400 errors and automatically adjusts
reasoning_effort: "none"for/v1/chat/completionsfunction-calling compatibility.
- Turn-Scoped Deliverables: Cleanly isolates draft deliverable cards per conversational turn in
- Google Gemini 429 Self-Healing & Context Token Blast Cap (Milestone 53):
- Exponential Backoff with Header Parsing: Automatically extracts
Retry-Afterdelay directives from Gemini 429 rate limit responses with a safe 35-second ceiling. - Anti-Context Blast Cap: Protects users against sudden API cost spikes by bounding context injection to budget limits.
- Exponential Backoff with Header Parsing: Automatically extracts
- Real-Time Token Telemetry & ReAct Loop Metrics (Milestone 52):
- Step-Level Token Badges: Real-time display of input/output token usage in thought steps, activity trays, and assistant message action bars (
⚡ 1.5k tok (↓1.2k ↑350)).
- Step-Level Token Badges: Real-time display of input/output token usage in thought steps, activity trays, and assistant message action bars (
- Offline Document Conversion Engine & Anti-Token-Blast Guard (Milestone 51):
- Local Document Conversion (
document_convert): Zero-token offline conversion of Office formats (.docx,.xlsx,.pptx) to clean Markdown representations. - Anti-Token-Blast Guard: Automatically intercepts massive documents in
filesystem_readand offers 1-click conversion to protect the model's context budget.
- Local Document Conversion (
- Local Workspace Indexer & Hybrid Retrieval Engine (Milestone 50):
- SQLite FTS5 Full-Text Indexer: Embedded full-text search with incremental chunking and
unicode61diacritics removal. - Hybrid Search Tool (
workspace_search): Combines BM25 lexical precision with semantic vector search via Reciprocal Rank Fusion (RRF). - Surgical Line Slicing: Added
start_line,end_line, andshow_line_numberstofilesystem_readto reduce token consumption by > 90%.
- SQLite FTS5 Full-Text Indexer: Embedded full-text search with incremental chunking and
- Large Document Streaming Parser & Token-Budgeted Grounding (Milestone 49):
- Resilient Streaming DOCX Parser: Non-blocking chunked XML streaming with pure-text fallback recovery for corrupted documents.
- Anti-Binary Guard Invariant: Strictly prevents Office document formats from falling through to raw binary byte checks.
- Query-Grounded Filtering & TOC Outlines: Extracts structured Table of Contents maps and semantic paragraph excerpts with context windows.
0.5.6 — 2026-09-25
Added
- Unified Modal Design System & Pro-Desktop Dialog Experience (Milestone 48):
- Streamlined 3-Tab Project Settings: Reduced project configuration from 5 tabs down to 3 (
general,security,danger), eliminating horizontal tab scrolling and dialog jumping. - Non-Technical Permissions & Security Matrix: Intuitive Allow/Deny segmented controls for Filesystem Sandbox, Web Search, Terminal Commands (blocked by default), and MCP Plugins.
- Authoritative Modal Standards: Standardized dialog geometry (
max-w-[720px],rounded-2xl, standard Tailwind padding) acrossAccountSetupModal,FeedbackModal,ProjectCreateModal,ProjectDeleteModal,ResetSessionModal, andProjectOperationsModal.
- Streamlined 3-Tab Project Settings: Reduced project configuration from 5 tabs down to 3 (
- Two-Layer Executive Agent Architecture & Agent Studio (Milestone 44):
- Agent Studio Marketplace: Dynamic catalog synced directly from Cloudflare R2 (
https://r2.ambadesk.com/alpha/catalog/agents.json) with duplicate-safe installation and 1-click cloud sync. - 6 Canonical Specialist Personas: Pre-trained personas compiled from Single Source of Truth playbooks (
catalog/playbooks/): Financial Analyst, Business Writer, Strategy Consultant, Market Researcher, Data Analyst, and Chief of Staff. - AI Co-Creation Wizard: Interactive
🪄 Co-create with AIflow for structuring custom specialist agents from natural dialogue. - Multi-Agent Project Roster: Visual sidebar agent grid, 0ms instant tab switching with preserved chat history, open file preview, and scroll position.
- Agent Studio Marketplace: Dynamic catalog synced directly from Cloudflare R2 (
- TypeSafe AI (Jev — System 1 Decision Engine) (Milestone 43):
- Sub-second intent classification and automatic cognitive mode routing (
Research,Plan,Agent) with real-time latency badges (Jev · 68ms). - Integrated into Step 3 of Model Settings alongside OpenRouter.
- Sub-second intent classification and automatic cognitive mode routing (
- Cross-Lingual Reasoning Boundary (ADR-020):
- Internal chain-of-thought and calculation reasoning inside
<thought>blocks strictly conducted in Technical English to eliminate arithmetic and parameter hallucinations. - Deliverables and UI communications compiled natively in active project locale (
en,vi,ja,ko).
- Internal chain-of-thought and calculation reasoning inside
- Documentation & Homesite Parity:
- Replaced ASCII architecture diagrams with responsive, theme-aware
<ExecutivePersonasFlow />component. - Full multilingual parity across all concept docs, getting-started guides, and playbooks.
- Replaced ASCII architecture diagrams with responsive, theme-aware
0.5.5 — 2026-09-18
Added
- Frictionless Onboarding, Zero-Typing Sandboxes & Managed Trial Gateway (Milestone 37):
- Zero-Typing Interactive C-Suite Demo Sandboxes: Added interactive sandbox picker modal (
WelcomeSandboxModal.vue) pre-seeding realistic business projects for Chief of Staff, Accounting & Finance, and Operations with zero API keys required. - Cloudflare Edge Trial Gateway: Deployed edge trial gateway with anonymous client token enforcement, rate limiting, and device quota protection.
- Desktop Runtime
AmbaCloudProvider: Implemented managed trial provider fallback with transparent BYOK handoff dialog when quota expires. - Deep File Mention & Categorized Playbook Suites: Enhanced chat dock with quick
@filementions and domain-categorized prompt libraries.
- Zero-Typing Interactive C-Suite Demo Sandboxes: Added interactive sandbox picker modal (
- Office Presentation Fidelity & Virtual Artboard Projection (Milestone 30/37):
- 16:9 Vector Slide Artboard Engine: Introduced fixed virtual artboard presentation viewer (
PresentationViewer.vue) with CSS percentage coordinates, auto-scaling typography, and vector shape rendering. - Rich PPTX Formatting: Added full support for rich text runs (bold, italic, colors), bullet dots, multi-level indentations, and theme background reference resolution (
bgRef).
- 16:9 Vector Slide Artboard Engine: Introduced fixed virtual artboard presentation viewer (
- Two-Stage Plan Execution & Chronological Blueprints (Milestones 35 & 36):
- Chronological Plan Blueprints: Structured agent plans into
plans/YYYYMMDD_<slug>.mdwith organized deliverable outputs underdeliverables/. - Lean Triad Cognitive Modes: Streamlined execution into three high-signal modes:
explore,plan, andexecute. - Pro Markdown Editor: Integrated direct raw source editing with line numbers, word-wrap toggles, and instant disk synchronization.
- Chronological Plan Blueprints: Structured agent plans into
- Multilingual UI & Documentation Consistency:
- Standardized English as primary language across homesite manuals with zero Vietnamese residual text.
- Replaced Mermaid diagram with Unicode box-drawing raw text block on documentation site.
- Canonical language selector ordering (
en,ja,ko,vi) without hardcoded bias. - Added full localization for desktop sidebar navigation ("Show more" / "Show less" and collapse toggles).
Distribution
- Version Alignment: Aligned release version strings to
0.5.5across core runtime, UI clients, manuals, and Cloudflare R2 distribution manifests.
0.5.4 — 2026-09-17
Added
- Version-Partitioned Object Storage & Cloudflare R2 Distribution Architecture:
- Implemented version-partitioned binary storage under
alpha/vX.Y.Z/across all release workflows (release-windows.yml,release-macos-arm.yml,release-macos-intel.yml,release-linux.yml, andrelease-all.yml). - Added dedicated snapshot manifest generation (
alpha/vX.Y.Z/latest.json) preserving historical release states. - Maintained top-level
alpha/latest.jsonpointer manifest withno-cacheheader for zero-lag live OTA updater detection and homesite download resolution.
- Implemented version-partitioned binary storage under
- Windows Release Pipeline Hardening:
- Eliminated silent
continue-on-errormasking on Windows runner deployment. - Added automated CLI environment provisioning for
ghandawstools on Windows self-hosted and cloud runners. - Fixed cross-platform directory separator traversal in bundle collection.
- Eliminated silent
Distribution
- Version Alignment: Aligned release version strings to
0.5.4across core runtime, UI clients, manuals, and Cloudflare R2 distribution manifests.
0.5.3 — 2026-09-17
Added
- Flexible Runner Environment for macOS Intel CI/CD:
- Added runner environment selection (
self-hostedvsgithub-hostedmacos-13) to.github/workflows/release-macos-intel.ymland unified multi-platform release.github/workflows/release-all.yml. - Enables zero-quota local execution on dedicated Mac Pro runners while preserving cloud fallback elasticity on GitHub Actions.
- Added runner environment selection (
Distribution
- Version Alignment: Aligned release version strings to
0.5.3across core runtime, UI clients, manuals, and Cloudflare R2 distribution manifests.
0.5.2 — 2026-09-17
Added
- Dual-Destination Edge Distribution & D1 Catalog Sync (ADR-043, Milestone 32):
- Deployed
release_artifactsedge metadata catalog on Cloudflare D1 with secure management token verification (X-Release-Secret). - Added CLI synchronization tool (
scripts/register-release-artifacts.mjs,pnpm run release:sync-d1) supporting atomic dual-sync from Cloudflare R2 to D1. - Extended Cloudflare Worker with authenticated ingestion
POST /v1/releases/artifactsand public distribution endpoints (/v1/releases/latest,/v1/releases/download/:platform). - Codified R2 bucket storage hygiene and automated D1 registration across all GitHub Actions release workflows (
release-*.yml).
- Deployed
Distribution
- Version Alignment: Aligned release version strings to
0.5.2across core runtime, UI clients, manuals, and Cloudflare R2 distribution manifests.
0.5.1 — 2026-09-17
Fixed
- Hybrid Scanned PDF OCR Adapter Hardening: Enhanced explicit memory buffer typing and bounds safety in scanned PDF text extraction adapter (
src-tauri/src/context/adapters/pdf.rs).
Distribution
- Version Alignment: Aligned release version strings to
0.5.1across core runtime, UI clients, manuals, and Cloudflare R2 distribution manifests.
0.5.0 — 2026-09-16
Added
- Modern Pro-Desktop UI Core & Tailwind CSS Migration: Complete transformation of the UI system to Tailwind CSS with semantic tokens, full dark/light theme support, and shadcn-vue primitives (
AppShell,ProjectStudio,Tabs,Dialog,DropdownMenu). - Studio Resizable Panes & Workspace Ergonomics: Integrated draggable splitters (
ResizablePanelGroup) across File Tree, Chat, and Deliverable Viewers with persistence and zero flicker. - Headless Document Core & Doc-Ops Mutation Engine (ADR-041): Rust canonical document mutations with atomic checkpoint snapshots (
.revisions/), instant rollbacks, and visual diff reviews (DiffReviewBar). - Interactive Spreadsheet Viewport & Co-Editing: Viewport windowing IPC streaming for massive spreadsheets with inline editing intent emission, formula bar (
fx), multi-sheet tabs, and cell diff highlighting. - High-Fidelity Document Viewers Suite: Native rendered and raw source toggle projections for Markdown, Word (
.docx), PowerPoint (.pptx), HTML, and Vector PDF documents with clean unified Pro-Desktop header bars. - Office Fidelity, Editable Source & Native Context Menu: Direct file inspection, desktop OS app launching, clipboard copying, and native context menu suppression in Tauri desktop runtime.
- Hybrid Scanned Document Ingestion & Multimodal Vision Engine (ADR-042): Scanned PDF OCR extraction via Apple Vision / Rust heuristics with automatic fallback and grounded reasoning guardrails.
- Delivery Channels & Local Folder Connector: Bi-directional file dispatching with Local Folder Inbound connector, Telegram outbound file routing, and resilient MIME resolution.
- Fully Responsive Feedback & Support Modal: Roomy responsive grid, sentiment rating strip with multiline truncation safeguards, and compact touch-friendly mobile layouts.
- Complete Four-Locale Localization: Harmonized translation coverage across English, Vietnamese, Japanese, and Korean across all panels, settings, and documentation.
- Closed-Loop Resolution: Formally resolves and closes GitHub issues #8 and #9 delivered in the v0.5.0 milestone (closes #8, closes #9).
Quality
- 465 Vitest unit tests passing across 73 suites (100%).
- 309 Rust unit and integration tests passing (100%).
- 0 TypeScript compiler errors (
vue-tsc --noEmit). - Clean VitePress documentation build (
pnpm site:build).
0.4.23 — 2026-09-13
Added
- Google Drive Native Docs Export Engine (TASK-111): Google Sheets (
application/vnd.google-apps.spreadsheet) are automatically exported to.xlsx(OOXML) format via the Drive export API; Google Docs (application/vnd.google-apps.document) are automatically exported to.pdf. Eliminates HTTP 403 Forbidden errors that previously blocked native Workspace file downloads. - Checksum Deduplication for Exported Files (TASK-111): Exported files lack Drive MD5/size metadata; deduplication now compares local file modification time against remote
modifiedTimeto prevent redundant re-downloads. - Auto-ingest Exported Spreadsheets (TASK-111): Exported
.xlsxfiles are automatically loaded into the project's.analytics.dbviaload_spreadsheet_into_tablefor immediate analysis. - Storage Reactivity & Instant File Tree Updates (TASK-111):
sync_pipeline_bindingandsync_account_pipelinesnow re-index theproject_filesSQLite table viaresync_files_in_storageand emitproject:files-updatedimmediately after sync — files appear in the SOURCE DOCUMENTS pane without requiring an app reload. - On-Demand Google Drive Sync Badges (TASK-112):
CloudImportModalnow displays an⚡ On-Demand Sync & 08:00 Schedulebadge and informational description explaining the governed on-demand fetch model across all 4 locales (en/vi/ja/ko). - Transparent Sync Progress & Feedback (TASK-112): The "Save & Sync Folder Rule" button now shows a
mdi:loadingspinner with thecloud_saving_and_syncinglabel while syncing. On success, a toast displays the exact number of files fetched and bytes transferred. On failure, a clear warning toast shows the actionable error message — replacing the previous silentcatch {}. - Quick Sync All-Sources Button (TASK-112): SOURCE DOCUMENTS pane header now shows a dedicated quick-sync button with
dossier_quick_sync_tooltip("Sync all data sources (Google Drive & Telegram)") that triggers synchronous fan-out across all active Google Drive and Telegram pipeline bindings. - Hermetic Export Test (TASK-111):
test_google_drive_export_spreadsheet_to_xlsxadded toservices::connectors::testswith an in-process mock HTTP export server validating the full Sheets →.xlsxexport and deduplication flow.
Quality
- 359 Rust unit + integration tests passing (100%).
- 300 Vitest tests passing across 46 suites (100%).
- 0 TypeScript errors (
vue-tsc --noEmit). - Clean VitePress documentation build (
pnpm site:build).
0.4.17 — 2026-09-10
Added
- Milestone 14: Telegram Multi-Group Operations & Rule-Based Workspace Organizer (ADR-033)
- Telegram Bot Long Polling Engine: Zero-port local sync directly inside Tauri Rust runtime (TASK-79)
- Multi-Group Rule Router: Deterministic mapping of Telegram departmental chats to project zones (e.g. Accounting to
data/accounting, Operations toworkings/operations) with automated SQLite table loading and vector memory chunking (TASK-79) - Interactive Chat Discovery: One-click "Scan Active Chats" probe resolving numerical Telegram Chat IDs into group names (TASK-79, TASK-80)
- Multi-Group Configuration UI: Group-to-Folder mapping table, presets, auto-ingestion toggles in ConnectorSetupModal and ProjectConnectorsTab (TASK-80)
- Two-Tier Connector Architecture: Promoted Telegram & Google Drive to Core Global Connectors; demoted Zalo OA to Regional Extensions (Vietnam) (TASK-81)
- Hermetic Telegram Mock Integration Suite: End-to-end multi-group sync, deduplication, and sandbox traversal test harness (TASK-82)
0.4.16 — 2026-09-10
- External Connectors & Sandboxed Sync Pipeline (TASK-73, TASK-74, ADR-032, closes #6):
- Introduced local-first external connector runtime architecture supporting Google Drive and Zalo Official Account (OA).
- Stored sensitive OAuth tokens, client secrets, and refresh tokens strictly in OS Keychain (
connector:<id>), ensuring zero token leakage in SQLite or plaintext configuration. - Implemented Google Drive Connector with automatic token refresh, folder-scoped querying, stream downloading into
<project_root>/connectors/google_drive/, path traversal defense guards, and MD5/SHA-256 checksum deduplication skipping unchanged files with 0 bytes transferred. - Implemented Zalo OA Connector with OpenAPI OAuth refresh, transactional message attachment querying, download streaming into
<project_root>/connectors/zalo/, and size/hash deduplication. - Recorded detailed audit trails for all sync operations in
connector_sync_logstable (status, files fetched, bytes transferred, duration, per-file actions).
- Rule-Based Auto-Ingestion Router & Persistent Knowledge UI State (TASK-75, ADR-032):
- Implemented automated rule-based file ingestion router dispatching synced files from
connectors/into designated project zones:- Spreadsheets (
.xlsx,.xls,.csv,.tsv) $\rightarrow$data/<filename>and automatically parsed and loaded into analytical SQLite tables inworkings/.analytics.db. - Documents (
.pdf,.docx,.md,.txt) $\rightarrow$context/<filename>and chunked intosemantic_memoriesfor grounded semantic retrieval. - Images (
.png,.jpg,.jpeg) $\rightarrow$workings/receipts/<filename>.
- Spreadsheets (
- Audited and persisted all ingested sources into SQLite
project_ingested_sourcestable. - Fixed Knowledge UI Button Reset Bug: persisted
source_idintoproject_ingested_sourcesacross project switches inProjectChat.vue, permanently restoring green "Ingested" (Đã lưu) state. - Added real-time Tauri IPC notification event
project:file_ingested.
- Implemented automated rule-based file ingestion router dispatching synced files from
- Scheduled Daily Executive Dispatch Engine (TASK-76, ADR-032):
- Built lightweight in-tree scheduler running inside single-process
tauri::async_runtime::spawnwith zero cron daemons or node sidecars. - Implemented 5-step automated executive dispatch sequence: (1) sync all active connectors, (2) auto-ingest pending files into project zones, (3) execute agent reasoning in
AgentMode::Exec, (4) promote draft deliverables fromworkings/drafts/tooutput/with companion vector.pdfauto-compilation, (5) trigger desktop notification eventproject:scheduled_run_completed. - Implemented run-once-per-day idempotency tracking via
project_schedule_last_run:<project_id>with 24-hourHH:MMtime matching. - Added Tauri IPC commands:
get_project_schedule,set_project_schedule, andtrigger_scheduled_run_now.
- Built lightweight in-tree scheduler running inside single-process
- Connector Management & Sync Status UI (TASK-77, ADR-032):
- Built
ConnectorSetupModal.vuewith tabbed selector for Google Drive and Zalo OA, credential reveal/hide toggles, diagnostic "Test Connection" button, and OS Keychain persistence. - Built
ProjectConnectorsTab.vuefeaturing connector cards (status pills, folder/OA ID, filters, last synced time, "Sync Now" with spinning state, "Configure", "Delete"), Daily Schedule Card (enable toggle, time picker 24h, playbook selector dropdown, custom dispatch prompt, "Save Schedule" and "Run Now" triggers), and Recent Sync Activity table. - Integrated
ProjectConnectorsTab.vuedirectly intoProjectStudio.vueworkspace tab bar. - Added complete localization strings across English, Vietnamese, Japanese, and Korean.
- Built
- E2E Connector QA Suite & Integration Verification (TASK-78, Milestone 13 Complete):
- Created comprehensive hermetic integration test suite
src-tauri/tests/connector_tests.rs:test_google_drive_e2e_sync_and_deduplication: Verified mock Google Drive sync, landing inconnectors/google_drive/, audit logging, and secondary syncskipped_unchangedassertion with 0 bytes transferred.test_zalo_oa_attachment_ingest: Verified mock Zalo OA transaction attachment fetch, local receipt storage, and hash deduplication.test_rule_based_auto_ingestion_routing: Verified automatic routing of.xlsxintodata/and table loading in.analytics.db,.pdfintocontext/with semantic chunks, and.pngintoworkings/receipts/.test_scheduled_dispatch_execution_flow: Verified daily time validation, run-once-per-day idempotency, mock execution inAgentMode::Exec, and deliverable promotion tooutput/with companion.pdf.
- Verified 100% test pass rate across 313 Rust tests (296 lib + 17 integration tests), 254 Vitest tests (36 suites), 0 TypeScript errors, and clean VitePress build.
- Created comprehensive hermetic integration test suite
- Version Alignment:
- Synchronized version
0.4.16across the authoritative 16-file release checklist.
- Synchronized version
0.4.15 — 2026-09-10
- Bidirectional Office Fidelity & Visual Mirroring (TASK-70, ADR-031):
- Upgraded
excel_writerwith professional C-Suite design presets: Corporate Navy header fills (#1F4E79), bold white typography, subtle borders, freeze panes (row 1 pinned), auto-fitted column widths clamped between 12 and 45 characters, and visible gridlines. - Enhanced number formatting engine with native support for accounting currency (
$#,##0,$#,##0.00) and percentages (0.0%,0.00%). - Upgraded
pptx_writerwith 16:9 widescreen layout (12192000 x 6858000EMUs) and executive KPI callout cards featuring light slate container accents (#F8FAFC), subtle borders (#CBD5E1), 36pt bold figure typography, and color-coded delta indicators (Emerald Green#16A34Afor positive gains and Crimson Red#DC2626for negative deltas).
- Upgraded
- In-App Formula Bar (
fx) & Cell Inspector UI (TASK-68, ADR-031):- Added pinned In-App Formula Bar (
fx) inSpreadsheetViewer.vuewith active cell coordinate box (A1,C10), stylized italic boldfxbadge, and formula/value inspection input. - Added active cell selection state highlighting clicked cells with high-visibility primary outline.
- Added "Show Formulas" view mode toggle and global shortcut (
Ctrl + ~/Cmd + ~), revealing raw formula strings and subtle tinted styling across all formula cells. - Localized formula inspection controls across English, Vietnamese, Japanese, and Korean.
- Added pinned In-App Formula Bar (
- Formula Graph Engine & Grounded Agent Reasoning (TASK-67, TASK-69, ADR-031):
- Enhanced OpenXML streaming parser (
xlsx_zip.rs) to extract<f>...</f>formula tags into structuredSpreadsheetCellmodels without discarding formula logic. - Implemented formula-aware Markdown table rendering (
render_sheet_markdown) enriching cells with[fx: <formula>]annotations and generating automatic### 📐 Formula Dependency Graphsections. - Codified Section 16 ("Spreadsheet Formula Integrity & Dependency Graph Reasoning") into agent planning instructions across all cognitive modes (
Auto,Exec,Ask,Study).
- Enhanced OpenXML streaming parser (
- Golden Benchmark Suite & Office Turing Test QA (TASK-71, Milestone 12 Complete):
- Created comprehensive hermetic integration test suite
src-tauri/tests/office_roundtrip_tests.rs:test_excel_roundtrip_formula_ast_preservation_and_styling: Verifies mathematical and formula AST invariance across 3-sheet corporate financial models, ensuring 100% of formulas are preserved with leading=, values match, and freeze panes, column widths, and styles remain intact.test_powerpoint_roundtrip_widescreen_and_kpi_cards: Verifies OpenXML slide containers, 16:9 widescreen layout dimensions, KPI card shapes, and semantic extraction viaPptxAdapter.
- Verified 100% pass across 285 Rust tests, 223 Vitest tests, 0 TypeScript errors, and clean VitePress build.
- Created comprehensive hermetic integration test suite
- Version Alignment:
- Synchronized version
0.4.15across the authoritative 16-file release checklist.
- Synchronized version
0.4.14 — 2026-09-10
- Dynamic Edge Updater Protocol & Architecture (TASK-62, TASK-63, ADR-030):
- Deployed dynamic Tauri v2 auto-updater edge route
GET /v1/update/:target/:current_versionon Cloudflare Workers backed by D1 (release_artifacts), returning HTTP 200 with JSON payload when updates exist or clean HTTP 204 No Content when up-to-date. - Implemented atomic CI artifact registration endpoint
POST /v1/releases/artifactwith cryptographic Bearer auth, upserting multi-platform binaries without file locks or race conditions. - Preserved backward-compatible monolithic manifest
GET /v1/releases/latest.jsondynamically aggregated across active platform builds. - Hardened desktop client updater (
commands/updater.rs) to gracefully intercept missing platform fallback errors and 204 responses, eliminating false-positive error modals.
- Deployed dynamic Tauri v2 auto-updater edge route
- Two-Stage Deliverable Lifecycle & Draft Finalization (TASK-64, closes #5 Part 1):
- Enforced two-stage deliverable progression: exploratory and preliminary drafts ("nháp", "tính thử", "draft", "sơ bộ") are routed exclusively to
workings/drafts/<filename>. - Added strict path guard preventing unauthorized preliminary writes directly into client-facing
output/. - Added Executive Draft Review Card in
ProjectChat.vuewith branded document icons, live preview, and one-click "Chốt & Xuất Bản Chính Thức" action promoting approved drafts intooutput/with companion vector.pdfcompilation. - Added draft artifact tracking in
RunCheckpointpreserving draft state across multi-step execution interruptions.
- Enforced two-stage deliverable progression: exploratory and preliminary drafts ("nháp", "tính thử", "draft", "sơ bộ") are routed exclusively to
- C-Suite Analytical Depth Engine for Excel & PowerPoint (TASK-65, closes #5 Part 2):
- Codified Anti-Skeleton Protocol in agent planning instructions and system prompts: mandated interconnected 3-sheet architecture for financial workbooks (
Assumptions & Drivers,Financial Model P&Lwith 15-20+ granular rows, andCash Flow & Sensitivity). - Mandated 5-slide C-suite narrative architecture for presentations (
1: Strategic Thesis,2: Problem & Context,3: Unit Economics & KPI Cards,4: Operational Matrix,5: Governance & Milestones). - Added runtime density heuristics in
ExcelWriteToolandPptxWriteToolwarning against skeletal single-sheet tables or under-developed slide decks.
- Codified Anti-Skeleton Protocol in agent planning instructions and system prompts: mandated interconnected 3-sheet architecture for financial workbooks (
- CI Modernization & Version Alignment:
- Modernized all 5 platform release workflows with automated edge artifact registration.
- Synchronized version
0.4.14across the authoritative 16-file release manifest.
0.4.13 — 2026-09-09
- The Virtual Cabinet 3-Stream Orchestrator & Run Checkpoint Engine (TASK-60, TASK-61):
- Implemented run state checkpointing and automatic resumption engine, allowing interrupted multi-step agent executions to resume deterministically without data loss (closes #2).
- Engineered "The Virtual Cabinet" 3-stream orchestrator managing lifecycle transitions across Source Documents, Assistant's Workbench, and Final Deliverables (closes TASK-60).
- Hardened guardrail tool invocations with auto-spool fallback and secure asynchronous telemetry dispatch (closes #1, closes #4).
- Added end-to-end integration test suite verifying checkpoint resume, panic recovery, and virtual cabinet stream integrity (closes TASK-61).
- Version Alignment:
- Aligned release version strings to
0.4.13across core runtime, UI clients, manuals, and Cloudflare R2 distribution manifests.
- Aligned release version strings to
0.4.12 — 2026-09-09
- Release Governance Standard Operating Procedure & 16-File Protocol:
- Codified the authoritative Release Governance SOP mandating atomic synchronization across all 16 configuration, manual, and runtime files for every release cycle.
- Embedded the Mandatory Release Protocol and 16-File Checklist into the root developer contract (
AGENTS.md) and documentation index (docs/INDEX.md).
- Version Alignment:
- Aligned release version strings to
0.4.12across core runtime, UI clients, manuals, and Cloudflare R2 distribution manifests.
- Aligned release version strings to
0.4.11 — 2026-09-09
- Native Crash Resilience & Panic Tombstone Recovery (ADR-028, Milestone 9):
- Implemented zero-allocation synchronous panic hook in Rust (
security/panic.rs) writing structured, privacy-scrubbed crash tombstones (last_crash.json) during fatal process aborts. - Added startup crash recovery service (
services/crash_recovery.rs) to detect prior abnormal exits, dispatch redacted telemetry to the edge buffer, and purge tombstones from disk. - Sanitized panic backtraces and messages using linear regex masking to guarantee zero credential or user path leakage in crash logs.
- Added comprehensive integration test suite (
tests/crash_recovery_tests.rs) covering panic hook capture, mock server telemetry dispatch, corrupted tombstone purge, and crash payload fidelity.
- Implemented zero-allocation synchronous panic hook in Rust (
- Version Alignment:
- Aligned release version strings to
0.4.11across core runtime, UI clients, manuals, and Cloudflare R2 distribution manifests.
- Aligned release version strings to
0.4.10 — 2026-09-09
- Windows CI/CD Hygiene & Self-Hosted Artifact Isolation:
- Added aggressive cleanup of previous bundle artifacts (
win-artifactsandsrc-tauri/target/.../bundle) in.github/workflows/release-windows.ymlto prevent artifact contamination across self-hosted runner cycles.
- Added aggressive cleanup of previous bundle artifacts (
- Updater Sanitization & Infinite Loop Prevention:
- Enhanced
scripts/update-latest-json-r2-local.mjsto verify platform versions against rootjson.version. - Automatically purges platform entries from updater manifest when platform version does not match root version, preventing infinite update download loops.
- Enhanced
- Version Alignment:
- Aligned release version strings to
0.4.10across core runtime, UI clients, manuals, and Cloudflare R2 distribution manifests.
- Aligned release version strings to
0.4.9 — 2026-09-09
- Automated Feedback & Closed-Loop Issue Triage (ADR-027, Milestone 8):
- Added 1-click incident reporting button in
ProjectChat.vuewith automated context capture (active playbook, failed tool, error classification, redacted log excerpts). - Implemented client-side privacy redactor in Rust (
services/telemetry_redaction.rs) that scrubs IPv4/IPv6, email addresses, JWTs, bearer tokens, and local file system paths (/Users/...,C:\...) before transmission. - Implemented offline SQLite spooling queue (
user_feedbacktable) to guarantee zero report loss during network dropouts. - Deployed Cloudflare Edge Buffer Worker and D1 Database (
amba-feedback-db) athttps://api.ambadesk.com/v1/feedback. - Added SHA-256 defect fingerprinting and multi-client deduplication with zero Git thrashing.
- Added maintainer autonomous triage endpoint
GET /v1/triageand CLI triage tool (scripts/triage-telemetry.mjs) to generate daily decision dossiers for maintainers. - Published Maintainer Telemetry API reference (
docs/API/FEEDBACK_TELEMETRY_API.md) and Issue Triage SOP (docs/DEVOPS/ISSUE_TRIAGE_AND_INCIDENT_SOP.md).
- Added 1-click incident reporting button in
- Repository Governance & Cleanliness:
- Removed legacy sprint documentation (
docs/SPRINTS/) in favor of.agent/PLAN/milestone governance. - Synchronized Master Timeline Index and Kanban strict protocol across all agent guidelines.
- Removed legacy sprint documentation (
0.4.8 — 2026-09-09
- Site Core Concepts refresh & native Mermaid diagrams:
- VitePress now renders Mermaid fences as interactive diagrams (light/dark theme, zoom, copy source) instead of Shiki code blocks.
- Cognitive Modes documentation covers the 5-mode lifecycle (Auto, Ask, Study, Plan, Exec), the in-tree artifact factory, and 1+1 deliverable packs across English, Vietnamese, Japanese, and Korean.
- Security architecture diagrams are localized in all four languages, including Linux Secret Service and encrypted SQLite keychain fallback.
- Mermaid diagrams keep native readable type, expand clipped
foreignObjectlabels, and use compact vertical flowcharts so the last node is fully visible.
- Homepage app-icon parity:
- Navbar, favicon, hero, and footer now use the desktop 3D “A” icon (
src-tauri/icons/icon.png) instead of the legacy gold-star SVG.
- Navbar, favicon, hero, and footer now use the desktop 3D “A” icon (
- Executive Dossier commercial rebrand (ADR-026):
- Homepage, playbook showcase, and user-manual concept pages now present the 3-chamber Executive Dossier (Source Documents, Assistant's Workbench, Final Deliverables) across English, Vietnamese, Japanese, and Korean.
0.4.7 — 2026-09-08
- Business Deliverable Pack & Rigorous Verification Gate (ADR-025):
- Enforced mandatory 1+1 Deliverable Pack (Structured Model + Strategic Narrative) across autonomous playbooks.
- Implemented OpenXML sheet count verification gate in runtime runner to ensure generated workbooks meet declared structural depth.
- Added automatic companion vector PDF generation (
auto_compile_pdf_sibling) alongside Markdown briefings inoutput/. - Hardened deliverable extraction to filter out hypothetical recommendations or example file references.
- Brand Asset Refresh:
- Refreshed high-resolution application icons (
.icns,.ico,.png, and mobile icon suites).
- Refreshed high-resolution application icons (
- Version Alignment:
- Aligned release version strings to
0.4.7across core runtime, UI clients, manuals, and Cloudflare R2 distribution manifests.
- Aligned release version strings to
0.4.6 — 2026-09-07
- Homepage & Site Component Overhaul:
- Refactored
HomeFooter.vuewith streamlined layout and improved visual hierarchy. - Enhanced
PlaybookShowcase.vuewith richer content and improved interactivity. - Added
ReleaseDownloads.vuecomponent for structured release asset presentation. - Expanded
custom.csswith additional responsive styles and visual polish. - Updated hero content in all locale index pages (
en,vi,ja,ko).
- Refactored
- Version Alignment:
- Aligned release version strings to
0.4.6across core runtime, UI clients, manuals, and Cloudflare R2 distribution manifests.
- Aligned release version strings to
0.4.5 — 2026-09-07
- In-Tree Artifact Factory Industrialization & Roundtrip Harness (ADR-024):
- Added bi-directional roundtrip test suite (
tests/factory_roundtrip_tests.rs) verifying content invariance for native DOCX, PPTX, and Excel workbooks. - Implemented parameter tolerance across all factory tools: gracefully parses stringified JSON, 1D flat arrays, key-value rows, and loose LLM payload formats.
- Enhanced phantom-write guardrail: automatically intercepts script generation and guides the agent to invoke native artifact writers directly.
- Added bi-directional roundtrip test suite (
- In-App Factory Self-Test & Diagnostic Telemetry:
- Upgraded native diagnostic command
run_diagnostic_selftestindiagnostics.rsto execute live end-to-end generation and integrity verification for.xlsx,.docx, and.pptxfiles. - Added frontend diagnostics API (
runFactorySelftest) and verified with unit tests.
- Upgraded native diagnostic command
- Runtime Sandboxing & Relative Path Normalization:
- Automatically resolves relative paths against
scope.root_directoryfor deliverable generation across all execution modes.
- Automatically resolves relative paths against
- Version Alignment:
- Aligned release version strings to
0.4.5across core runtime, UI clients, manuals, and Cloudflare R2 distribution manifests.
- Aligned release version strings to
0.4.4 — 2026-09-07
- Commercial Footer Architecture & Feedback Bridge (
ambadesk.com):- Overhauled
HomeFooter.vuewith Architecture & Feedback column linking directly to Project Harness (3-zone sandbox), Cognitive Modes, Live Release Manifest, and direct mail feedback bridge. - Purged all remaining third-party repository links from Privacy Policy (
privacy.md) and Terms of Service (terms.md), standardizing contact onambadesk.comand[email protected]. - Documented Cloudflare Pages deployment configuration in
site/DEPLOYMENT.md.
- Overhauled
- Version Alignment:
- Aligned release version strings to
0.4.4across core runtime, UI clients, manuals, and Cloudflare R2 distribution manifests.
- Aligned release version strings to
0.4.3 — 2026-09-07
- In-Tree Artifact Factory & Autonomous Autopilot Suite (ADR-021, ADR-023):
- Native DOCX compiler (
docx_writer.rs) for corporate documents, contracts, and administrative briefs with zero Python or LibreOffice dependencies. - Native PPTX compiler (
pptx_writer.rs) for executive slide decks with zero external runtime dependencies. - Dual-World filesystem bridge (
workings/working directory vs.output/user-facing deliverables) with auto-compilation and deliverable honesty guardrail.
- Native DOCX compiler (
- Hermetic SQLite-Vec Hybrid Engine & Dense Vector Retrieval (ADR-022):
- Embedded native
sqlite-vecextension (V009__sqlite_vec_memory.sql) enabling C-speed SIMD vector cosine distance and KNN search directly inside SQLite. - Hybrid RRF (Reciprocal Rank Fusion) combining keyword search with dense vector embeddings in
hybrid_engine.rs.
- Embedded native
- Interactive Code Block & Mermaid Diagram Viewers:
- Added
CodeBlockViewer.vueandCodeDocumentViewer.vuewith syntax highlighting, line numbers gutter, and 1-click copy. - Added client-side
MermaidDiagram.vuewith SVG vector rendering, error boundary, and raw source switcher.
- Added
- Homepage & Documentation Parity (
ambadesk.com):- Upgraded commercial landing page hero, feature showcase, and localized footer (
HomeFooter.vue). - Added Privacy Policy (
privacy.md) and Terms of Service (terms.md) across all 4 locales (en,vi,ja,ko). - Fixed CI/CD release updater pipeline across macOS, Windows, and Linux.
- Upgraded commercial landing page hero, feature showcase, and localized footer (
0.4.2 — 2026-09-06
- Built-In Fixture Diagnostic Self-Test (TASK-23):
- Added native Rust diagnostic command
run_diagnostic_selftestinsrc-tauri/src/commands/diagnostics.rsrunning a hermetic end-to-end reconciliation fixture locally (SQLite table ingestion, $50 discrepancy detection,.xlsxspreadsheet writing, vector.pdfcompilation, and sandbox path traversal guardrail). - Verifies host OS compatibility with zero external LLM API keys and 0 cloud token spend.
- Added interactive System Health Self-Test card in Settings (
SettingsPanel.vue) with 4-point live status checkmarks, execution duration (ms), and OS telemetry across all 4 locales (en,vi,ja,ko).
- Added native Rust diagnostic command
- Tool Display Localization & Translation Badges:
- Implemented internationalized display names, descriptions, and argument summaries for built-in tools across English, Vietnamese, Japanese, and Korean.
- Added
LocaleTranslateBadge.vueto indicate localized system tools cleanly in the UI.
- Linux Installation Documentation & Secret Service Parity (TASK-24):
- Added dedicated Linux installation guides (
.deb, standalone.AppImage) tosite/manual/getting-started/installation.mdacross all 4 locales (en,vi,ja,ko). - Documented Linux system requirements (
libwebkit2gtk-4.1-0,libssl3) and FreeDesktop D-Bus Secret Service integration with automatic fallback to local encrypted SQLite storage for minimal window managers (i3, sway, bspwm). - Aligned release version strings across client UI (
FeedbackModal.vue), locales, andsite/package.jsonto0.4.2.
- Added dedicated Linux installation guides (
0.4.1 — 2026-09-05
- Dedicated Multi-Platform CI/CD Pipeline & Architecture Independence:
- Separated release workflows into 4 independent pipelines: macOS Intel (
release-macos-intel.yml), macOS Apple Silicon (release-macos-arm.yml), Windows (release-windows.yml), Linux (release-linux.yml), and a unified All-in-1 orchestrator (release-all.yml). - Solved cross-compilation resource starvation on memory-constrained Intel runners by decoupling Apple Silicon builds to native ARM cloud environments.
- Eliminated interactive Keychain authorization and cache prompts on self-hosted macOS runners with automated headless keychain lifecycle and restored default keychain.
- Core framework production hardening and performance optimizations.
- Separated release workflows into 4 independent pipelines: macOS Intel (
0.3.9 — 2026-09-04
- Smart Multi-Platform Manifest Merge & Accurate Portal Download Links:
- Upgraded
scripts/update-latest-json-r2-local.mjsto fetch and merge existing remote platforms from Cloudflare R2, ensuring independent self-hosted builds never overwrite or wipe out other OS platform binaries. - Fixed portal download matrix (
ReleaseDownloads.vue) to resolve exact live versions per platform, preventing 404 errors for platforms pending independent build.
- Upgraded
0.3.8 — 2026-09-04
- Dedicated Multi-OS Self-Hosted Pipelines (macOS, Linux, Windows):
- Added dedicated macOS Self-Hosted release workflow (
release-macos-self-hosted.yml) running on[self-hosted, macOS, X64]with Intel x64 and cross-compiled Apple Silicon aarch64 support, Apple code signing, and notarization. - Added dedicated Linux / Ubuntu Self-Hosted release workflow (
release-linux-self-hosted.yml) running on[self-hosted, Linux, X64]with.deband.AppImagedistribution. - Decoupled self-hosted flows independently: all 3 OS platforms can now build on private self-hosted infrastructure with 0 GitHub Actions quota minutes consumed and automated Cloudflare R2 artifact synchronization.
- Added dedicated macOS Self-Hosted release workflow (
0.3.7 — 2026-09-04
- Full 4-Language Localization Parity (EN, VI, JA, KO):
- Added full Japanese (
ja— 日本語) and Korean (ko— 한국어) localized dictionaries, matching the commercial portal and user manual documentation (ambadesk.com). - Modularized locale dictionaries into
src/locales/{en,vi,ja,ko}.tsand exportedSUPPORTED_LANGUAGES. - Upgraded
AppShell.vuequick language segmented switcher (EN, VI, JA, KO) andSettingsPanel.vueappearance language cards. - Expanded unit test coverage in
useI18n.spec.tsto verify all 4 languages, dynamic parameter substitutions, and reactive locale switching.
- Added full Japanese (
- History vs Usage Navigation Decoupling & Execution Runs Pagination:
- Separated token analytics and cost tracking into a dedicated Usage (
/usage) view (UsagePanel.vue), while dedicating History (/history) to execution traces and event inspections (HistoryPanel.vue). - Added full pagination (10/25/50 items per page), status and project filtering, and query search for execution history.
- Separated token analytics and cost tracking into a dedicated Usage (
- Capital & Debt Financing Executive Suite:
- Added
capital-debt-financingproject template and runtime system directives for capital structure modeling, debt repayment schedules, and investor pitch deck preparation.
- Added
- Modal Reactivity & Global UI Spacing Standardization:
- Restored teleportation and tab switching reactivity across project configuration modals.
- Standardized fractional padding classes in
main.scss(p-3.5,gap-2.5, etc.) across all screens.
0.3.6 — 2026-09-03
- Portal Download Grid & Unified Action Button Styling:
- Re-designed download table with full grid borders and centralized action buttons.
- Standardized transparent ghost download buttons with hover effects and localized platform-specific labels.
0.3.5 — 2026-09-03
- Portal Download Section UI & Table Formatting Polish:
- Re-architected download matrix table with fixed layout, clean status badges, platform icons, and distinct primary/secondary download button styling.
- Enhanced responsive mobile view and typography across all 4 localized portals.
0.3.4 — 2026-09-03
- Full Multi-OS Download Matrix & Edge Proxy Resolution:
- Upgraded
ReleaseDownloads.vuematrix to directly support all 6 OS binary formats (macOS Apple Silicon, macOS Intel, Windows EXE, Windows MSI, Linux AppImage, Linux DEB). - Added Cloudflare Pages edge proxy
/api/latest.jsonto eliminate CORS issues and optimize client-side release manifest caching.
- Upgraded
0.3.3 — 2026-09-03
- CI Runner Disk Space & Cache Optimization:
- Added pre-build disk freeing step on Ubuntu runners (
ci.yml&release.yml) to prevent runner storage exhaustion. - Standardized on
swatinem/rust-cache@v2across all workflows.
- Added pre-build disk freeing step on Ubuntu runners (
0.3.2 — 2026-09-03
- Commercial Portal & Dynamic Cloudflare R2 Downloads Integration:
- Integrated dynamic
ReleaseDownloads.vuecomponent querying livehttps://r2.ambadesk.com/alpha/latest.jsonfor automatic real-time download resolution. - Complete 4-language VitePress site (
site/) with zero external GitHub references, enterprise business-first positioning, and 9 comprehensive user manual guides. - Added pilot distribution and deployment documentation (
docs/STRATEGY/anddocs/DEVOPS/).
- Integrated dynamic
0.3.1 — 2026-09-03
- Commercial Homepage & Manual Overhaul (Business-First, Zero-GitHub, Full i18n):
- Zero-GitHub Clean Surface: Purged all GitHub repository links, social icons, and release pointers across the entire commercial portal, replacing them with official direct desktop application downloads on
ambadesk.com. - Enterprise Business Target Alignment: Completely re-architected landing page value propositions and FAQ for non-technical enterprise users (CEOs, CFOs, Controllers, Media Agency Leads), focusing on 100% local privacy, zero-hallucination deterministic math, and ready-to-use business playbooks.
- 4-Language Multi-Lingual Architecture: Full VitePress internationalization for English, Vietnamese (
/vi/), Japanese (/ja/), and Korean (/ko/), translating the landing page and all 9 user manual guides and executive playbooks.
- Zero-GitHub Clean Surface: Purged all GitHub repository links, social icons, and release pointers across the entire commercial portal, replacing them with official direct desktop application downloads on
- Template Naming & Plan Review UX Refinements:
- Refined domain template labels and Vietnamese localization strings.
- Formatted Rust codebase according to standard
rustfmtguidelines. - Enhanced document viewer and plan referral card styling.
0.3.0 — 2026-09-03
- Milestone 2 — B2B Enterprise & Deterministic Accounting MCP Architecture:
- Deterministic SQLite Analytical Engine: Built native accounting calculation tools (
accounting_load_file,accounting_sql_query,accounting_reconcile_sheets) enabling 100% deterministic arithmetic aggregation, zero-mental-arithmetic guardrails, and automated invoice/bank reconciliation. - Persistent MCP Server Lifecycle Management: Configured SQLite storage (
V008__mcp_servers.sql), auto-reconnection on application launch, and complete ToolsPanel management controls. - Unified "Job & Brain" Paradigm Across Full Lifecycle: Replaced legacy "Assigned Agent" dropdowns with domain project templates (
executive-command-center,invoice-reconciliation,pnl-analysis,payroll-audit,media-planning-pitch) and hot-swappable cognitive brain models. - Cursor-Style Physical Plan Generation (
workings/plans/): Auto-exports structured plans toplan_{slug}_{hash}.md, displays compactPlanReferralCardin chat, and provides dedicated ⚡ Build / Execute Plan action in the file viewer. - Streamlined Cognitive Modes & Zero Thought-Dumping Clutter: Mode-gated auto-export strictly to
Planmode, eliminating scratchpad clutter inAskandStudymodes. - Calculation Audit Trail: Real-time verified badges, SQL code copying, and returned row counts in the Activity Tray.
- Deterministic SQLite Analytical Engine: Built native accounting calculation tools (
0.2.18 — 2026-09-03
- Context Prefetching & Heuristic Knowledge Distillation Hardening:
- Enhanced context prefetch error handling and adapter robustness in Rust runtime.
- Refined heuristic distillation tag generation and whitespace cleanup across multi-language prompts.
- Fixed unused warning imports in updater and memory IPC commands.
0.2.17 — 2026-08-31
- Automated Cloudflare R2 Deployment Pipeline (
deploy-r2):- Added automated
deploy-r2job in release workflows to sync release bundles,.sigsignatures, and rewrittenlatest.jsondirectly to Cloudflare R2 (https://r2.ambadesk.com/alpha/). - Optimized cache-control policies (
no-cacheforlatest.json, 1-year immutable cache for binaries). - Added
scripts/update-latest-json-r2-local.mjsfor local asset URL rewriting.
- Added automated
0.2.16 — 2026-08-31
- Automated Cloudflare R2 Download URL Rewriting in latest.json:
- Implemented
scripts/rewrite-latest-json-r2.mjsto automatically rewrite asset download URLs inlatest.jsonfrom GitHub releases tohttps://r2.ambadesk.com/alpha/<filename>. - Integrated into both
release-windows-self-hosted.ymlandrelease.ymlworkflows.
- Implemented
0.2.15 — 2026-08-31
- In-App Auto-Update Verification Release:
- Incremented version for end-to-end testing of OTA in-app updater download, signature check, and SQLite WAL-safe restart workflow.
0.2.14 — 2026-08-31
- Dedicated R2 Alpha Updater Endpoint Integration:
- Updated in-app auto-updater endpoint to
https://r2.ambadesk.com/alpha/latest.jsonfor high-availability CDN-accelerated OTA updates.
- Updated in-app auto-updater endpoint to
0.2.13 — 2026-08-30
- In-App Auto-Update Packaging Artifacts & Minisign Key Hardening:
- Configured
bundle.createUpdaterArtifacts: trueintauri.conf.jsonto generate compressed OTA update bundles (.tar.gzand.sigsignatures). - Hardened private key password handling (
TAURI_SIGNING_PRIVATE_KEY_PASSWORD) in release workflows. - Added
.gitignorerule for public/private key pairs (*.key.pub).
- Configured
0.2.12 — 2026-08-30
- Manual Deploy Workflow Dispatch Control:
- Temporarily commented out automatic tag push triggers across release workflows.
- Releases are dispatched manually on-demand from GitHub Actions UI to prevent unwanted quota consumption.
0.2.11 — 2026-08-30
- Windows Self-Hosted Toolchain & Git Bash Hardening:
- Automatically locates and adds Git Bash (
bash.exe) intoGITHUB_PATHon on-premise Windows runners. - Standardized on
actions-rust-lang/setup-rust-toolchain@v1with explicitstable-x86_64-pc-windows-msvctarget enforcement for Windows self-hosted builds.
- Automatically locates and adds Git Bash (
0.2.10 — 2026-08-30
- Dedicated Standalone Self-Hosted Windows Release Workflow:
- Separated self-hosted Windows packaging into a standalone workflow (
.github/workflows/release-windows-self-hosted.yml) that bypasses GitHub-hosted runner quota limitations completely. - Runs directly on on-premise Windows runners (
['self-hosted', 'Windows', 'X64']) with 0 GitHub Actions quota minutes consumed.
- Separated self-hosted Windows packaging into a standalone workflow (
0.2.9 — 2026-08-30
- Self-Hosted Windows Runner Pipeline Integration:
- Added support for dedicated self-hosted Windows runners (
['self-hosted', 'Windows', 'X64']) alongside standard GitHub-hostedwindows-latestrunners. - Interactive platform selection allows dispatching dedicated builds directly to local/on-premise Windows runners while maintaining GitHub Actions standard runners as default for automated releases.
- Added support for dedicated self-hosted Windows runners (
0.2.8 — 2026-08-30
In-App Auto-Update & Over-The-Air (OTA) Release Architecture (ADR-019):
- Self-Updating Without Reinstallation: Desktop app can now check, download, and install updates in-place without requiring the user to re-download
.dmg,.exe, or installer packages manually. - Cryptographic Minisign Verification: Every update payload is cryptographically validated using Ed25519 signatures before execution, safeguarding against unauthorized or tampered binaries.
- Safe Database Restart: Implemented atomic SQLite WAL checkpoint flushing (
PRAGMA wal_checkpoint(TRUNCATE);) before app relaunch to ensure 0 database corruption. User projects (~/AMBA/Projects), local databases, and keychain credentials are 100% preserved across updates. - Interactive Update Modal (
UpdateModal.vue): Displays version change badges, release notes preview, and real-time streaming download progress bar with byte counts and percentage. - Settings Integration: Added manual "Check for Updates" button, last checked timestamp, and auto-check toggle on startup under Settings > Advanced.
- Complete Bilingual Localization: Fully translated in English and Vietnamese.
- 100% Verification: 144 Rust unit tests passing and 94 Vitest tests passing with 0 clippy warnings.
- Self-Updating Without Reinstallation: Desktop app can now check, download, and install updates in-place without requiring the user to re-download
High-Fidelity Excel & Multi-Sheet Preview Engine Hardening:
- Shared OpenXML Relationship Resolution: Unified
read_project_spreadsheet,read_project_docx, andread_project_presentationincommands/projects/readers.rsto reuse the battle-tested shared context adapter engine (parse_xlsx_workbook_from_zip,parse_legacy_spreadsheet_file). - Fixed Sheet Mismatch in Preview: Resolved the critical issue where
workbook.xml.relsrelationship IDs (r:id) were ignored by the preview command, which previously led to sheets being displayed out-of-order and mapped to incorrect worksheet XML files. - Accurate Cell Coordinates & Blank Gap Handling: Replaced split-based cell parsing with exact
r="A1"coordinate positioning, eliminating column left-shifts and alignment corruption. - Support for Multi-Format Spreadsheets: Extended in-app preview support to
.xlsx,.xlsm,.xltx,.xls,.xlsb,.ods,.tsv, and.csv. - 100% Verification: All 136 Rust tests and 84 Vitest tests passing with 0 clippy warnings.
- Shared OpenXML Relationship Resolution: Unified
Master Release Plan Execution & Modular Architecture Hardening (Sprint 37):
Comprehensive Rust Runtime Modularization (Wave 1):
- Split
runtime/execution.rs(3478 lines) intoruntime/execution/(runner.rs,planning.rs,modes.rs,tools.rs,callbacks.rs,streaming.rs,tests.rs). - Split
storage/db.rs(2492 lines) intostorage/db/(mod.rs,migrations.rs,agents.rs,models.rs,conversations.rs,runs.rs,projects.rs,memory.rs,policy.rs,tests.rs). - Split
context/adapters/shared.rsintocontext/adapters/shared/(tables.rs,xlsx_zip.rs,docx_zip.rs,pptx_zip.rs,tests.rs). - Split
tools/pdf_compiler.rsintotools/pdf_compiler/(parser.rs,fonts.rs,rendering.rs,tests.rs). - Split
commands/projects.rsintocommands/projects/(crud.rs,files.rs,readers.rs,watchers.rs,export.rs,tests.rs).
- Split
Ask Mode Knowledge Ingestion & Web Search Enhancement:
- Enabled
web.search,web.fetch, andknowledge.searchinAskmode for general information retrieval. - Added interactive "📖 Study & Ingest Knowledge" button on assistant messages in
ProjectChat.vueto easily transition insightful chat responses into the project's permanent knowledge base.
- Enabled
Release Governance & Open Source Standards (Wave 2 & Wave 3):
- Fixed duplicate ADR numbering by renumbering workspace default directory ADR to
ADR-018. - Added
CONTRIBUTING.mdandCODE_OF_CONDUCT.mdat repository root. - Created GitHub issue templates (
bug_report.md,feature_request.md,security.md) and standard pull request templatePULL_REQUEST_TEMPLATE.md. - Created root
SECURITY.mdand completed full audit report indocs/SECURITY-AUDIT.md.
- Fixed duplicate ADR numbering by renumbering workspace default directory ADR to
Full Test Suite & Quality Verification: All 135 Rust unit tests and 84 Vitest tests passing with 0 warnings on
cargo clippy --all-targets -- -D warnings.Replaced 3-Mode System: Upgraded the previous
Analyze/Draft/Finalizesystem into 4 distinct cognitive modes tailored to professional knowledge workflows:- 🗣️ Ask Mode (
ask): Conversational Q&A, brainstorming, concept explanation. Zero filesystem side effects; file writes, web tools, and knowledge storage are strictly blocked. - 📖 Study Mode (
study): Deep research, reasoning, document inspection, and knowledge discovery from all available sources. Autonomously callsknowledge.storeto ingest facts and domain concepts into the project's long-term memory. Allows writing notes and summaries toworkings/. - 📋 Plan Mode (
plan): Analyzes requirements and produces structured<plan>blocks with numbered steps and deliverable definitions. Writes plan artefacts toworkings/plan.md. Direct writes tooutput/and PDF compilation are blocked. - ⚡ Exec Mode (
exec): Follows the approved plan, reads source files (input/) and working papers (workings/), produces intermediate artifacts, and writes final approved deliverables intooutput/. Full write access, PDF generation, and policy-gated shell enabled.
- 🗣️ Ask Mode (
Strict Rust Runtime Permission Matrix (
runtime/execution.rs): Hard engine-level guards block disallowed tool calls per mode before execution, with explanatory violation messages guiding the model to the appropriate workflow.Backward-Compatible Migration: Automatic deserialization and localStorage migration for legacy mode strings (
"analyze"→Ask,"draft"→Plan,"finalize"→Exec).Initial Mode Selection Wizard (
ProjectCreateModal.vue): Users choose their preferred initial agent mode when creating a new project, with persistent last-used mode per project thereafter.Execute Plan UI Banner & 4-Button Toolbar (
ProjectChat.vue): Replaced the 3-button segmented controller with 4 mode buttons and updated the confirmation banner to "Execute Plan" when structured plans or workings files are ready.Full Bilingual Localization & ADR-012 Update: Added comprehensive English and Vietnamese translations and updated ADR-012. All 134 Rust tests and 84 Vitest tests passing.
Session Clean Up & Semantic Memory Reset Architecture (Sprint 35):
- Granular Session & Memory Management: Added a dedicated Clean Up Session & Memory modal (
ResetSessionModal.vue) across Project Studio and Agent Studio for clean, isolated prompt re-testing. - Customizable Reset Granularity: Users and developers can choose between:
- 💬 Clear Chat Messages: Wipes conversational message history and tool activity in the active session.
- 🧠 Wipe Project Semantic Memory: Erases all auto-stored RAG semantic memories attached to the project (with live entry count preview) to prevent the agent from recalling stale prior context or old instructions.
- ➕ Start New Clean Session: Creates and switches to a fresh new session in one click.
- Memory Panel Clean Up Tools: Added 1-click Clear All Memories in
MemoryPanel.vueto wipe long-term knowledge across all agents/projects. - Backend Storage & IPC Commands: Implemented
clear_project_memories,clear_agent_memories,clear_all_memories,count_project_memories, andreset_sessionwith atomic SQLite execution and 100% test coverage. - Full Bilingual Localization: Added complete English and Vietnamese translations for all reset actions, modals, and notifications.
- Granular Session & Memory Management: Added a dedicated Clean Up Session & Memory modal (
Interactive Agent Clarification & Direction Confirmation (
ask_userFeature — Sprint 34):- Cursor / Antigravity Style Clarification: AI agents can now pause and ask the user structured multiple-choice questions with recommended directions and custom write-ins whenever requirements have multiple paths, ambiguous parameters, or high-impact decisions.
- Non-Blocking Runtime Suspension: Execution loop non-blockingly suspends on
ask_user/ask_question, transitionsRunStatustoawaiting_input, and emitsrun:questionIPC event over an asynctokio::sync::oneshotchannel without occupying background execution threads. - Inline Interactive Question Card (
InteractiveQuestionCard.vue):- Displays bold question prompt and background context block.
- Multiple-choice option cards with
⭐ Recommendedbadges, radio/checkbox selectors, and detailed option descriptions. - Custom write-in input field for freeform guidance.
- "Confirm & Continue" button to resolve question and seamlessly resume the agent's ReAct execution loop.
- Post-submission freeze state showing a neat confirmation checkmark and user note summary.
- Comprehensive Multi-Language & Test Coverage: Added English and Vietnamese localizations, 3 new Rust unit tests (129 total), 5 new Vitest unit tests (74 total), and strict TypeScript typechecking.
Comprehensive Office Document & Data Parsing Architecture (Sprint 33):
- Zero-Copy Streaming SAX XML Engine: Replaced fragile string splitting across all OpenXML parsers with high-performance
quick-xmlevent loops. - High-Accuracy Spreadsheet Engine (
.xlsx,.xlsm,.xltx,.xls,.xlsb,.ods):- Full
xl/sharedStrings.xmlparser supporting rich text<r><t>and standard<si><t>. - Merged cell rectangular expansion (
<mergeCells>) propagating top-left cell values across merge ranges. - Number format resolution (
xl/styles.xml+ standard & custom<numFmts>) for currency ($#,##0.00,₫,€), percentages (0.0%,0.00%), dates, times, comma integers, and decimals. - Multi-sheet discovery and table extraction with configurable row limits.
- Pure-Rust legacy spreadsheet parsing (
.xlsBIFF8/OLE2,.ods,.xlsb) viacalamine.
- Full
- Structured Word Document Engine (
.docx,.docm,.dotx,.doc):- Semantic structure extraction with Markdown headings (
#,##,###), nested bullet/numbered lists (-), bold (**), and italics (*). - Table matrix extraction and Markdown table formatting with pipe escaping.
- Ancillary text stream recovery: headers (
word/header*.xml), footers (word/footer*.xml), and footnotes (word/footnotes.xml). - Legacy Word 97-2003 binary stream parsing (
.doc) viacfbOLE2 reader.
- Semantic structure extraction with Markdown headings (
- Presentation Engine (
.pptx,.pptm,.potx,.ppt):- Slide sequencing and structure extraction (
ppt/presentation.xml,ppt/slides/slide*.xml). - Slide titles, body paragraphs, bullet points, and embedded table matrices.
- Speaker notes extraction (
ppt/notesSlides/notesSlide*.xml). - Legacy PowerPoint binary stream parsing (
.ppt) viacfb.
- Slide sequencing and structure extraction (
- Enhanced RFC-4180 CSV / TSV Engine (
.csv,.tsv,.tab):- Multi-line quoted string support with escaped quotes (
""). - Automatic delimiter detection (
,,;,\t).
- Multi-line quoted string support with escaped quotes (
- Enhanced PDF Context Ingestion (
.pdf):- Tabular line alignment detection heuristics with Markdown table formatting.
- Page boundary annotations (
--- Page N ---) and scanned image detection fallback.
- Unified Agent Tools & UI Previews:
filesystem_readtool routes all office formats to appropriate structured context adapters.- UI preview commands (
read_project_spreadsheet,read_project_docx,read_project_pptx) deduplicated to use shared parsing engine.
- 126 Passing Rust Unit Tests & 69 Passing Vitest Tests: 100% clean test passes with 0 compiler warnings.
- Zero-Copy Streaming SAX XML Engine: Replaced fragile string splitting across all OpenXML parsers with high-performance
Live Loop Streaming & Expandable Activity/Reasoning Tray (Cursor/Antigravity Style):
- Real-Time Step Activity Stream: Upgraded execution loop to stream intermediate model thoughts (
<thought>...</thought>) and live tool invocations (filesystem_read,filesystem_write,web_search,mcp, etc.) into an interactive timeline instead of wiping stream buffers. - Expandable Activity Tray (
AgentActivityTray.vue): Built a sleek, collapsible activity tray inside the assistant chat bubble:- Live pulsing spinner and step counter during execution (
Step 2/8: Reading source files...). - Collapsed summary badge upon completion (
⚡ 3 actions executed • 4 steps • Thought for 4.2s). - Expandable timeline of steps with full thought inspection, tool action cards with status badges (
Success,Running,Error), and 1-click syntax-highlighted JSON payload viewer. - 1-Click Copy full execution activity log.
- Live pulsing spinner and step counter during execution (
- Clean Deliverable Isolation: Main chat bubble renders only final clean Markdown deliverables without leaking raw XML tags or intermediate tool dumps.
- Historical Activity Persistence: Preserved structured step activities in SQLite
messages.metadata["steps"], ensuring past conversations reload the full activity timeline across app restarts. - ADR-017: Documented architecture and design decisions in
docs/DECISIONS/ADR-017-live-loop-streaming-and-expandable-activity-tray.md.
- Real-Time Step Activity Stream: Upgraded execution loop to stream intermediate model thoughts (
Token & Context Management Architecture (Sprint 32):
- Database Migration V007: Added
runs.project_id,model_pricingseed table with 11 default frontier models across OpenAI, Anthropic, and Google, and project budget threshold columns (token_budget_warning_threshold,cost_budget_usd_threshold). - Dynamic Real-Time Pricing Engine: Rust runtime computes accurate USD costs per run and per project dynamically from the
model_pricingdatabase table. - Per-Project Token Isolation & Analytics: Added
get_project_token_analytics,list_model_pricing,update_model_pricing, andset_project_budget_thresholdsTauri IPC commands. - Context Budget Breakdown: Added
calculate_context_breakdownandget_context_breakdowncalculating real-time token saturation across System instructions, User prompt, Project files, Conversation history, and RAG semantic memory. - Interactive In-Studio Context Meter: Added
ContextMeter.vuetoProjectHeader.vuedisplaying live context window utilization and project cumulative cost badges. - Context Inspector Modal: Built
ContextInspectorModal.vuefeaturing a multi-segment progress bar and token usage breakdown by layer with available headroom metrics. - Activity Panel Project Scoping & Quota Alerts: Enhanced
ActivityPanel.vuewith a Project Filter dropdown and warning alert banners when project token or cost thresholds are exceeded. - 116 Passing Rust Tests & 62 Vitest Tests: Verified full test suite with 100% clean passes.
- Database Migration V007: Added
Harness Architecture Hardening & Quality Audit (Sprint 31):
- Comprehensive Multi-Layer Audit: Verified 100% architectural conformance across Rust ReAct execution engine, 3-zone harness file management (
input/,workings/,output/), stagnation detection, autonomous nudging, and sandboxing. - Unified Mode Routing Guard: Extended Rust runtime routing intercept to enforce strict
output/write blocking onpdf_generatein Draft mode alongsidefilesystem_write. - Standalone Execution Scope: Added
projectIdtoStartRunRequestallowing project sandbox scoping for direct API/CLI execution without pre-existing conversations. - Type & Navigation Fixes: Fixed
HistoryView.vuerouting to displayActivityPanel.vue, and addedprojectIdtoConversationdomain model. - 114 Passing Rust Tests: Added new test fixture for
pdf_generatedraft mode output routing.
- Comprehensive Multi-Layer Audit: Verified 100% architectural conformance across Rust ReAct execution engine, 3-zone harness file management (
OpenAI Reasoning & Modern Models Compatibility (
max_completion_tokens):- Replaced legacy
max_tokenswith standardmax_completion_tokensacross all OpenAI Chat Completions requests. - Added native support for OpenAI reasoning models (
o1,o3-mini,o1-mini,o1-preview):- System prompts automatically mapped to the
developerrole. - Omitted custom
temperatureparameters for reasoning models to eliminate 400 Bad Requestunsupported_parametererrors.
- System prompts automatically mapped to the
- Replaced legacy
Dynamic Provider Model Discovery & Custom Model Creation:
- Added live
GET https://api.anthropic.com/v1/modelsfetching infetch_provider_models. - Added custom model ID creation input in Settings for all providers.
- Added live
0.2.7 — 2026-08-24
Apple Developer ID Code Signing & Automatic Notarization Pipeline:
- Integrated full Apple Developer ID code signing into GitHub Actions workflow (
.github/workflows/release.yml) for macOS Apple Silicon (aarch64) and Intel (x86_64). - Automated Apple Notary Service (
notarytool) submission and ticket stapling, eliminating Gatekeeper quarantine blocks and "damaged app" warnings on modern macOS (Sequoia, Sonoma, Ventura). - Configured secure keychain management in CI for
.p12certificates and Apple Team credentials.
- Integrated full Apple Developer ID code signing into GitHub Actions workflow (
Linux Packaging Dependency Fix & CI Speed Boost:
- Updated Debian packaging dependencies in
tauri.conf.jsonto use modernlibayatana-appindicator3-1. - Integrated
swatinem/rust-cache@v2into.github/workflows/release.ymlwith per-target workspace caching, reducing Rust compilation times on CI by ~70-80%. - Added pnpm store caching (
cache: 'pnpm') in GitHub Actions to accelerate Node.js dependency installations. - Standardized NSIS Windows installer languages (
English,Vietnamese).
- Updated Debian packaging dependencies in
Standardized Universal
snake_caseTool Naming Architecture:Replaced dot-notation tool names with standard
snake_case(filesystem_read,filesystem_write,filesystem_glob,pdf_read,pdf_generate,shell_execute,web_search,web_fetch,math_calculate,system_time,system_info,knowledge_store,knowledge_search).100% universal compatibility across all LLM providers (Anthropic Claude
^[a-zA-Z0-9_-]{1,128}$, Google Gemini^[a-zA-Z0-9_]+$, OpenAI, Ollama, DeepSeek).Built-in bidirectional alias fallback in
ToolRegistryandPolicyEngineensuring seamless backward compatibility for legacy packages and prompts.Updated package validator, agent manifests (
packages/examples/), and system prompt planning instructions.Hard 20MB Safety Guard:
- Hard preview limits (
MAX_IN_APP_PREVIEW_SIZE_BYTES = 20MB) enforced in all Rust commands and frontend router to protect system memory and prevent UI freezes when users encounter multi-hundred-megabyte or gigabyte files. - Large files display a dedicated 1-click fallback card to launch in the OS default desktop application or show containing folder.
- Hard preview limits (
Word Document Viewer (
WordDocumentViewer.vue):- Formatted document viewer for
.docxand.docfiles extracting paragraphs, headings (H1-H3), and tables from OpenXMLword/document.xml. - Document statistics (word count, paragraph count, reading time) with 1-click copy and open in Microsoft Word.
- Formatted document viewer for
PowerPoint Presentation Viewer (
PresentationViewer.vue):- Multi-slide deck viewer for
.pptxand.pptwith slide thumbnails sidebar, 16:9 canvas layout, slide navigation controls, and full outline export.
- Multi-slide deck viewer for
Interactive Spreadsheet Viewer (
SpreadsheetViewer.vue):- Multi-sheet workbook navigation (
.xlsx,.xls,.csv,.tsv), real-time keyword filtering, column sorting, pagination, and copy as Markdown table / CSV.
- Multi-sheet workbook navigation (
0.2.3 — 2026-08-22
Smart Multi-Platform Matrix Dispatch & Selective Re-run (
.github/workflows/release.yml)- Added interactive
workflow_dispatchplatform selector: 1-click build all 4 targets simultaneously (all) or trigger individual OS rebuilds (windows,macos-apple-silicon,macos-intel,linux) on demand. - Zero-second skip optimization: skipped platforms exit immediately in 0 seconds without consuming GitHub Actions runner minutes.
- Native
fail-fast: falseresilience: successful OS installer artifacts remain preserved and uploaded to GitHub Draft Releases even if one platform encounters a transient failure.
- Added interactive
WebView Print PDF Export (ADR-016)
- User-facing PDF export now uses the browser's native print pipeline via an isolated print window, guaranteeing visual fidelity with the Markdown preview. Preview and PDF share the same parser (
MarkdownMessage.vue), CSS, fonts, and layout engine. - Typed
PdfOptionsmodel: page size (A4, A5, Letter, Legal), orientation (portrait/landscape), configurable margins, scale, print backgrounds, headers/footers. - Print CSS with standard
@pagerules, page-break control for headings/code/tables, and proper print typography. - Comprehensive regression test fixture suite: 18 Markdown fixtures covering basic, headings, lists, tables, code, blockquotes, links, long documents, images, math, edge cases, and internationalization (Vietnamese, Japanese, Chinese, Korean, Arabic, emoji).
- Rust
PdfExportertypes with platform abstraction (pdf_export.rs): structured errors, cross-platform capability info, serde-compatible options. - 15 new Rust tests (fixture validation + PDF compilation) and 11 new Vitest tests.
- The Rust
printpdf+cosmic-textcompiler remains available for the agent API (pdf.generate), where no WebView is available. - Cross-platform: macOS uses native
WKWebView.printOperationon the isolated print window (window.print()is a no-op in WKWebView); Windows uses WebView2window.print()("Microsoft Print to PDF"); Linux uses WebKitGTKwindow.print()("Print to File"). PDFs are not pixel-identical across platforms because the underlying WebView engines differ. - The print window is a scrollable preview with Print / Save PDF and Close. It does not auto-print. Payload is delivered via Tauri events (
print-ready/print-document), notsessionStorage. - Known limitations: page numbering not supported via CSS (relies on the browser's native print header/footer); the print dialog requires user interaction.
- User-facing PDF export now uses the browser's native print pipeline via an isolated print window, guaranteeing visual fidelity with the Markdown preview. Preview and PDF share the same parser (
Multi-Platform OS Support & Automated Release Pipeline (ADR-015)
- Windows 10/11 Packaging: Configured user-friendly NSIS installer (
.exe) with multi-language setup (English & Vietnamese) and enterprise WiX (.msi) deployment target. - Cross-Platform Release Automation (
.github/workflows/release.yml): Automated 4-way CI/CD build matrix bundling native binaries for Windows x64, macOS (Apple Silicon & Intel), and Linux (.AppImage,.deb). - Platform Architecture Guide (
docs/ARCHITECTURE/platforms.md): Comprehensive specifications covering runtime path normalization, Credential Vault integration across OSes, and local build instructions.
- Windows 10/11 Packaging: Configured user-friendly NSIS installer (
Native vector PDF compiler (ADR-014)
- Export PDF and
pdf.generatecompile markdown to a real vector PDF: selectable Unicode text, embedded subset fonts, tables, code, lists, quotes, links, bookmarks, and local images. - WKWebView print-to-PDF was withdrawn after it hung the app and wrote huge broken files. html2canvas snapshots are no longer on the export path.
- Vietnamese, Japanese, and other OS-available scripts use bundled Noto Sans plus system fonts. CJK megafonts are still not bundled (ADR-009).
- If the compiler fails, export falls back to the cosmic-text JPEG rasterizer.
- Community in-process crates were measured and not adopted:
markdown2pdfdropped Japanese (macOS.ttcfonts); Typst passed Unicode but added ~39 MB to a stripped release binary.
- Export PDF and
Interactive HTML Webpage & Native PDF In-App Document Previews (ADR-013)
- Interactive HTML Viewer (
HtmlDocumentViewer.vue):- Embedded sandboxed webpage rendering for
.htmland.htmdeliverables. - Responsive Viewport Toggles: Desktop (100%), Tablet (768px), and Mobile (375px) device preview frames.
- Dual View Modes: Segmented toggle between Webpage View (Rendered iframe) and Source Code (Raw HTML with syntax styling).
- Interactive Controls: Reload frame, 1-click Copy HTML, Open in Default Browser, and Maximize/Fullscreen mode.
- Embedded sandboxed webpage rendering for
- Native Lightweight PDF Viewer (
PdfDocumentViewer.vue):- Directly embeds PDF deliverables into Project Studio via native webview blob rendering with zero external library overhead.
- Full native PDF feature support: zoom, in-document search, page navigation, print, and download.
- Binary File Preview API (
commands/projects.rs,services/api/projects.ts):- Added
read_project_file_base64Tauri IPC command for fast binary streaming of PDF and document assets.
- Added
- Interactive HTML Viewer (
Unicode PDF export for markdown deliverables
- Historical note: preview capture previously used html2canvas + per-script system fonts; agent
pdf.generatepreviously rasterized via cosmic-text. Both are superseded as the primary path by the vector compiler (ADR-014). The rasterizer remains a fallback. - Known limitation: machines without CJK (or Arabic/Thai) system fonts may still show missing glyphs for those scripts; AMBA does not bundle CJK megafonts (ADR-009).
- Historical note: preview capture previously used html2canvas + per-script system fonts; agent
Project-Scoped Semantic Memory Isolation & Cascade Deletion
- Two-Tier Scoped Memory Engine (
runtime/memory.rs,runtime/rag.rs,runtime/execution.rs):- Project-Scoped Memory (
project:{project_id}:*): Interaction history and RAG memories generated within a project are tagged withprojectId. RAG retrieval within a project only queries the active project's memories plus global user knowledge, strictly isolating projects and preventing cross-project context bleeding. - Global Memory (
global:*): Non-project conversations only retrieve global knowledge, preventing project scratchpad data from polluting general workspace chats.
- Project-Scoped Memory (
- Automatic Memory Cascade Deletion (
storage/db.rs,commands/projects.rs):- Deleting a project automatically purges all semantic memory entries, embeddings, and interaction logs belonging to that project (
DELETE FROM semantic_memory WHERE key LIKE 'project:' || ?1 || ':%' OR json_extract(value_json, '$.projectId') = ?1).
- Deleting a project automatically purges all semantic memory entries, embeddings, and interaction logs belonging to that project (
- Two-Tier Scoped Memory Engine (
Native In-App Markdown Document Viewer & Reader Mode (ADR-013)
- Document-Grade Markdown Viewer (
MarkdownDocumentViewer.vue):- High-quality document typography for reading agent-generated reports, meeting notes, and analysis documents directly inside Project Studio.
- Formats headings (
H1-H4), tables, task lists, blockquotes, and code blocks with 1-click copy. - Reading Controls: Toggle between Document View and Raw Source, dynamic Table of Contents (TOC) navigation, word count & reading time calculation, 1-click Copy Document, and Maximize/Fullscreen mode.
- Inline Deliverable Integration (
DeliverablePreview.vue):- Automatically detects
.md,.markdown, and.txtfiles ininput/,workings/, andoutput/and renders the rich viewer inline instead of requiring external OS software.
- Automatically detects
- Backend Safe File Content API (
commands/projects.rs):- Added
read_project_file_contentTauri command with canonical path traversal validation and 10MB memory safety limits.
- Added
- Document-Grade Markdown Viewer (
Dual-Option Project Deletion Modal & Physical Disk Removal
- Dedicated Project Deletion Dialog (
ProjectDeleteModal.vue):- Replaced browser
confirm()with a custom modal asking the user to choose their deletion method. - Option 1 (App-Only / Safe): Removes the project tracking from AMBA while preserving all physical files on disk.
- Option 2 (Full Physical Deletion / Danger): Completely deletes the project from AMBA and permanently removes the project folder and all contained files on disk.
- Replaced browser
- Backend Disk Cleanup Guard (
commands/projects.rs):delete_project(project_id, delete_files: bool)safely resolves the directory path and performsstd::fs::remove_dir_allwith guard checks against deleting system roots or user home directory.
- Dedicated Project Deletion Dialog (
Strict Agent Execution Modes & Two-Stage Output Finalization Gate (ADR-012)
- Three-Stage Agent Workflow Modes (
AgentMode):analyze(Analyze Only): Pure chat exploration & Q&A. Writing files is forbidden at runtime.draft(Draft & Workings — Default): Agent prepares intermediate spreadsheets, calculations, and drafts inworkings/. Writing directly tooutput/is blocked with hard runtime enforcement.finalize(Approve & Finalize): Agent inspects working drafts, automatically receives allworkings/files as context, and generates polished final deliverables inoutput/.
- Project Studio Mode Controller & 1-Click Finalization (
ProjectChat.vue):- Mode segmented button group above chat input with project-level persistence.
- Automatic "Working Drafts Ready for Review" banner with 1-click "Approve & Finalize" action button when files are discovered in
workings/.
- Hard Enforcement at Rust Runtime (
runtime/execution.rs):- Intercepts
filesystem.writetool requests before dispatch and returns actionable mode-routing error feedback to guide the LLM.
- Intercepts
- Three-Stage Agent Workflow Modes (
Central Default Workspace Directory & 1-Click Project Scaffolding (ADR-018)
- Default Workspace Root (
~/AMBA/Projects/~/Documents/AMBA Projects):- Centralized project root managed in SQLite and configurable via Settings (
SettingsPanel.vue). - Added Tauri commands
get_default_workspace_dirandset_default_workspace_dir.
- Centralized project root managed in SQLite and configurable via Settings (
- Dual-Mode Project Creation Wizard (
ProjectCreateModal.vue):- Mode 1 (Auto Workspace — Default): Automatically derives sanitized folder names from project title (
<WorkspaceRoot>/<Project-Name>) with live path preview and creates directories automatically on submit. - Mode 2 (Custom Location): Power-users can link existing Git repositories, external hard drives, or custom folders on disk.
- Mode 1 (Auto Workspace — Default): Automatically derives sanitized folder names from project title (
- Workspace Settings in Advanced Tab (
SettingsPanel.vue):- Displays current workspace directory with 1-click "Change Location…" dialog and "Open Folder" OS launcher.
- Default Workspace Root (
Project File Management & Real-time Auto-Sync with VS Code-Grade Drag-and-Drop
- Real-time Project File Watcher (
notify = "6.1",runtime/watcher.rs):- Automatic non-polling filesystem watcher detects file creation, modification, deletion, and renaming across all project directories (
input/,workings/,output/). - Debounces bursts (300ms window), synchronizes SQLite records, and broadcasts
project:files-updatedTauri events to all active windows. - Added live "LIVE" sync indicator badge in the Harness Explorer header.
- Automatic non-polling filesystem watcher detects file creation, modification, deletion, and renaming across all project directories (
- VS Code-Grade Hierarchical File Explorer (
FileTreeItem.vue,buildFileTree):- Replaced flat lists with deep nested folder trees supporting arbitrary subdirectories.
- Expandable/collapsible directories with icon states and indentation guidelines.
- Quick action toolbars on hover:
+ New File,+ New Folder,Rename,Delete,Open in OS.
- Full Drag & Drop Capabilities:
- External OS Drop: Drag files and folders directly from Finder / File Explorer / Desktop into specific zones or nested directory nodes.
- Internal Reorganization: Drag files/folders between zones or into subfolders to move them on disk (
move_project_path). - Drag-to-Chat Context Injection: Drag any file node from the explorer tree directly into the Chat prompt area to automatically insert context
@<relative_path>tags.
- Comprehensive File Operations API:
- Added Tauri commands
create_project_file,create_project_folder,rename_project_path,delete_project_path,move_project_path, andimport_project_fileswith strict path traversal validation.
- Added Tauri commands
- Real-time Project File Watcher (
Security & Permission Matrix — Granular Capability Scopes (ADR-010)
- Orthogonal Permission Matrix: Deprecated linear hierarchical scope levels in favor of 4 independent capability dimensions:
- Filesystem Access Scope:
Project Sandbox Only(strictly restricted toinput/,workings/,output/) vs.Full Local Disk. - Network & Web Search (
allow_internet: bool): Independent toggle allowing the Agent to safely search the web and fetch online documentation from within the sandbox without requiring full OS privileges. - Terminal / Shell Execution (
allow_shell: bool): Independent toggle gatingshell.executecommands (default disabled with security alerts). - External MCP Plugins (
allow_mcp: bool): Independent toggle gating external Model Context Protocol tool invocations.
- Filesystem Access Scope:
- Interactive Security UI (
ProjectHeader.vue&ProjectCreateModal.vue): Added quick security capability badge chips in the Project Studio header and an on-the-fly Security & Capabilities modal for toggling individual permissions during active sessions.
- Orthogonal Permission Matrix: Deprecated linear hierarchical scope levels in favor of 4 independent capability dimensions:
Phase 8: Production Polish & Performance Scale — Sprint 29: Advanced Desktop UI & Keyboard Navigation
- Command Palette (
CommandPalette.vue): Power-user universal search triggered byCmd+K/Ctrl+K. Instant fuzzy search across project harnesses, pages, quick actions (switch theme, collapse sidebar, create project, export), and direct keyboard navigation with Arrow keys and Enter. - Global Keyboard Shortcuts (
useKeyboardShortcuts.ts): Fast desktop shortcuts forCmd+K(Search & Command Palette),Cmd+/(Toggle Sidebar),Cmd+N(New Project/Session), andEsc(Modal dismiss). - Drag-and-Drop File Context Injection (
ProjectChat.vue): Dragging external files over the Project Studio Chat triggers a visual drop zone overlay, automatically injecting the attached files into the prompt query. - Native Desktop Notifications (
services/notification.ts): Dispatches system desktop notifications when long-running agent workflows or file parsing tasks finish in the background.
- Command Palette (
Phase 8: Production Polish & Performance Scale — Sprint 28: Extension & MCP Skill Hub (1-Click Install)
- Curated MCP Extension Marketplace (
ToolsPanel.vue,tools/marketplace.rs): 1-click catalog featuring certified extensions (Python Data Engine, GitHub MCP, PostgreSQL Explorer, Puppeteer Web Browser, SQLite Inspector). - Category Filtering & Search: Instant filtering across Data & Analytics, Developer Tools, Databases, and Web Automation.
- Pre-Configured Transports: Auto-fills command executable, CLI args, default endpoints, and provides secure secret inputs for API tokens.
- Curated MCP Extension Marketplace (
Phase 8: Production Polish & Performance Scale — Sprint 27: Export, Import & Database Backup
- 1-Click Conversation Export (
ProjectChat.vue,commands/backup.rs): Export complete conversation histories, tool invocation records, and system context into structured GitHub Flavored Markdown (.md) or schema-compliant.json. - Full Workspace SQLite Database Online Backup & Restore (
commands/backup.rs,SettingsPanel.vue): Atomic live database backups usingrusqlite::backupwithout stopping the runtime, with validation safeguards during restore. - ChatGPT Conversation Import (
commands/backup.rs,SettingsPanel.vue): Seamlessly importconversations.jsonfrom ChatGPT data archives into AMBA workspace sessions.
- 1-Click Conversation Export (
Phase 8: Production Polish & Performance Scale — Sprint 26: Performance & Caching
- SQLite WAL Mode & High-Throughput Pragmas (
storage/db.rs,V004__caches.sql): EnabledPRAGMA journal_mode = WAL,synchronous = NORMAL, andbusy_timeout = 5000providing 5x–10x concurrent read/write throughput and eliminating database locking during intensive streaming. - Document Parsing Hash Cache (
context/engine.rs): High-performance Sha256-based document caching (document_cachetable) ensures that unchanged PDFs, spreadsheets, and Word documents load instantly (<1ms) without repeated parsing and decompression overhead. - Deterministic Model Response Caching (
runtime/cache.rs): Automatic prompt-hash response cache (response_cachetable) for low-temperature runs (<= 0.1), eliminating redundant API requests and token expenditures for repetitive tasks. - Frontend Chat Virtualization & DOM Containment: Applied
content-visibility: autoandcontain-intrinsic-sizeto chat messages inProjectChat.vueandAgentWorkspace.vuefor silky-smooth 60fps scrolling across 1000+ turn conversation histories.
- SQLite WAL Mode & High-Throughput Pragmas (
Phase 8: Production Polish & Performance Scale — Sprint 25: Robust Error Handling & Retry Engine
- Provider Exponential Backoff & Jitter (
providers/retry.rs): Automatic retry loop with configurable exponential backoff (base_delay * 2^attempt + jitter) for handling HTTP 429 rate limits and transient network disconnects without user interruption. - Granular Error Classification (
classify_error): Accurately differentiates between retryable transient errors (429, 500/502/503/504, connection timeouts) and fatal client/auth issues (401, 403) to prevent wasteful retries. - Automatic Secondary Model Fallback: When an upstream provider suffers a persistent outage or quota limit, the execution engine seamlessly degrades to the agent's secondary preferred model (e.g. falling back from GPT-4o to Claude 3.5 Sonnet or Gemini 2.0 Flash) from
agent.model_preferences. - Live UI Diagnostics & Retry Telemetry:
- Emits real-time
RunEventType::RetryAttemptandRunEventType::ModelFallbackevents. - Added retry countdown badge ("Rate limit detected. Retrying in 2s (Attempt 1/3)...") and prominent Model Fallback notification banners in
ProjectChat.vueandAgentWorkspace.vue.
- Emits real-time
- Provider Exponential Backoff & Jitter (
Phase 7: Autonomous Reasoning & Extended Memory — Sprint 24: Planning & ReAct Reasoning Loop
- Dynamic Plan Inspector UI (
PlanInspector.vue): Embedded plan tracker widget rendered inProjectChat.vue. Displays current goal, progress percentage bar, dynamic step status checklist (pending,in_progresswith spinner,completed,failed), and expandable Thought reasoning drawers. - ReAct Reasoning Protocol (
runtime/agent.rs&runtime/execution.rs): Integrated step-by-step planning instructions into system prompt. The agent decomposes complex tasks into<plan>blocks with granular<step>items and<thought>reflections. - Live Plan Telemetry (
RunEventType::PlanUpdate): Execution engine automatically parses XML plan structures from model responses and emits real-timeplan_updateevents for live UI progress updates. - Self-Correction on Tool Errors: Agents observe tool failure observations and update their plans to test alternative approaches or self-correct parameters.
- Dynamic Plan Inspector UI (
Phase 7: Autonomous Reasoning & Extended Memory — Sprint 23.5: Project Harness Paradigm & 3-Column Studio UI (ADR-008)
- Project Harness Paradigm: Transitioned AMBA from session-centric chat into a project-based local harness. Every project encapsulates a dedicated local directory with three standard subdirectories:
input/(Read-only data context: attendance sheets, spreadsheets, raw PDFs, invoices).workings/(Working Papers & Drafts: calculations, versioned spreadsheets, drafts, intermediate data; backwards-compatible with legacytemp/).output/(Deliverables: finalized payroll spreadsheets, generated summary reports, export archives).
- 3-Column Project Studio UI (
ProjectStudio.vue):- Harness File Explorer (Left Column): Real-time tree view of
input/,workings/, andoutput/directories, file size metrics, file type icons (Excel, Word, PDF, CSV, JSON), and 1-click OS open. - Project Chat & Execution (Middle Column): Project-scoped conversation history, auto-injected input files context, live tool execution telemetry, and goal/plan banners.
- Deliverable Preview (Right Column): Dedicated inspector for previewing generated files, quick overview of project deliverables, and 1-click launch in default OS apps.
- Harness File Explorer (Left Column): Real-time tree view of
- Projects Dashboard & Creation Wizard (
ProjectListView.vue,ProjectCreateModal.vue):- Filterable projects grid by template (Payroll, Financial Analysis, Document Analysis, Custom).
- 3-step project setup wizard (Template & Metadata → Assigned Agent & Model → Local Directory Picker with auto-scaffolding).
- Tauri IPC Endpoints & Database (
commands/projects.rs,storage/migrations/V002__projects.sql): 11 new commands for project lifecycle, directory scaffolding, filesystem sync, and project-scoped sessions.
- Project Harness Paradigm: Transitioned AMBA from session-centric chat into a project-based local harness. Every project encapsulates a dedicated local directory with three standard subdirectories:
Phase 7: Autonomous Reasoning & Extended Memory — Sprint 23: Explicit Memory Tools & Memory Inspector UI
- Memory Inspector UI (
/memory/MemoryPanel.vue): Full-featured dedicated interface for browsing, inspecting, editing, creating, and deleting long-term semantic memories. Includes live semantic similarity vector search with threshold filtering, similarity match score badges, metadata tagging, and raw JSON/Markdown preview. - Explicit Agent Memory Tools (
tools/knowledge.rs):knowledge.store: Native tool allowing autonomous agents to self-record important facts, preferences, guidelines, and entity details into long-term vector storage.knowledge.search: Native tool enabling agents to actively query their semantic knowledge base by natural language query with custom score thresholds.
- Memory Management IPC Endpoints (
commands/memory.rs):list_memories,upsert_memory,delete_memory,search_memories. - Domain Model & Seeding (
models/mod.rs,storage/seed.rs): AddedMemoryEntry,ScoredMemoryEntry,UpsertMemoryRequest, and registered knowledge tools & permissions forassistant-agentandresearch-agent.
- Memory Inspector UI (
Phase 7: Autonomous Reasoning & Extended Memory — Sprint 22: RAG Memory Auto-Injection & Semantic Recall
- RAG Pre-Prompt Memory Injection (
runtime/rag.rs&runtime/execution.rs): Automatic cosine-similarity search against SQLite semantic memory before model request. Top memories exceeding similarity threshold (0.35) are formatted and injected as authoritative background context in system prompt. - Interaction Auto-Storage (
auto_store_interaction): Automatically captures and embeds meaningful User prompt + Assistant response pairs upon run completion, ensuring continuous long-term recall across sessions. - Live Runtime Memory Telemetry: Emits
RunEventType::ContextBuildevents containing memory count and keys to provide frontend visibility into what the agent recalled. - Scored Semantic Search API (
search_scored): ExtendedSemanticMemoryStoretrait andSqliteSemanticMemorywith threshold-gated, score-ranked retrieval.
- RAG Pre-Prompt Memory Injection (
Streamlined Provider & Model Management in Settings (
SettingsPanel.vue):- Inline Expandable Model Selection: Merged model selection into Step 1 as an expandable, interactive checkbox accordion directly under each connected provider.
- Single Step 2 for Default Model: Step 2 is now dedicated to selecting the Default Model, strictly listing the inner join of enabled models from connected providers (+ Offline Demo).
- Quick Reset Actions: Added 1-click
Reset Flagships(resets to curated flagship profiles) andReset All Selected(clears model selections). - Removed Clutter: Removed Manifest Editor JSON modal and Custom Model form for a cleaner, intuitive end-user experience.
Phase 6: Advanced Tool Ecosystem & MCP Expansion (Sprints 19–21)
- Remote MCP over SSE/HTTP (
tools/mcp.rs): ImplementedSseMcpClientallowing AMBA to connect to remote MCP endpoints over Server-Sent Events with Bearer token authentication. - MCP Resources Support: Added
resources/listandresources/readmethods to inspect live data from MCP servers. - Builtin Utility Tools (
tools/utility.rs):system.time: Real-time clock, timezone offset, weekday, and Unix timestamps.math.calculate: Deterministic, safe mathematical expression evaluator (+, -, *, /, %, ^, sqrt, abs, ceil, floor, round, sin, cos, tan, log, exp, pi, e).filesystem.glob: Pattern search across workspace directories.system.info: OS, CPU architecture, platform metadata.
- Tools UI Updates (
ToolsPanel.vue): Added Stdio / Remote SSE transport switcher with Bearer token inputs and presets.
- Remote MCP over SSE/HTTP (
Sprint 18: Structured Output & Rich Rendering
- Rich Markdown Engine (
MarkdownMessage.vue): Replaced raw text message rendering with a modular Markdown parser. - Fenced Code Blocks & 1-Click Copy: Renders code blocks with dark theme styling, language badge tags, and an interactive copy button with visual confirmation.
- Markdown Tables & Blockquotes: Formats tables with clean bordered responsive layouts, callout quotes, bold/italic, inline code, and clickable external links.
- Structured JSON Support: Added
response_formattoModelRequestwith OpenAI & Google provider integration for deterministic JSON output.
- Rich Markdown Engine (
Sprint 17: Smart Token-Aware Context Window Management & Auto-Summarization
- Token Estimation & Budgeting (
runtime/context_budget.rs): Replaced naive message-count sliding window with token-aware budgeting using weighted character/word BPE approximation. - Automatic Session Summarization: When conversation turns exceed the token budget threshold (>6,000 tokens or >8,000 token history), earlier turns are summarized into a concise structured digest (
[Summary of Earlier Turns in this Session]) and prepended as a system note. - Tool-Call Pair Preservation: Smart split algorithm protects assistant
tool_callsand correspondingtoolresult pairs from being broken across pruning boundaries. - Runtime Event Notification: Emits
RunEventType::ContextBuildwith auto-summarized metadata to notify frontend trace inspector.
- Token Estimation & Budgeting (
Sprint 16.4: Interactive 3-Step Model Discovery, Multi-Select Curation & Default Picker
- Step 1 — Connect AI Providers: Input API keys for Google Gemini, OpenAI, and Anthropic. Direct live model discovery fetches all upstream models straight from provider APIs.
- Step 2 — Pick Models to Enable (Multi-Select Curation):
- Provider Tabs (
All Connected,Google Gemini,OpenAI,Anthropic). - Real-time search filter and quick action buttons (
✨ Select Flagships,Select All,Deselect All). - Interactive checkbox selection of discovered models with Flagship badges, context window size tags, and descriptions.
- Saves user-curated model choices directly into SQLite via
sync_selected_model_profiles.
- Provider Tabs (
- Step 3 — Select Default Model (Single Pick):
- Displays only the inner join of enabled models from connected providers (+ Offline Mock).
- 1-click default model selection for agent workspaces.
- Step 4 — Web Search & Internet Tools (Optional): Tavily / Brave Search integration with live status indicator.
Sprint 16.3: Configurable Model Manifest Architecture & Live Editor
- Dynamic Model Registry (
~/.amba/models.manifest.json): Replaced hardcoded model configurations with a decoupled, declarative JSON manifest schema (ModelManifestItem/ModelManifest). - Live Manifest Editor Modal: Added an interactive in-app JSON editor in Settings allowing power-users and developers to update model IDs, modify temperatures, adjust context window sizes, add new flagship models, or reset to template defaults without recompiling.
- Manifest-Driven Seeding & Persistence:
seed_profilesand backend storage load directly from the active manifest; changes applied in Settings immediately refresh the database and workspace dropdowns. - Tauri IPC Manifest Endpoints:
get_model_manifest,save_model_manifest, andreset_model_manifest_defaults.
- Dynamic Model Registry (
Sprint 16.2: Clean Flagship Model Curation, Noise Filtering & Provider Grouping
- Smart API Model Curation (
fetch_provider_models): Replaced raw, noisy API dump (30–50 experimental/dated checkpoints) with an intelligent whitelist filter keeping only canonical flagship aliases (Gemini 2.0 Flash,Gemini 2.5 Flash,Gemini 1.5 Pro,GPT-4o Mini,GPT-4o,o3-mini,o1,Claude 3.7 Sonnet,Claude 3.5 Sonnet,Claude 3.5 Haiku). - Obsolete Model Pruning & Reset: Added
prune_profiles_by_providerandreset_curated_model_profilesTauri command to cleanly remove clutter/deprecated snapshots and reset to pristine flagship models with 1 click. - Provider-Grouped Model Dropdown:
AgentWorkspace.vuenow organizes model options into intuitive<optgroup>categories (Google Gemini,OpenAI,Anthropic Claude,Offline / Testing) with status indicators. - Settings UI Enhancement: Added 1-click "Reset to Curated Models" button in Settings with clear feedback alerts.
- Smart API Model Curation (
Sprint 16.1: End-User Onboarding Wizard, Help & Guide Center, and In-App Feedback System
- Interactive Setup Wizard (
/onboarding): 3-step setup guide for non-technical users to connect AI Providers (Google Gemini Free Tier, OpenAI, Claude, or Offline Demo), configure Web Search (Tavily), and jumpstart with 1-click sample prompts. - Help & Guide Center Modal (
HelpGuideModal.vue): Comprehensive, non-technical guide with Quickstart steps, AI Provider comparison, Security & Local-First overview, and FAQ solving common questions (e.g. why agent needs search keys, local data safety). - Built-in Feedback Center (
FeedbackModal.vue): In-app feedback dialog with emoji/star ratings (1–5), category chips (Idea, Bug, Question, General), contact info, 1-click copy formatted feedback, and SQLite persistence. - Backend Feedback Engine: SQLite
user_feedbacktable withinsert_feedbackandlist_feedbackstorage APIs, registeredsubmit_feedbackandlist_feedbackTauri IPC commands. - Sidebar Access: Added 1-click "📖 Hướng dẫn sử dụng", "💬 Góp ý & Báo lỗi", and "🚀 Setup Wizard" buttons in sidebar footer.
- Workspace Quick-Start:
AgentWorkspace.vueauto-fills query prompt from onboarding into input box for instant execution. - 45 Rust unit tests + 3 Vitest tests passing cleanly.
- Interactive Setup Wizard (
Sprint 16: Web Search & Fetch Tools (Internet Querying & SSRF Protection)
WebSearchTool(web.search): query the live web via Tavily (AI-native search API) or Brave Search with title, URL, snippet, and relevance scoring.WebFetchTool(web.fetch): bounded webpage retrieval (32KB cap) with fast HTML-to-text conversion, tag stripping, script/style pruning, entity decoding, and text formatting.- SSRF Protection (
assert_url_safe): strict validation blockinglocalhost,.local, link-local, loopback, private IPv4/IPv6 ranges (RFC 1918, RFC 6598 CGNAT, RFC 5736), and non-HTTP protocols. - Policy Engine defaults:
web.searchandweb.fetchdefault toConfirmpolicy for explicit user permission. - Search Provider Credentials: OS keychain + SQLite fallback storage via
set_search_credential,delete_search_credential,search_credential_statusIPC commands. - Settings UI: Added Step 3 "Web Search & Internet Tools" card with Tavily & Brave Search key management, status indicators, and direct API link buttons.
- Tool Status formatting in Workspace: human-readable real-time indicators for
🔍 Searching web,🌐 Fetching,📄 Reading file,✏️ Writing file,⚡ Executing shell. - 44 Rust unit tests + 3 Vitest tests passing cleanly.
Sprint 15: Multi-turn Conversation History Engine & Model Optimization
- Multi-turn context loading:
ExecutionEnginenow automatically creates sessions and loads previous conversation turns intoWorkingMemoryfor multi-turn LLM memory. - Context sliding window: limits conversation history to a 20-message token budget preventing context window overflow.
- Dynamic model parameters:
StartRunRequestsupportstemperature,max_tokens, andsystem_prompt_override. - SQLite Conversation CRUD: added
get_conversation,list_conversations_by_agent,delete_conversation,rename_conversation,clear_conversation_messageswith cascade deletion. - Workspace Sessions & Tuning: collapsible Sessions sidebar (New Chat, switch, rename, delete), Model & Context Tuning drawer (temperature slider, max tokens, custom instructions), copy message button, latency & model telemetry indicators.
- Upgraded Conversation History View: real-time search, filter by agent, "Resume Chat" in Workspace, full conversation markdown export, clear & delete controls.
- 35 Rust unit tests + 3 Vitest tests all passing cleanly.
- Multi-turn context loading:
Sprint 14: Real LLM Providers & Concrete Model Selection
- Concrete Model Profiles seeded for OpenAI (
GPT-4o Mini,GPT-4o), Anthropic (Claude 3.5 Sonnet,Claude 3.5 Haiku), and Google (Gemini 2.0 Flash,Gemini 1.5 Pro). - Production Anthropic model IDs updated to official snapshots (
claude-3-5-sonnet-20241022,claude-3-5-haiku-20241022). - Settings persistence for
default_model_profile_idvia SQLitesettingstable and IPC commands. - Auto-detection of configured provider credentials and smart model dropdown selection in Workspace and Settings.
- Concrete Model Profiles seeded for OpenAI (
Sprint 13: Token Usage & Analytics Dashboard
- Backend Analytics API: added
get_token_analyticsquery onSqliteStorageto aggregate run token usage (input_tokens,output_tokens) and calculate estimated USD cost across LLM models. - Registered
get_token_analyticsTauri IPC command insrc-tauri/src/commands/runs.rsandlib.rs. - Frontend Analytics UI (
ActivityPanel.vue): added KPI summary cards (Total Tokens, Input/Output Split, Estimated USD Cost, Executed Runs) and per-model usage breakdown table. - Added unit test for token analytics aggregation in
db.rs(33 Rust unit tests total, all passing).
- Backend Analytics API: added
Sprint 12: MCP Server Management UI & Security Policy Manager
- Frontend API wrappers (
src/services/api/tools.ts):connectMcpServer,disconnectMcpServer,listPermissions,setPermission. - Tabbed Tools Panel UI (
src/features/tools/ToolsPanel.vue):- Tool Registry tab: Live view of registered Native & MCP tools and JSON schemas.
- MCP Servers Manager tab: Connect form (
server_name,command,args), quick presets (filesystem,git,memory), list of connected servers, disconnect button. - Security & Permissions Manager tab: Real-time policy decision toggles (
Allow,Confirm,Deny) for all registered tools.
- Frontend API wrappers (
Sprint 11: Document Context Adapters (PDF, DOCX, XLSX, CSV)
CsvAdapter: parses CSV files and formats records into clean Markdown tables.DocxAdapter: parses Microsoft Word.docxZIP archives and extracts paragraph text fromword/document.xml.XlsxAdapter: parses Microsoft Excel.xlsxarchives, resolves shared strings (xl/sharedStrings.xml), and formats sheet cell grids into Markdown tables.PdfAdapter: parses.pdftext streams (BT...ET) into readable text content.- Registered all 4 document adapters in
ContextEnginedefault adapters. - Added unit tests for CSV, DOCX, XLSX, and PDF parsing (32 Rust unit tests total, all passing).
Sprint 10: Semantic Memory
- SQLite table migration
semantic_memoryfor storing key, JSON values, vector embeddings, and timestamps. LocalEmbeddingGenerator: fast offline feature-hashing & n-gram normalized vector generator.- Cosine similarity vector search ranking (
cosine_similarity). SqliteSemanticMemory: implementsSemanticMemoryStoretrait (upsert,get,search).- 3 new unit tests for embeddings, cosine similarity, and SQLite semantic memory roundtrip (28 Rust unit tests total, all passing).
- SQLite table migration
Sprint 9: Write Tools + Policy-Gated Shell
filesystem.write: full implementation with path security (sanitize_path), automatic parent directory creation, content append support, and unit tests.shell.execute: process execution viatokio::process::Command, CWD path security, timeout enforcement (default 30s, max 120s), and unit tests.- Policy & Permissions IPC: added
list_permissionsandset_permissionTauri commands registered inlib.rs. - 3 new unit tests for
filesystem.writeandshell.execute(25 Rust unit tests total, all passing).
Sprint 8: Streaming Tool-Call Assembly
- OpenAI provider streaming: chunk assembly for
tool_callsdeltas,include_usageSSE options, token usage extraction, andDoneevent generation. - Anthropic provider streaming: full SSE event parsing (
message_start,content_block_start,content_block_delta,content_block_stop,message_delta,message_stop),tool_useJSON buffer accumulation, token usage tracking. - Google provider streaming:
streamGenerateContentSSE parser for text deltas,functionCallparts,usageMetadata, andDoneevent. - Execution Engine (
stream_or_chat): properModelStreamEvent::Usagecollection and token usage propagation without extra non-streamingchat()fallback calls.
- OpenAI provider streaming: chunk assembly for
Sprint 7: Real MCP Client (stdio JSON-RPC 2.0)
StdioMcpClient: spawns MCP server process, handles initialize handshake,tools/list,tools/callwith 5 s / 10 s / 30 s timeouts- Background stdin writer + stdout reader tasks; graceful drain on server exit
McpToolAdapter: wraps MCP tools as nativeToolso they live inToolRegistry- Tool names prefixed
mcp.<server_name>.<tool_name> connect_mcp_server/disconnect_mcp_serverTauri commandsStubMcpClientretained for tests and fallback- 7 new unit tests (JSON-RPC parsing, adapter delegation, error propagation)
- 19 Rust tests total, all passing
GitHub Actions CI pipeline (
.github/workflows/ci.yml)Phase 2 roadmap: Sprint 7–10 planning in
ROADMAP.md
0.1.0 — 2026-08-10
Added
- Local-first Tauri 2 desktop app with Vue 3 presentation layer
- Single-process Rust Agent Runtime (execution, tools, policy, providers, context, memory, packages)
- Governance documentation (
AGENTS.md, architecture, ADRs, sprint docs,.agent/*) - Navigation: Agents, Skills, Tools, Models, Memory, Activity, Settings
- Agent workspace with streaming, tool status, execution trace, permission prompts
- SQLite persistence with migrations (agents, skills, tools, conversations, runs, events, policies)
- Model providers: OpenAI, Anthropic, Google + offline Mock profile
- Secure API key storage via OS keychain
filesystem.readtool with path traversal protection- Permission engine (allow / confirm / deny)
- Local agent/skill package install from folder
- Builtin Assistant Agent + example packages under
packages/examples/ - Activity page for past runs
- Unit tests (Rust domain/policy/execution; Vitest API wrappers)
