Skip to content

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_pptx call doc_ops_record_revision_for_run; the owner's own edits keep run_id None).

  • 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.stepDeadlineMs fails an overdue step with a screenshot and ends the run with a report; grid-scroll-perf sets 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 sweep runs cargo sweep --installed and cargo sweep --time 3 on src-tauri/target and every agent target slot; check:disk reports any target directory over 18 GB and --fix sweeps 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/A as in Excel. The file itself is never changed. The formula engine now also computes INDEX, MATCH, VLOOKUP, HLOOKUP, and text and date functions applied cell by cell inside SUMPRODUCT ((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, fullCalcOnLoad or not. ViewSheet::computed_cell/uncached_formula_count; tile format v1 gains optional trailing section 7 (computed cells and notes, decoded by tileCodec.ts as TileCell.amba). Evaluator: Excel error kinds (SheetGrid::errors, formula_error, set_error, evaluate_formula_result) propagate through references and are caught by IFERROR. recalc_package rewrites only sheets that gained a value and reports every formula left without one (RecalcStats::unresolved_cells ≤ 200 with reasons, changed_sheets). QA scenario xlsx-uncached (fixture uncached-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_values runs in office_script after 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.xml only to add fullCalcOnLoad when 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 because recalc_package reports 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): onAgentFileActivity and injectAgentFileActivity in services/api/fileActivity.ts (DEV hook window.__ambaAgentActivity.inject), shared components/office/activity (useAgentFollow, AgentActivityBar, summary text for every amba_office::activity key, log merge by run and sequence, follow rules), viewer adapters useGridActivity, 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 fixture headings-docx and scenario agent-follow (real writes through qa_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/pptx from the gate scopes, whole_file; serde Target/TargetSet with 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, hook set_activity_hook like set_busy_hook): engine writes (spreadsheet_edit, workbook, document_edit, presentation_edit, document, deck, pptx_write) give exact places from amba_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_script outputs and the older writers give whole_file from 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 command agent_file_activity(projectId, path). Debug-only QA command qa_agent_apply(path, kind, opsJson, projectId?) (claim → engine write → release as a fake run). TS: AgentFileActivity in @/domain, agentFileActivity in @/services/api, mock flag agent-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); with summary: true an xlsx/xlsm/xltx/xltm or CSV/TSV file returns its sheet names without cells (readers::spreadsheet_summary), which usePreviewDocument asks 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 command spreadsheet_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) behind useCanvasFind (one search in flight, latest query wins). QA scenario grid-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.__ambaGridPerf when a recorder is installed (canvas/gridPerf.ts, every call site behind import.meta.env.DEV); the host times each spreadsheet_tile in QA mode (qa::perf, qa_tile_timings, debug-only). QA scenario grid-scroll-perf (fixtures perf-bctc-xlsx, perf-long-xlsx, perf-wide-xlsx, plus bloated-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 to qa-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_storage runs one at a time; a chat tab switch whose messages arrive after a later switch's no longer replaces them. Guard test commands/sync_command_guard.rs fails 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: Rust sync_command_guard (3; allowlists the debug-only qa_keep_file/qa_finish), Vitest conversationSwitchRace.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} and spreadsheet_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 through owner_write, undo via spreadsheet_revert_owner_edit); engine ops move_sheet, set_sheet_hidden (never veryHidden), set_tab_color (xlsx/sheet_tabs.rs: localSheetId, activeTab/firstSheet, tabSelected and app.xml titles follow) and ref_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 scenario x2d-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::text per-script fallback to system faces (FallbackScript lists, Han variant from kana/Hangul in the paragraph, then RunStyle::east_asian_lang from w:lang w:eastAsia or MarkdownOptions::east_asian_lang, then Japanese → Simplified Chinese); lists resolved once and graphemes memoised per library, faces read lazily; system faces with Restricted License fsType (or no-subsetting / bitmap-only) skipped (FontLibrary::embeddable). display::pdf embeds CID-keyed CFF faces as CIDFontType0 + 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 .notdef codes per page). Commands export_project_file_to_pdf and pptx_export_pdf return {path, missingScripts}, spreadsheet_export_pdf gains missingScripts; UI PdfMissingFontsNotice.vue in the preview; 12 strings × 4 locales; QA command qa_pdf_glyphs, fixtures cjk-md, cjk-docx, arabic-md, scenario cjk-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>.pdf at 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:numPr toggled against the document's own lists (noList refusal otherwise), indent steps of 720 twips, highlight as w:highlight for Word's 16 colours else w:shd; read_format: the resolved readout through docx_layout's style sheet, mixed values null). Host office/docx_format.rs: docx_format(projectId, filePath, range, action, baseVersion) -> {fileVersion, revisionId} over the paragraph owner_write flow (errors conflict|busy|refused|invalid|failed), docx_run_format(projectId, filePath, range); undo through docx_revert_owner_edit. UI: Word adapter word/wordFormatAdapter.ts, word/useWordFormat.ts (runs in the typing queue via useWordTyping.exclusive), editor step format, shared officeKey (⌘B/I/U) used by the Excel adapter too, word/wordInput.ts moved out of the viewer; 17 strings × 4 locales.

  • Internal (TASK-861 follow-up): the workbook tool's set_format style object lists strike, border_edges, cell_style, font_color "auto" and fill "none" (border_edges as {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>.pdf and 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::print paginates each sheet by its page setup (xlsx::view::PageSetup read from pageSetUpPr/printOptions/pageMargins/pageSetup/headerFooter/rowBreaks/colBreaks; ViewWorkbook::defined_names for _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). API sheet_plan, sheet_pages, workbook_pdf(bytes, All|Active|Named, PrintOptions) / workbook_pdf_with; PrintOptions overrides for a preview. Host runtime/xlsx_pdf.rs xlsx_to_pdf and command spreadsheet_export_pdf(projectId, filePath, sheets?, overrides?, locale?, output?) -> {path | bytes, size} (writes desk/<name>.pdf like the Word export, or returns base64 for a preview); TS services/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.pdf with 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; options slides (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::pdf untouched. Host runtime/pptx_pdf.rs: pptx_to_pdf reuses PptxViewCache (same path/version/locale as the viewer), command pptx_export_pdf(projectId, filePath, opts?, locale?) -> "desk/<stem>[-notes].pdf" with the viewer's confinement and size cap, atomic write, files resync. UI SlideExportPdf.vue (button, options menu, notes choice in localStorage), useSlidePlaces extraItems, DeliverablePreview handleSlidesPdf, API exportSlidesPdf; 4 strings × 4 locales. Tests: engine 5 (+1 ignored bench: 72 slides in ~0.1 s debug), host 1, Vitest SlideExportPdf.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 (cellStyleXfs entry 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 through xfId, and later uses reuse it; a workbook's own definition is kept. The agent's set_format cell_style accepts 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 with AMBA_QA=1), and writes qa-report/<scenario>/<timestamp>/report.json with ✓/✗, notes and a webview snapshot per step; scripts/qa/summary.mjs prints one line per step. The QA instance is isolated (scratch HOME, 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 side src-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 with cfg(debug_assertions); tests/qa/gating.spec.ts, scripts/qa/check-release-gating.mjs and check-dist-no-mock keep 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_layout LayoutOptions::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 from LineBox::bar → Placed::bars. Engine docx::review::review_changes (ins/del/moves, rPr/pPr/tbl/tr/tc/sectPr changes, paragraph-mark joins, rows; by w:id or all; empty move ranges dropped). Host: docx_page_layout/docx_page take markup (each view cached), office/docx_review.rs docx_review_changes + docx_revert_owner_edit (revert::revert_owner_edit with a Word OwnerFile). 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; Vitest reviewItems.spec.ts 4, WordReview.spec.ts 9, 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.567 and (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; actions style | border | number | decimals | thousands | cellStyle | merge | unmerge | clear | copyFormat, ≤ 64 areas and 200,000 cells, owner_write flow, errors conflict|busy|invalid|failed, undo via spreadsheet_revert_owner_edit) and spreadsheet_cell_format(projectId, filePath, sheetName, row, col, locale) (the engine's resolved format, merge and cell style list). Engine (amba_office::xlsx): StyleSpec/StyleChange gain strike, border_edges (per-side keep/draw/remove), cell_style (links xfId to the workbook's named style), font_color: "auto" and fill: "none"; new xlsx::format (border presets, number presets, step_decimals, with_thousands, built-in cell styles, cell_format readout); StyleTable gains style_ids and named. Frontend: the shared toolbar components/office/OfficeFormatBar.vue (+ FormatBarControl, FormatBarPalette, formatBar.ts) fed by the Excel adapter spreadsheet/canvas/formatAdapter.ts and useCanvasFormat.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_break with optional drop of a break-only paragraph, delete_range / check_range across sibling paragraphs with whole tables between, bookmarks and comment ranges kept at the junction, refusals as para_edit; restore_paragraphs puts paragraphs back from a revision snapshot). Host office/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_layout gains breaks ([paragraph, offset]) and sectionEnds. Client: useWordTyping split into typingSession/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 revision presentation.edit, atomic write, PptxViewCache::invalidate) and pptx_revert_owner_edit (the TASK-805 snapshot revert generalised: owner_write::OwnerFile WORKBOOK/DECK, revert::revert_owner_edit); errors conflict|busy|invalid|failed. Engine Deck::keep_empty_placeholders. UI SlideThumbStrip.vue, useSlideStrip.ts, useSlideEdits.ts, slideStrip.ts; API services/api/slideEdit.ts; mock pptx_edit_slides/pptx_revert_owner_edit (flag slide-edit-busy). 9 strings × 4. Tests: Rust office::slide_edit (7); Vitest SlideStripEdits.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.ts showFrom (TASK-855): pending held done.finally(...) but was cleared only if (pending === done), never true, so after the first reveal check() bailed on pending forever; ensureRendered (rail, ↑) still worked because it awaits pending instead of bailing, and revealed exactly down to its target. Fix: pending is the promise cleared in its own finally. The reveal no longer hangs on scroll events: ChatEarlierTurns.vue ([data-turn-sentinel]) is observed by an IntersectionObserver with the scroller as root and rootMargin 600 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's reveal) renders at least TURN_WINDOW_STEP turns, or down to the target; revealMore backs the link. Position still kept by distance from the bottom; no content-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.ts provides the chat-wide values (isRunning, live steps and plan, the 30 s clock, copy and error states) to ChatAgentTurn, ChatUserTurn, ChatTurnTime and ChatRunBusy by inject; their props stay as optional overrides. agentRun/stableMessages.ts (reuseStoredLines, used by setMessages) keeps unchanged message objects on a reload and marks stored metadata raw. agentRun/frameQueue.ts batches live run: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.ts renders the last 20 turns and 20 more near the top (scroll kept by the distance from the bottom), remembered per conversation; useTurnNav and focused/board turns render down to their target first. ChatErrorCards and ChatMilestoneStepper mount 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_TOKENS 8,000, memo saved per chunk, stops when the stored memo changed), fold::scaled (wait = base + 2 ms/token, ≤ 3 × base), session_memo::background (start spawns the fold holding the conversation Guard, waits TURN_WAIT 3 s, CALL_TIMEOUT 60 s; back-off 1 → 15 min after a fold that saved nothing); runner/session_compact.rs compact_with; context_build session_memo/fallback gains background: true or retryInS. 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 only user_input/context_build for 30–60 s before the first model request; a run the chat attaches to (attachToActiveRun, phone runs, a remount) opens its card at once. openOwnLiveTurn opens the card on the start_run reply and on the own run's run:started (whichever comes first, never after run:finished), its clock from the reported startedAt. Rust unchanged: run:started is already emitted by create_run_record, before build_context and 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.ts updated 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 failed snapshot is 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/markNoTree hold for one snapshot's desk, not one app_version; deskLacksTree trusts ops. 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:preloadError reload). 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 ready and desk online close together) the phone keyed its session from the first reply and the second hello's nonce; every frame it sealed was rejected (auth, then replay: 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 echoes nonce_p; strikes count in a row; reset for a frame of an unknown session at most every 2 s per phone (conn.rs ask_hello, RESET_EVERY). Phone (RemoteConnection): reset starts 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, a snapshot timeout, or a refresh after a timeout (or a snapshot silent for 4 s, refresh()) start a hello; reads and client_id requests 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.resyncing drives "Đang kết nối lại…". refreshDesk() → conn.refresh(). Chat: header refresh button (m-chat-refresh), stale note when messages.list failed. 3 strings × 4 locales. Spec §5, §6 "Session healing", §12, §13; vectors session_heal (generator scripts/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 document tool v2 offers the TASK-849 engine ops as set_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 into format_paragraphs and/or format_runs; a heading covers its whole section as replace_section finds it, hand-typed "Điều 3." headings included; line is a multiple) and page_break {heading | before_block, occurrence?} (→ insert_page_break). The engine names, its target object and its other fields (underline, color, indent_mm, keep_lines, page_break_before, an exact line, a custom size in mm) are accepted, not offered. A set_page result carries page (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 (read part "p1" for total_pages, then margins, size_pt, spacing, read again). Tool definitions: document 3,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 in tools/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 with read), 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 in Shared; placed with intake::import_uploads + resync_files_in_storage); chat.send attachments:[{path}] (≤ 10, confined; prompt = text + @path tags as insertFileTags, plus explicit mentions); messages.list user messages gain attachments from their tags (wire::tagged_files); snapshot.desk.ops; limits file.put.chunk 600/min, begin/commit 30/min. Phone: upload.ts, attachments.ts, AttachSheet.vue, AttachChips.vue, MsgFiles.vue, PHONE_MDI icons; 10 strings × 4 locales. Spec §9.1, §9.3, §11.1, §12 "As built (TASK-851)", vectors upload; privacy (4 locales) names attached files. Tests: Rust tests_upload.rs (11), limits.rs (+1); Vitest upload.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_paragraphs and format_runs on a block, a block range, a heading's section or the whole body (table cells included, field codes and section breaks untouched, tracked as w:pPrChange/w:rPrChange/w:sectPrChange), and insert_page_break. The gate accepts a changed page size and margins only for the sections set_page declared. Not yet exposed to the agent's document_edit tool (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 of tree.rs ordering: sections, pinned folders, natural accent-insensitive order, dated folders, hidden names, default expansion) and treeListing.ts (all files.list pages, 200 each, at most 40, rate_limited retried) feed FileTree.vue when files.tree is unknown_op (remembered per desk version, fileTree.ts); the flat list is search-only. ChatFilesPanel.vue holds only the tree and loads on first opening (defineAsyncComponent); the phone no longer calls conversation.files (the desk op stays); panel_chat_files, panel_chat_none, panel_all_files, panel_created, panel_modified removed. ChatScreen renders the newest 12 messages first and the rest after 420 ms; ScreenStack ends a slide that never ticks after 590 ms. cache.ts: IndexedDB amba-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.js amba-shell-v2: precaches the page's start assets, navigation falls back to the cache after 3 s, prunes assets missing from asset-manifest.json (new build plugin); _headers marks /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) and conversation.files (chat_files.rs); conversations.list filters through dispatch::chat_conversations (project_agents::agent_conversations, now pub(crate), minus process_threads_of) and titles by project_agent_config name; files.tree 120/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_ICON emoji and file_open_with_short removed. Spec mobile-remote.md §9.1, §11.1, §12 "As built (TASK-847)". Tests: Rust tests_tree.rs (5); Vitest filesView.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::chart Kind::Scatter/Bubble/Radar, Series::x_values/sizes, new xy.rs and radar.rs; tests chart/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 projects order is the desk's list_projects order, which the phone now keeps). nav.ts gains motion, layers (top two entries, keyed per entry), useEntry, back({ animate }); swipeBack.ts is the pure edge-swipe state; components/ScreenStack.vue and ScreenLayer.vue draw the layers (CSS transforms and WAAPI, no dependency); mobile.css layers, pressed states, grouped lists, segmented control, .phone-fab; theme.ts sets color-scheme and theme-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: useWordTyping pending joins (PendingJoin, joinAtOnce/writeJoin), layoutPatch absorb and 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) returns markdown (≤ 1 MB), pdf (≤ 25 MB, <iframe> on an object URL where canShowPdf: navigator.pdfViewerEnabled or iOS/iPadOS) or share; the in-app text, JSON and image views and SheetViewer.vue (TASK-838) are removed with their strings. The desk's file.table op 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_cells adds wrap to the cell's style and a grow_row_height op in the same write, result wrapped; undo reverts the owner revision. Tests: cell_edit_wrap_tests.rs (5), Vitest CanvasLineBreak.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.ts keeps an ask card's reply as a sent prompt with the desk's reply text (resultAskReply, moved to the import-light src/features/projects/chat/askReply.ts and re-exported by resultAsk.ts; wire→desk answer toDomainAnswer), 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.vue draws 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, then run.finished finals; 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.ts in list coordinates (currentTurn, prevTurn, nextTurn, chatTurns), TurnJumper.vue (smooth list scroll, in-flight target), AppHeader.vue turn button; state.ts applySnapshot ends runs missing from active_runs (5 s grace). Tests: Vitest chatSync.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_with over the amba-office view reader and workbook cache (formatted text), CsvView from 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 as file.get, 25 MB cap, 120/min per phone, log op + outcome only. Additive, protocol v1; spec mobile-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.ts ja/ko, nav.remember. No new dependencies. Tests: Rust tests_table.rs (4); Vitest shellView.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_wanted and no_throttle_wanted / no_throttle_reason take the paired-phone count (background::remote_phones, 0 while the remote is off), new policy::phones_reason; the throttling opt-out for phones does not depend on the keep-awake setting. runtime/remote/client.rs WakeWatch (wall vs monotonic clock every 5 s, gap > 20 s = slept): a connected desk ends with remote.woke and reconnects without backoff, a backoff wait ends at once. Locale key background_keep_awake_tip (4 locales), BackgroundSettingCard shows it as a [?]. Spec mobile-remote.md §12 "As built (TASK-836)", ADR-093 update note, platforms.md §6. Tests: Rust tests_policy (+1), power (+1, 1 updated), client (+1); Vitest BackgroundSettingCard.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 (turnChangedFiles merges the write ledger deliverables.written and the draft list), ChatWorkFiles.vue; ChatWorkGroup takes files and emits openFile, its header token badge moved into the body stats line; ChatDeliverablesBlock keeps figures, warnings and claimed-unchanged only; ChatAgentTurn no longer renders DraftDeliverableBar (still used by routine turns) or the usage footer; ChatTurnTime takes detail. Locale keys chat_work_files, chat_work_files_count(_one) added, chat_deliverables_written_title and chat_deliverables_updated removed (4 locales). Tests: Vitest turnFiles.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.ts updated.

  • 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: layoutPatch returns reflow steps (moves and a stretched row strip, clipped above the footer) that WordPageCanvas applies to the painted page; page parts of a paragraph spanning pages are matched before and after the edit (partOf); useWordPages decodes 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: useWordTyping pending splits (PendingSplit, "\n" rows in layoutPatch), useWordPages hold, single-flight DocxViewCache::get, per-paragraph fragment lookups; timing report para_perf_tests.rs (perf_report, ignored) and WordTypingPerf.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.attachExternalTurn follows any run started elsewhere on the open conversation; useAgentRun onRunActivity; no event changes. Tests: Vitest externalRunLive.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?}, reuses orchestrator::project_files, keyset cursor) and file.get ({project_id, path, offset, length} clamped to 160 KiB so a chunk fits the 256 KiB session frame, too_large over 25 MB, path canonicalised inside the project root, hidden segments refused), per-minute limits files.list 60 / file.get 600; process.runs takes before and ProcStep.title (from agent_turn::step_title, now naming every step kind). Additive, protocol v1. src-tauri/src/runtime/remote/files.rs; phone files.ts, processView.ts, FileList.vue, FileScreen.vue; InboxList.vue removed. Spec mobile-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: Rust tests_files.rs (5), limits (+1 assertion); Vitest files.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 reproducing mobile-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 and client_id idempotency, owner-event mapping with cleaned 250 ms deltas, push requests); migration V056 (remote_phones, remote_actions, remote_requests); keychain items amba.remote.identity, amba.remote.phone.<id>; IPC remote_*; new dependencies tokio-tungstenite 0.30, rustls/webpki-roots (already in the tree), npm uqr 0.1.3 (QR). Spec decisions in docs/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); Vitest PhoneSettingsTab.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::ParagraphFragment gains align and cell (the table cell's box inside its border lines), served as optional align/cell on docx_page_layout fragments; docx::para_edit::LayoutText maps the layout's text (page and column breaks read as nothing) onto the runs' text, so check_paragraph, edit_paragraph_text, split_paragraph and merge_paragraphs accept w:br w:type="page|column" and refuse only an edit that would remove one. Viewer: pageText keeps the runs of different hit regions (cells, columns) on separate lines ordered region by region, adds an empty line for a region without glyphs, and caretAt weighs the distance to a line's box; typingPatch clips its cover and text to the cell, reports overflow, follows centre/right/justify; text writes run beside the input queue and ask useWordEditor.relayout() only after RELAYOUT_IDLE_MS (1500 ms) or on leaving the paragraph; fragmentsOnPage groups 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-office para_split_tests (+2), docx_layout::tests::flow (cell boxes, alignment), host projection_docx (+1), ignored probe office::para_edit::tests::typing_save_cost; Vitest WordPagesTable.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 within LIMITS.phoneLiveMs 60 s: last message time in the socket attachment or the auto-response ping timestamp) decides push and ready.phones[].online, closes stale sockets with 1001 and sends the desk presence offline; desk Conn::push no longer skips phones it believes online (30 s limit kept); PWA RemoteConnection.suspend() and src/mobile/lifecycle.ts. Protocol v1 unchanged; spec §2.6, §2.7 point 13, §11.2, §12 "As built (TASK-832)". Tests: gateway remote.spec.ts (+3), Vitest lifecycle.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 Msg gains optional result ({status, files[≤20], figures[≤6], open_items[≤10]}, built by runtime/remote/result_card.rs from metadata.result; additive, protocol v1); src/mobile/ ResultCard.vue, TurnJumper.vue, turnJump.ts (reuses useTurnNav.ts helpers), .phone-msg overflow rules in mobile.css.

  • Added: AMBA on the phone (TASK-815, M123; not yet published). A web app for m.ambadesk.com that 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 entry vite.mobile.config.ts, pnpm build:mobile → dist-mobile/, pnpm dev:mobile on 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.ts split from useRefOpener.ts (re-exported). Spec mobile-remote.md section 12 "As built (TASK-815)". Tests: Vitest src/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_ask under the run's drive claim, AskAnswer), IPC process_answer(runId, stepKey, answer), amba/ask@v1 waits with channel: "app" outputs while INBOUND_PAUSED; coded errors process.ask_* (4 locales); ProcessAskCard.vue, processAsk.ts, mock flag process-asks. Tests: Rust tests_answer.rs (5), Vitest ProcessAskCard.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); commands docx_split_paragraph / docx_merge_paragraphs (src-tauri/src/office/para_split.rs) share para_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 by typingPatch as 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), useWordEditor now 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.vue removed; 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-office para_split_tests (7), host para_split_tests (3, incl. refused_while_claimed), Vitest WordPagesEdit.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'!B4 as =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_preview returns {text, mode: "series" | "copy" | null}; tests: Rust office::fill (+1), fill_series (+1 assertion), Vitest CanvasFillHandle.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_layout reads c:externalData workbooks (Package::workbook, ≤ 40 MB, cached per deck) through xlsx::view::BookCells; xlsx::chart_cache (caches for add_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) beside MAX_IN_APP_PREVIEW_SIZE_BYTES (20 MB) in commands/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) and MAX_DOCX_BYTES now that constant, ViewCache::get refuses workbooks over it; frontend previewKind.isCanvasOnly / sizeLimitBytes, DeliverablePreview shows only the canvas viewer for such files, PreviewFallback names the limit (4 locales). Peak RSS opening a synthetic 189 MB deck (180 MB of pictures) through layout_pptx: 1.07 GB, about 1 s. Tests: amba-office chart/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); host commands/projects/tests_size_caps.rs (4); Vitest previewFile.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 shared DocxViewCache layout through amba_office::display::pdf::render_pdf with the viewer's font library, subset-embedded fonts and ToUnicode; refuses a truncated layout). export_project_file_to_pdf tries 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.ts WORD_CARET_ENABLED = false gates useWordCaret (new enabled option, defaulting to the flag: no boxFor bar, onKey scrolls by SCROLL_STEP / a view / the ends) and Enter/F2 in WordPagesViewer; the TASK-797 code is kept and WordPagesCaret.spec.ts / WordPagesEdit.spec.ts run 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_bottom border widths in the row height; MRow::keep_next + MTable::keep_need in place_table and chain_need; bare page-break mark in place_segment; bare section-break paragraphs skip numbering; compatibilityMode read from settings → ParaFmt::justify_shrink; continuous column regions start below the pending space after), text (ParagraphProps::justify_shrink, Prepared::run_fonts for line metrics), tests +8 (docx_layout/tests/fidelity.rs 7, text 1 + 1 assertion); scripts/office-fidelity/docx.mjs compares 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,5 in 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_xml from c:chartSpace with a ChartTheme and an optional DataSource for parts without a cache; draw/render into a display list; nice_scale after Excel's auto-scale rules; model in chart::model); DrawingML colours moved to dml_color. Slides: pptx_layout/charts.rs draws a frame's chart natively when it parses and its type is supported (preferred over the mc:AlternateContent fallback 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), command spreadsheet_sheet_charts(projectId, filePath, sheetName?, locale?) -> {charts: [{id, name, from, to, width, height, native, list (AMBD base64)}]} cached per file version in ViewCache; canvas/sheetCharts.ts paints the lists in every grid region after the cells. Tests: amba-office chart parse (10), scale (7), draw (8, PNG pixel checks), slides native_charts.rs (3: agent deck drawn natively with pixels in the theme accent, native over a stored picture, unsupported keeps the stand-in), sheets tests_charts.rs (3: the agent's xlsx chart at its anchor from stored cells, Excel-written chart, scatter stand-in), host projection_charts (1); Vitest sheetCharts.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 1 becomes Item 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, offsets k from the source's first cell (negative up/left), LinePlan Copy / Linear (least squares) / Months / Numbered / Names / PerPeriod, formulas via office_verify::refs::edit_formula(Translate), ≤ 50 000 cells); style_from also takes #<cellXfs index> (Workbook::check_style_index). Commands in src-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-only spreadsheet_fill_preview(…, locale?) -> string | null; same owner flow and errors as spreadsheet_edit_cells. Frontend: canvas/formulaRefs.ts (TS reference finder, colours, canInsertRef, refText, F4 cycleAbsolute), useFormulaPoint.ts (capture pointer handler, editor key hook editorKey, 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.replay for steps written by another command; the editor keeps the edited cell's sheet; the formula bar takes runs and forwards F4; SpreadsheetFooter holdFocus. Tests: Rust fill_series (7), office::fill (6, incl. refused while claimed); Vitest formulaRefs.spec.ts (6), CanvasFormulaPoint.spec.ts (6), CanvasFillHandle.spec.ts (5), CanvasRefsFill.spec.ts reachability (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 like 1.234,5 and dates like 09/12/2025 are 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-office StyleSpec/StyleChange gained underline, font name, vertical alignment, border (four sides, Excel line styles) and replace (start from cellXfs 0). Frontend: canvas/clipboardParse.ts (Excel x:num and mso-number-format, Sheets data-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 via style_from), useCanvasPaste.ts (native paste event after ⌘V, Clipboard API fallback after 150 ms or from the menu), useCanvasStructure.ts + CanvasStructureDialog.vue, useCanvasEditOps.ts; EditStep.replay runs these steps' undo (snapshot) and redo (same request). Tests: Rust paste (8), structure (8, including refused while claimed for each command and the revert); Vitest clipboardParse.spec.ts (7), pastePlan.spec.ts (6), CanvasPasteStructure.spec.ts (8), reachability CanvasPasteReach.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_title from c:chart/c:title rich text or c:strRef cache, no longer an axis title, paint_stand_in which always draws the box even if its text cannot be laid out); SlideOptions.locale; frame takes the inherited placeholder position; mc:AlternateContent draws Choice when Fallback drew nothing. pptx_slide_layout / pptx_slide take an optional locale (the drawn-deck cache is keyed by it), sent by useSlideDeck from the UI language. Tests: amba-office pptx_layout/tests/stand_ins.rs (6: the agent's add_chart with and without a title and in a placeholder, layout-placeholder and group positions, undecodable fallback, SmartArt/OLE, title extraction, labels), host projection_pptx (+1), Vitest SlideDeckViewer.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, TS refGrammar.ts, shared fixture +7 cases): RefTarget::Slide gains optional quote and shape (s2:"…", s2:shape=Name; read part stays s2; the quote is the chip preview). amba-office pptx_layout::Slide.shapes (SlideShape {id, name, rect}, the slide's own top-level shapes that draw something), sent by pptx_slide_layout as slides[].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), SlideCanvas marks sel and shape; DeliverablePreview wires the slide view's placeSelected / requestContextMenu to useViewerHostPorts. Tests: amba-office pptx_layout shapes (+1 assertion block), host projection_pptx and refs (+1); Vitest slideReading.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.ts paintFindMarks paints after the cell regions, per region binary-searching the row-major match list (useCanvasFind.marks), so only visible matches cost anything; Palette gains findFill, 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_VN all read 09/12/2025 typed into an empty cell as 9 December, shown 09/12/2025; ja/ko read year-first and otherwise month-first; 32/13/2025 stays text. No defect found on that path; a cell that already has a month-first format (mm/dd/yyyy) stores 9 December but shows 12/09/2025 in 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-2025 or 15/03/25 typed into an empty or General cell is saved as 15 March 2025 and the cell gets the dd/mm/yyyy format (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/2025 stays text. Undo of such an edit also puts the cell back to General.

  • Internal (TASK-800): parse_input gives a date the locale's short_date code instead of built-in 14; spreadsheet_edit_cells cells take an optional format, results carry previousFormat (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.ts routeFindKey in DeliverablePreview's window keydown routes an unhandled ⌘F to the shown viewer's openFind() (canvas grid, DOM grid, Word pages, Markdown) unless the preview is hidden, the event was defaultPrevented, a text field outside the preview or a cell edit session has the focus. New components/find/ViewerFindBar.vue (shared bar) and useDomFind (<mark class="doc-find-mark"> over text nodes, cross-element matches, cleared before re-render). useCanvasFind now 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 paragraph index in the page layout's order (locate_paragraph: body, tables, rows and cells through sdt/customXml/ins wrappers as docx_layout::read walks them; a paragraph inside a wrapper is refused), checks its content (plain w:t/w:tab runs, bookmarks, comment ranges and references, hyperlinks), compares its runs' text with the text the viewer read, and applies text_diff (common prefix/suffix snapped to grapheme boundaries) through replace::{insert_text, replace_range} (now pub(crate)); refusals are ParaRefusal codes. Command docx_edit_paragraph(projectId, filePath, paragraph, expected, text, baseVersion) -> {fileVersion, revisionId, paragraph, previous, text} (src-tauri/src/office/para_edit.rs; errors conflict | busy | refused{reason} | invalid | failed) runs edit_docx::edit_docx_in_place_checked (version check under the file lock, docx gate, Doc-Ops revision author owner, atomic write; edit_file_with shares its commit tail) and drops the path from DocxViewCache (invalidate). Read-only pre-check (TASK-798b): para_edit::check_paragraph(input, index, expected) -> Result<ParaInfo{text, links}, ParaError> shares paragraph_path + inspect (content rules, text read as expected) with the edit, so every rule but the link one (it depends on where the edit lands; touches_link) is decided before typing; command docx_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 by session.attempt; reset() on file change); word_edit_refused_* texts read "Can't edit here" where they show before typing, new word_edit_link_hint, useWordEditView (box geometry, caret placed after the write once the new layout is painted), WordParagraphEditor.vue (textarea; IME-safe keys); paraOffset.ts aligns a paragraph's painted lines with its fragment text, and caretParagraphOffset now uses it (earlier lines and wrap spaces count). WordPagesViewer gains prop readOnly; its styles moved to word/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, END for a place on a page not decoded yet, clamped by clampCaret once its text exists), hitCaret, caretBox, indexAtX, stepChar, stepWord (Mac ⌥ rules over pageText.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). useWordSelection now 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.ts handles the keys, the sticky column, PageUp/PageDown by the view height, scrolling to the caret and focus; WordPageCanvas draws the bar (caret, caretKey props). The Lab switch default is unchanged (off). Vitest +12 (caretNav.spec.ts 7, WordPagesCaret.spec.ts 5).

  • Added: slide view on canvas (TASK-799, Experimental Lab → "Slide view on canvas", off by default). With the switch on, a project's .pptx opens 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 as deck.pptx#s2 or 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 .ppt files keep the usual preview.

  • Internal (TASK-799): amba-office pptx_layout (layout_pptx(bytes, fonts, &SlideOptions) -> SlideDeck: per slide a DisplayList, title, notes, hidden flag and SlideText lines with page rect and caret x per character; top-level shapes as Location::Slide { index, shape } hit regions; fallbacks counts 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-ea fonts, 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:custGeom incl. arcTo), fill (solid, gradient as clipped bands/rings, picture, pattern, group fills; outlines with dashes, caps, joins, arrowheads; p:style refs), text (text engine layout, bullets/auto-numbers, insets, anchors, wrap none, vertical text, normAutofit stored 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:AlternateContent fallbacks), 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) and pptx_slide (AMBD bytes, conflict on a stale version), PptxViewCache LRU (4 decks) per path and file version, same fonts as the Word view (projection_docx::fonts now pub(crate)); lab setting viewer.slideCanvas (lab_set_slide_canvas, viewer_slide_canvas, slideCanvas in the lab state). Frontend: src/components/slides/ (SlideDeckViewer.vue, SlideCanvas.vue, useSlideDeck.ts, slideText.ts find/targets/copy, slideCanvasSetting.ts), services/api/slidePages.ts, routing in DeliverablePreview with fallback to PresentationViewer. Not in P1a: selecting text with the mouse, shape anchors (#s2:shape=…), native charts, shadows. Tests: amba-office pptx_layout (22 + doc test), host projection_pptx (2) and lab (1); Vitest slideText.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 .csv or .tsv scrolls 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 as so.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-08 are 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 via encoding_rs (already in the tree, now a direct dependency) composed to NFC), delimiter_for (tab for .tsv/.tab, else context::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, and CsvView (decoded text + a sparse index of every 64th record's offset, rows/cols extent, auto widths from the first 200 records: len + 2 characters clamped to the 64 px default .. 45; a tile parses only its rows; 200 MB cap like the docx page view). ViewCache now holds xlsx workbooks and CsvViews in one LRU per (path, mtime, size) (get_csv). spreadsheet_sheet_layout / spreadsheet_tile accept .csv/.tsv (one sheet Sheet 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 and Records, so both grids number rows alike. amba-office: xlsx::tile_text::encode_text_tile writes tile v1 for a plain text grid (one default style, text cells with the General alignment flag, default row height, given column widths). Frontend: useCanvasGrid regex in DeliverablePreview takes csv/tsv; useCanvasHostPorts gains sheetless (places without a sheet, placeOf(null, …)) and actions.hideEdit (no Edit cell item for CSV/TSV). Tests: Rust csv_view (4), amba-office tile_text (1), projection_tile updated; Vitest CanvasCsv.spec.ts (2), CanvasPlaces.spec.ts CSV 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::resolve order is metric alias (DEFAULT_ALIASES, now pinned: wins over a loaded face of the same family; set_alias makes one ordinary, set_metric_alias adds one) → the family itself (bundled/caller faces before system faces of the same family) → class alias (CLASS_ALIASES table, then class_substitute by name: mono → sans → serif hints, .Vn/VNI-/VN prefixes 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 its OnceLock on the blocking pool; the docx view cache is in memory per process, so nothing goes stale. Canvas draws by the resolved family (bundled twins from bundledFonts.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/2025 in English) instead of 46000; a date with a time shows 09/12/2025 14:30:00, a time 14:30:00, a percentage 12.5%, as in Excel. A date you type in that form (or as 2025-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 Vietnamese 03/04/2026 is 3 April. An impossible date such as 31/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; None keeps the raw number) and parse_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 via serial, 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 a str) additively, like TASK-753's fill; golden tile regenerated (the date cell carries 15/03/2023). inputOf uses it. spreadsheet_edit_cells takes an optional locale (the viewer sends its language; default en): cell_spec reads the input by the target cell's format class, input_of gives undo's previous in the same locale form, and General cells that receive a date, time or percentage get their format through a separate set_cells op with style.num_format. Tests: Rust numfmt::input (3), cell_edit (+2), golden tile; Vitest CanvasDateEdit.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): SpreadsheetFormulaBar is a <textarea> with props editable, editing, navigable (all default false, so the DOM grid keeps a read-only bar) and emits begin, input, key (Enter/Tab while editing, Esc), pointer, blur, commit, cancel, goto; the canvas viewer routes them to useCanvasEditor (one draft for both views). useCanvasEditor.open(initial?, from: "cell" | "bar") records origin, and useCanvasEditorView leaves 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.ts 10, CanvasPlaces.spec.ts reachability +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 as spreadsheet_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 op SetRowHeight {sheet, rows: {row: pt | null}} (owner-only, not in the agents' op table; null clears ht/customHeight so the row is sized automatically, 0 sets hidden), and set_col_width now sets hidden="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 rule trunc((px − 5)/7 × 100 + 0.5)/100 → stored trunc((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, withSizes layout overlay), useCanvasResize.ts (capture-phase pointer handlers on the scroller, guide via CanvasResizeGuide.vue), useCanvasGrid.previewSizes/textWidth, MeasureCache.excelWidth; useCanvasEditor gains send (the shared owner-write path) and record, and resize steps (EditStep.resize) join its undo/redo stack. Tests: Rust office::resize (8); Vitest resize.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 (asks spreadsheetFileBusy on open and on path change; file-busy-changed with a matching projectRelativePath only triggers a new question, so same-named files of two projects never cross; latest answer wins; an error never locks) feeds useCanvasEditor's new fileBusy option; 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): pageText groups 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; WordPagesViewer counts 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_script outputs, and every recorded changed file) until the run returns (RunClaims guard in run_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's spreadsheet_edit_cells busy probe) checks the claims as well as the Doc-Ops write mutex. Dry runs claim nothing. Command spreadsheet_file_busy(projectId, filePath) -> bool (frontend spreadsheetFileBusy) probes it; event file-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 in lib.rs, so claims.rs stays 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.ts holds 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. MeasureCache takes snap (on for the grid, off for the cell editor) and runs(), so paintCells draws each glyph within 0.5 px of its snapped position; the cell editor's padding follows (2 px). New pnpm run fidelity:grid-fit (scripts/office-fidelity/grid-fit.mjs, synthetic xlsx via xlsx-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.ts and editorLayout.spec.ts updated 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-phase contextmenu preventDefault in main.ts (since 0.5.0): it now runs in the bubble phase on window, after every element handler, and exempts text areas, text-like inputs and contenteditable. 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_section treats 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 in try_balance). Pages elsewhere (no footnotes on the page with the break) are unchanged; pnpm run fidelity:docx unchanged (12/13, 19/32, 795/1025). Tests +2 in docx_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=12 or hop_dong.docx#p3 now 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): read takes part para=N, pN and pN-M on .docx/.docm/.dotx/.dotm (from the page viewer's layout through runtime::docx_places; pages page with the PDF Pages cursor, page_range, total_pages); refs::resolve::check checks 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_resolve runs 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 .docx opens 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 .doc files 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} and docx_page(projectId, relativePath, page, fileVersion) -> AMBD bytes (raw IPC response; typed errors {kind: conflict|invalid|failed}, conflict with currentVersion when the file changed since the layout) in src-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 and fileVersion (AppState::docx_view_cache), the spreadsheet commands' path confinement, .docx/.docm/.dotx/.dotm only, 200 MB cap. Lab setting viewer.wordCanvas (lab_set_word_canvas, viewer_word_canvas, wordCanvas in the lab state). Reference grammar: RefTarget::Paragraph / {kind: "paragraph", paragraph} written #para=N (1-based, Word body paragraphs incl. table cells), #p3 now valid on Word files (project_ref_resolve), shared cases in tests/fixtures/refs.json. UI: WordPagesViewer.vue + src/components/word/ (useWordPages layout/page cache with double-buffered version swaps, pageText lines and character boxes from glyph runs, wordDoc find and targets, useWordFind, useWordSelection, WordPageCanvas, WordPagesSidebar). docx-preview stays as the fallback. Tests: Rust projection_docx (3), refs (+1), lab (+1); Vitest WordPagesViewer.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_layout now 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 real PAGE/NUMPAGES values in the body; JPEG pictures are converted to PNG so the PDF and PNG outputs draw them (image crate, already in the app, now also a crate dependency). No public API change. New pnpm run fidelity:docx (scripts/office-fidelity/docx.mjs + example docx_lines): page counts and lines per page against ONLYOFFICE's x2t on 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 feature bundled-fonts; FontLibrary::bundled appends 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' VDMX makes 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:text now 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 (crate fonts/ now 7.1 MB).

  • Internal (TASK-773, amba-office): documentation bar D2 — #![deny(missing_docs)] (with docx and layout exempt until TASK-775), cargo doc -D warnings clean, examples read_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 warnings default/no-default/all features, tests on Linux/macOS/Windows, rustdoc -D warnings allowed to fail until D2, MSRV job, cargo-deny with deny.toml, cargo-semver-checks from 0.1, weekly/manual fuzzing; nested, so it never runs in this repository), rust-version = "1.88" (floor from the locked time 0.3.55), cargo-fuzz targets package, xml_parts, numfmt in crates/amba-office/fuzz/ (own workspace, excluded from src-tauri/) with a generated 24 KB seed corpus that tests/fuzz_seeds.rs replays on stable in pnpm run gate. New pnpm run office:ci (scripts/office-ci.mjs) runs the local subset: rustfmt and rustdoc advisory for now, Clippy both feature sets, a --no-default-features test build, the seed replay, cargo-deny when installed.

  • Internal (TASK-775, M122 W1a, amba-office): docx_layout::layout_docx lays 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. Example cargo run -p amba-office --example docx_pages -- IN.docx writes 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 feature bundled-fonts; FontLibrary::bundled loads 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 fidelity mean 0.963 → 0.972 (vietnamese 0.898 → 0.950); new pnpm 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-office can 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. lopdf and allsorts moved 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): editorRect takes an EditorDom (the textarea's own one-line scrollWidth and wrapped scrollHeight, 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 with clip-path and 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-office display lists in src/components/office/display/ — decodeDisplayList (AMBD v1/v2 with DataView, refuses everything the Rust decoder refuses with a typed AmbdError), 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 via createImageBitmap, glyph runs as fillText in the CSS font with letterSpacing), hitTest (same as DisplayList::hit) and cssFont. Parity fixtures tests/fixtures/display_v{1,2}.json written by the crate test display::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's fileVersion is unchanged; host watch keyed by strings, no longer by props.data identity); 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), editorRect takes wrapText and returns scrolls; canvas stage overflow: 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 bare path#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:D20 plus 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::hit with the same geometry as the canvas grid (shared case table tests/fixtures/sheet_hit_cases.json), and display-list hit regions (DisplayListBuilder::region, DisplayList::hit; AMBD v2 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_layout adds defaultColWidthPx (the crate's pixel value; the canvas grid uses it instead of a hard-coded 64 px) and defaultColWidth is 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 one set_cells batch through the engine-A file flow (new office::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 the spreadsheet_sheet_layout response (additive). Owner revisions: author owner, summary owner_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; CanvasSpreadsheetViewer now emits cellEdited (same payload as the DOM grid; row = 0-based sheet row). API editSpreadsheetCells, SpreadsheetSheetLayout.fileVersion. 8 strings × 4 + Lab help text. Mock: spreadsheet_edit_cells, flags canvas-edit-busy, canvas-edit-conflict. Tests: Rust office::cell_edit (8), file_history (+1); Vitest CanvasCellEdit.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.ts defines ViewerMenuItem, ViewerContextMenuRequest (x, y, place: RefTarget, text?, textTruncated?, items?) and DocumentQuotePayload. DeliverablePreview listens for placeSelected / requestContextMenu on the canvas grid (preview/useViewerHostPorts.ts; refs only via formatRef on the file's project path) and keeps the DOM text-selection menu (TASK-162) for other viewers. DocumentContextMenu gains 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 / askAgent carry ref? and textTruncated?; the composer gets file: (a 📍 chip, refLinkText mirrors the runtime's link_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 .xlsx in 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, .xls and 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) and ViewSheet::rows_hidden_by_default; tile v1 gains cell flag bit 6, a *x fill (UTF-16 position + code point, additive: the golden tile is unchanged). App: command spreadsheet_sheet_layout (runtime/projection_tile.rs), lab setting viewer.canvasGrid (lab_set_canvas_grid, viewer_canvas_grid = switch on and lab shown, canvasGrid in lab_get_state). UI: CanvasSpreadsheetViewer.vue (same props/emits as SpreadsheetViewer + fileVersion) and components/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). tileClient takes several rectangles per viewport, loads single tiles on demand, notifies on arrival and drops answers sent before clear(). 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: Rust layout (1), projection_tile (+layout), tile_codec (+1), lab (+1); Vitest geometry.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 of GlyphSpans with glyph ids and positions plus css_font() for canvas; hit_test/caret_rect; render_png (tiny-skia). cosmic-text, tiny-skia, rustybuzz, unicode-linebreak, unicode-segmentation move to [workspace.dependencies] (already in the tree; Cargo.lock only gains edges). Example cargo 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 .xlsx now 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, CellLookup for ViewSheet), 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 fixture crates/amba-office/tests/fixtures/tile_v1.bin). App: query_spreadsheet_viewport takes optional locale and sheetRowStart; xlsx cells carry formatted from the number-format engine (the interim date text is gone: date values are serial numbers again), color, align, cfStyle, and the response a styles map of CSS-ready paint data (runtime/projection_xlsx_paint.rs). New command spreadsheet_tile (runtime/projection_tile.rs, raw tauri::ipc::Response, ≤ 262,144 cells). UI: DeliverablePreview passes projectId; 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 width px = trunc(((256w + trunc(128/7))/256)·7), height pt·96/72), usePageCells (render data per page), SpreadsheetTable.vue (cells; selection, range and ref highlight are overlay divs; td.ref-target stays 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-used remoteRows path 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: crate tile_codec (4 + 1 ignored bench), app projection_xlsx (+1), projection_tile (1); Vitest tileCodec.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 .xlsx is 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, numFmtId per style and custom codes), lazy sheet()/sheet_at() parsed by a streaming quick-xml pass into a sparse row-major store; ViewSheet exposes 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, and tile(rows, cols). App: runtime/view_cache.rs (LRU of 8 keyed by path, mtime, size, in AppState), runtime/projection_xlsx.rs (xlsx viewport; legacy formats keep calamine), command runs in spawn_blocking. Viewport response gains optional rowNumbers, originRow/Col, sheets, merges, colWidths, rowHeights, defaultColWidth/RowHeight, hiddenRows/Cols, frozen, date1904, showGridLines, and per cell styleId, formatted, formula. quick-xml moved to [workspace.dependencies] (same version, no new build). Tests: crate xlsx::view (12 + 1 ignored release bench: 100k × 10, 5.79 MB, first tile 196 ms), app projection_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 setting session_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 call MemoModel/ProviderModel via ProviderRouter::resolve_for(…, "session_memo") in the project's egress and ledger scope; model: Anthropic → claude-haiku-5-5 on 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_build event session_memo/fallback. Triggers: runner/session_compact.rs before a turn (remainder > 6,000 tokens, or meter ≥ 70 % of the window); IPC session_memo_compact (refused while a turn runs, one at a time), session_memo_get, session_memo_save. Meter: Source::Compacted after a compaction newer than its request. UI: ChatHeaderBar button + HelpTip, SessionMemoSection.vue in ProjectContextDialog; 15 strings + 7 error codes ×4; mock handlers sessionMemo.ts. Tests: Rust session_memo::tests (8), execution::tests_session_memo (2, real runner); Vitest SessionCompact.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 every workbook write 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[].kind gains later (result.later, result.deferredByOwner; never in questions, never blocked), paid inside finish (1,591 → 1,588 B, every profile −3 B; the ## Finishing rule 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 earlier later items; matching by precise place or ≥ 60 % of words with no missing number; items of several sentences split; finish items and ask_user questions converted (not_asked when a card has none left); input → later in auto levels; turn note ## Owner will supply later (≤ 6 lines, ≤ 900 B, empty without deferrals). Board: ItemKind::Later (Waiting), ClosedBy::Deferred on the Open item that asked it, answered by a later reply block; project_board/later.rs idempotent, run by apply_run and 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 flag defer-later. Tests: Rust deferred_tests (9, incl. the replay of runs e6b0019a → 4f3b82c6), tests_finish_later (3, real runner), tests_later (3, board + replay); Vitest DeferLater.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_user dispatch via inferred_ref/inferred/matched, never ref; UserQuestionItem.is_point() ignores a guessed place). places[].inferred: true | "content" (+ matched) | "file". BoardAsk.inferred/matched, board Open items refs. UI: RefChip inferred/matched props, 2 strings ×4. Tests: Rust place_content (9), place_infer replay 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); Vitest RefChip.spec.ts (3), FinishPlaces.spec.ts (+1 assertion), turnProtocol.spec.ts (+1), resultAsk.spec.ts. models/question.rs split out of models/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 optional ref and current, paid for inside finish (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 with ref_notes in 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 written changed.at, else read range, else A1); checked, inferred: true. The first plain mention of each project file in the answer becomes a link.
    • answer_refs: a bare rN in an open item, check or question becomes the file name, and the item's place when it named one.
    • mentioned_file accepts the @ picker's zone prefix (workings/…, input/…), so a picked @file#place reaches pointed_note.
    • UI: TurnResult.finish.places + placeOf; resultAsk items carry ref/current (→ review queue); MentionField.vue (useMentions + provideMentionSource) in InteractiveQuestionCard, ChatReviewQueue edit and note; 📍 chips on card questions and on checks. Mock flag finish-places.
    • Tests: Rust finish::places (2), place_infer (4), answer_refs (+1), pointed_note (+1), tests_finish_places (2, real runner replaying run 92a7cfec via tests/fixtures/finish-places-92a7cfec.json), tools::finish (budget, schema); Vitest FinishPlaces.spec.ts and AnswerMentions.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.
    • read results carry cite (about 32–40 B per read), kept by compact repeat reads.
    • runner/answer_refs.rs, run in complete_run:
      • rN → file reference in the answer, finish figures and key figures (before finalize_report).
      • verify checks every label with resolve::locate/check: a valid place is rewritten canonical, an invalid one becomes plain text.
      • It writes metadata.refs {valid, invalid[]}, also on final_response.
    • RefResolution.preview (first 8 cells of a range, quote, lines). resolve::locate accepts an absolute path inside the project.
    • workbook result changed.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_pdf re-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 lose title).
      • utils/refCite.ts (placeOfPart, toolPlace), deliverablesReport (numericWarnings, warningRef, WrittenFile.at).
      • ChatDeliverablesBlock (numeric warnings: 5 shown, "Xem thêm", [?]; changed-at chip), ChatToolRow place chip (.ctr__row), BoardItemRow refs 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, cite in 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).
  • 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_user question items take optional ref, current, suggested (UserQuestionItem), paid for in the same tool: shorter description and no required on a question/option (the dispatcher refuses those anyway); ask_user 560 → 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_resolve logic; canonical when valid, dropped with ref_notes in the card's result otherwise), ## Review points turn note (project user turns only), auto levels take suggested (reason suggested, 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 / 📝 note read back into decision/note per answer with the question's ref (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), board review run action + Xem lại, ChatUserTurn shows each answer's place; mock flag review-queue; strings ×4. Tests: Rust review_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); Vitest ReviewQueue.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, .pptx slides, text lines/quotes/headings), IPC project_ref_resolve; shared fixture tests/fixtures/refs.json (54 cases) read by Rust and Vitest; finish/verify and verify_source::line_anchor parse places with the grammar, report_key_figures validates 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 at in 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, DeliverablePreview target/targetKey → viewers (targetResult), spreadsheet/useSheetTarget.ts, grid range selection, MarkdownDocumentViewer/CodeDocumentViewer/CodeBlockViewer/PresentationViewer targets; MarkdownMessage ref chips (quoted places with spaces, <…> destinations) checked through the opener; turnProtocol.figurePlace; mock flag pinpoint-refs; strings ×4. Tests: Rust runtime::refs (6), pointed_note (1), mentions (+1), readers (+row numbers); Vitest refGrammar.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#place reaches 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-dist 6.4.299 (legacy build, lazy chunk; worker pdf.worker.min-<hash>.mjs shared across files); CMaps, standard fonts, ICC profile and the JPX/JBIG2 wasm + JS fallbacks emitted to dist/pdfjs/ and served at /pdfjs/ in dev by the amba-pdfjs-assets Vite 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 contract target/targetKey → targetResult (found/not_found/unsupported; Word page without a quote is unsupported), PDF selectionInfo({page, text}) for TASK-738; DeliverablePreview passes target/targetKey to 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), Rust office_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.rs refuse_card (dispatcher, every level, before survey/auto/card handling: tool error invalid_args with a fix; options required in auto levels), answer_card decides only real questions with options (no more "not known yet" auto answers), turn_note (## Autonomy in the turn's first message via context_build, 394–447 B, attended auto runs only), AutonomyState.asksBack + metadata.autonomy.asksBack from runner/asks_back.rs (last paragraph, vi/en/ja/ko patterns), closing notice counts it as waiting; finish_answer takes ctx. Board: ClosedBy::NoQuestion, project_board/repair.rs (close_no_question, run by project_board::read, writes only on change), apply closes stand-in decisions and adds <run>:asks_back (Waiting question, free text); refresh neither lists nor reopens no_question items; rewind::no_question → rechoose preview no_question, spawn_rechoose refuses. UI: autoDecisions.ts (realDecisions in ChatAgentTurn), 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: Rust tests_autonomy (+4: empty card ×3 levels, auto level without options, ## Autonomy in 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); Vitest ProjectChatRechoose.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 where CSS.supports("overflow-anchor") is false, i.e. WKWebView, which then sets overflow-anchor: none; WebView2 keeps native anchoring; in both a chat that follows the bottom is kept on it). useSmartScroll.handleScroll leaves follow mode only when the position moved up (a scroll event after content grew below no longer counts as leaving), release(). ChatTimeline: no content-visibility: auto on turns (also retires the TASK-706 spinner opt-out). ChatAgentTurn: the copy/usage row no longer depends on another turn running. useChatRunSession.attachProcessTurn and 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.ts updated.

  • 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.vue gains agentName and compact props, SHARED_PARTS/AGENT_PARTS sections, a ring pill and a popover teleported to <body> (fixed, under the pill; the chat frame clips); ChatHeaderBar.vue hosts it (ResizeObserver, compact under 520 px) and the "Những gì agent biết" dialog it opens; ProjectHeader loses the meter and its conversationId prop, ProjectStudio its openConversationId, ProjectChat stops 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.yml loses the build-macos-intel job, the macos-intel platform and the macos_intel_runner input (all = Windows + Linux + macOS Apple Silicon); release-distribute.sh collect-bundles macos-intel and release-deploy-local.sh --platforms macos-intel are refused; the smoke test drops darwin-x86_64 from its defaults and refuses it. Live manifest alpha/manifest.json: publish-latest always publishes it, and writes the legacy alpha/latest.json (polled by app 0.2.14–0.4.13 with the old pubkey) only while the release is <= the highest UPDATER_KEY_BRIDGES version in wrangler.toml (new scripts/updater-key-bridges.mjs, fail closed when unreadable); above it, it logs legacy latest.json frozen at <bridge>. The GitHub Release latest.json mirror follows the same rule. update-latest-json-r2-local.mjs merges from alpha/manifest.json (first time, on 404, from alpha/latest.json); release:mac's report, register-release-artifacts.mjs --from-r2, the site download fallback, the worker /v1/releases/latest.json R2 fallback (legacy only while manifest.json is 404) and r2-prune.sh (also keeps the frozen file's versions and every bridge) read it; the smoke test checks manifest.json and 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 only manifest.json, later bridge, fail closed, Intel refused; report reads manifest.json), worker updater-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. the windows-x86_64 ⇄ -nsis fallback), which now picks the highest allowed version rather than the newest row by created_at. release:mac stops before distributing when the .sig key id differs from the tag's plugins.updater.pubkey key id (scripts/check-updater-key.mjs, key ids only) and refuses to build a bridge version locally. release-smoke-test.mjs probes from X.Y.Z-0 instead of 0.0.1 so a bridge never caps it. Static alpha/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: worker updater-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_SECRET and deploy, see infrastructure/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 D1 upstream_keys under a new KEY_ENCRYPTION_SECRET (HKDF info amba-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 key env. 401/403 → unhealthy, 429 → cooling until the provider's reset (TASK-730 parsing), each retried once on the next key (failover:<status> zero-cost row); all cooling → 529 with amba.window: "upstream". usage_events.upstream_key_id (additive, migration 2026-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 (the ADMIN_SECRET bearer reads), each audited with a secret-free detail. Account abuse guard: red alerts on the overview for an hour over USD abuse_hour_usd (10) or abuse_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_cap only, audited as system). Shared sealing code src/sealed.ts (web keys unchanged). No desktop change, nothing new stored about users (no privacy-policy change). Tests: gateway upstreamKeys.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_write from 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 a question_turn::Pending, new preset field), supersede (metadata.supersededBy); metadata.rechose. IPC autonomy_rechoose_preview; RunIntent.rechoose → commands/autonomy.rs::spawn_rechoose (spawn_run_seeded: claim, files, supersede); code autonomy.rechoose_unavailable ×4. Board: auto_decision items with a point carry their options in ask. UI: ChatAutoDecisions.vue (under the answer), ChatRechooseDialog.vue (card → plan → confirm), rechoose.ts (provide/inject), board row button + [?], BoardRunAction rechoose, Trash reason rechoose; strings ×4. No prompt or tool-payload change. Docs: ADR-087 §5b as built, runtime.md, site manual ×4. Tests: Rust tests_rechoose (2: point + files + restore + locked skip + reseed + supersede; approval moved back), rewind (1), board (+asserts); Vitest ProjectChatRechoose.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 default autonomy_default:<id> in prepare_run), RunCtx.autonomy (attended runs only), RunState.autonomy / ResumeState.autonomy. runner/autonomy.rs: answer_card (Balanced = one is_recommended per question; the tools::question stand-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 result held_for_owner, no prompt), ceiling_hit/ceiling_stop (provider_error autonomy_ceiling, paused, allowance renewed on resume), finish_answer, metadata.autonomy, record_notice. runner/quota_wait.rs from turn.rs (AMBA windows at once, rate limits after the quick retries; retry_attempt.quotaWait, checkpoint quotaWaitUntil, ≤ 24 waits, cancel/Thử ngay/Dừng). providers/quota_reset.rs (gateway resets_at=, Anthropic anthropic-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, OpenAI x-ratelimit-reset-*, gemini::quota::is_daily, AMBA window=upstream; rate-limit provider_error.resetsAt. runtime/autonomy/ (project default, wait.rs, notice.rs: run:autonomy-finished, Telegram line via the owner of send_to_me, ledger purpose run_notice), commands/autonomy.rs (IPC autonomy_get_project_default, autonomy_set_project_default, run_quota_wait_action; begin/end around spawn_run and resume_run), Background::apply_auto_runs (worker amba-auto-run-awake). Board: ItemKind::AutoDecision (Decided), ItemKind::Held (Waiting) from metadata.autonomy. tool_dispatch tests moved to tool_dispatch_tests.rs (file cap). No migration; system prompt 4094/4096 B and tool payloads unchanged. Gateway (not deployed, needs a Founder-approved deploy): upstreamError forwards a Claude upstream 429's reset as amba.window: "upstream", resetsAt, Retry-After (upstreamReset). UI: ChatAutonomyPicker.vue (composer, limits collapsed), useChatAutonomy.ts, AutonomyDefaultSetting.vue, ChatQuotaWait.vue in ChatRunProgress, interrupted card waits for quotaWaitUntil, ChatErrorCards ceiling message and reset line, board kinds auto_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: Rust tests_autonomy (6), runner::autonomy (1), runtime::autonomy (5), quota_reset (6), board (1); gateway upstreamReset.spec.ts (3); Vitest ProjectChatAutonomy.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), IPC steer_run (runtime/execution/steer.rs: inbox opened by run_scoped for attended runs, submit, settle), runner/steer_inbox.rs (read before each model request after the first step; ChatMessage.steer, user_answers, steers on the step activity, resume save), run event user_steer, run:finished.leftSteers, delivered messages stored as metadata.steered user rows. Lowering: Gemini/Vertex join a steer to the last function response as user_message; other families unchanged (wire snapshots steer_*.json, anthropic/tests_steer.rs). No prompt text added. UI: useChatSteer.ts, ChatComposerQueue.vue, composer enabled while running, user_steer in runEventReducer, steer rows in ChatWorkStep, onTurnSettled in useChatRunSession; strings ×4. Docs: ADR-086, runtime.md, site manual (cognitive modes) ×4. Tests: Rust tests_steer (5), steer (2), run_steers (1), wire (6), Claude (2); Vitest ProjectChatSteer.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 in appliedRuns, failed runs without a message → failed Log line, fill_answers for answerTo replies; 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 with B<n>/T<n> aliases, ≤ 30 turns / 40 000 chars, 160 items; tool board_update; cost guard on lastRefresh.seenUntil), refresh_apply.rs (apply with locks, undo). apply: close_moved_on, card answers into detail, ask cleared on answer; actions::patch_item clears closedBy. Model (additive): ItemKind::Refresh, ItemSource::Refresh, BoardItem.closedBy/counts, ProjectBoard.lastRefresh. IPC project_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 + flag board-refresh-error. Docs: ADR-079 amendment, runtime.md module map, site manual features/project-board ×4. Tests: Rust tests_refresh.rs (10); Vitest BoardRefresh.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 (now desk/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/ and output/ go into desk/, final/ and templates/ into desk/final/ and desk/templates/, workings/ into desk/drafts/, workings/trash/ into trash/. 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_files constants (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), root final//templates/ locked until migrated, desk_form/legacy_aliases/desk_text. desk_layout.rs (plan/migrate/ensure, .amba/layout.json v2, mapping file, per-move ledger, resume) run from get_project_detail before the file list (and again, a no-op, in start_project_watcher); scaffold creates desk/. final_folder archives replaced finals (archive::replaced_rel), moves::after_moves baselines files archived into Sources and follows lineage; trash_bin restores pre-desk events to desk paths; origin_of maps pre-desk origins. draft_cleanup.rs + runner/drafts_tidy.rs (after finish); process runs promote only their own drafts (promote_listed_drafts_into); chat finalization skips plans, dot-folders and _survey.md. V053 project_file_lineage (additive), lineage.rs, runner::tool_effects::record_lineage, IPC list_project_file_lineage. Unattended policy globs match desk paths through pre-desk aliases; report_dir too; process instructions and installed agent prompts read with desk paths. System prompt 4094/4096 B; files description and tool examples no larger (always-on 7778→≤7774 B); wire snapshots regenerated; catalog playbooks/skills text and generated site playbook pages moved to desk/. UI: useExplorerZones desk tree, fileLineage.ts, FileTreeItem badges/origin link/Nháp tip, HarnessExplorer unfinalized count and desk-rooted create/drop, TrashBinPanel reason drafts, open-by-path for desk/drafts/.dry-run/, re-sync after open; strings ×4. Docs: ADR-085, ADR-072 amendment, TOOL_SYSTEM, ARCHITECTURE, site manual ×4. Tests: Rust desk_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; Vitest DeskLayout.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 (⋯ menu position: fixed at its button, no transform on .row-menu; closeMenu/menuOpen exposed), explorer/NewProcessMenu.vue → processes/, new processes/ProcessesMenu.vue (button + panel teleported to body, z-index: 1050, HelpTip z-[1200]; pointer-down outside closes except in a dialog; Esc closes the ⋯ menu then the panel; panel kept mounted with v-show). ProjectHeader gets processes/processesLoaded/activeProcessId/revealProcessId + openProcess/newProcess/processRemoved; HarnessExplorer loses the process pane, its props/emits and the reveal watch (ExplorerPaneKey keeps "process", unused, left for the file-zone rework). useStudioProcesses: showExplorer → showTabs, revealProcess opens a known process's tab or the dropdown, openFromMenu. WorkspaceTabStrip: board button after studio-tabs-scroll. ProjectBoardPanel: view toggle (amba_board_view), kanban columns over BOARD_SECTIONS; BoardItemRow card prop. 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 screen explorer-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/ or sources/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 in reports/. 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_writable refuses templates/ like final/, 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_SLUG reserved in sources::lifecycle (no source id, no orphan). final_folder unfinalize and moves::origin_of cover templates/; finalize refuses templates/ items. moves::after_moves forgets final marks moved into Sources and calls office_templates::follow_moves. services/office_templates.rs reworked: template folders templates/, sources/archive/templates/, legacy sources/uploads/templates/ and input/templates/; choose_template copies into templates/; nominate, follow_moves, list_files. IPC nominate_project_template, list_project_template_files, archive_project_path (history baseline + content index schedule). Project map: "Active templates", and an archive note line when sources/archive/ has files. files description: tidy-up names templates/, paid for by shorter wording (−1 B per profile, chief-of-staff 25,576 B); wire snapshots regenerated. UI: NominateMenuGroup.vue replaces OfficeTemplateMenuItem.vue; HelpTip contentClass (the pinned-folder tips at z-[300]); buildPathTree label gets the path. Agent files archive op: 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 to reports/ 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_path canonical confinement), final_folder.rs (final_target, free_rel " (n)" suffix, plan_finalize with <ts>_replaced trash moves, apply, plan_unfinalize), moves.rs (ledger V052 project_path_moves, additive; after_moves records moves and moves/marks/unmarks final states; follow, origin_of walking back past renames and trash round trips); mod.rs: FINAL_DIR, Zone::Final (never from zone_of_rel), ensure_model_writable refuses final/ (policy.final_locked, phrases ×4), refuse_protected keeps the user's actions open there; final_state::{mark_finalized, unmark_user}; intake::copy_into shared 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 (setting project_trash_retention:<id>, default 30, ≤ 3650), finalize_project_path, unfinalize_project_path, resolve_moved_project_path; purge_due on get_project_detail once a day per project. import_project_files → import_project_files_impl (target via resolve_safe_project_path + refuse_protected, trash refused). rename_project_path refuses an existing target (case-only renames allowed) and the final root; Delete/rename feed the ledger. Rollback batches keep workings/ 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::apply for the op, the card's cleanup batch ignores _replaced), NEXT_DONE points to the Trash panel; latest_files follows the ledger. Tool text: finalize sentence and final/ in the tidy-up line, paid for by dropping the path/query/date property 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 the final root), useExplorerZones (trash hidden, final pinned first, shown even empty), ProjectStudio open-by-path follows moves, mock IPC handlers/trashBin.ts; strings ×4. Docs: TOOL_SYSTEM, ADR-072 D3 amendment, ARCHITECTURE security rules, site manual (sources, project harness) ×4. Tests: Rust trash_bin (5), final_folder (5), moves (1), commands::projects::tests_trash_bin (4), policy final_folder_is_locked_for_every_model_write, file_plan finalize (1); Vitest TrashBinFinal.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 to workings/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 inside workings/trash removes 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. files gains trash {paths} and move {path, to} (tools/v2/files.rs, planned in runtime/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 with metadata.ask kind: "file_plan" + moves (runner/file_plan.rs, QuestionStop.source = approval), the click is the next message, the answering run applies the plan on approve only; 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 list leaves out workings/trash/. delete_project_path → delete_project_path_impl, moves to <ts>_deleted (permanent only inside the trash); rollback shares trash::new_batch/move_path. UI: FilePlanCard.vue, HarnessExplorer dialog (studio_trash_action, studio_delete_forever_*, file_plan_* ×4). Tool payloads +22 to +79 B per profile after tightening read, files, table, edit_file texts (chief-of-staff 25,592 B, within 25,600 B; ceilings raised in size_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; Vitest FilePlanCard.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 NSDraggingDestination call of the WKWebView itself (wry wkwebview/drag_drop.rs, the tauri-runtime-wry handler returns true), so the page never got HTML5 dragover/drop, neither for files from Finder nor for tree moves; and a webview File carries no path (file.path is Electron-only), so even an HTML5 drop could not import into Sources. Now: dragDropEnabled: true stays explicit; src/features/projects/dnd/ — dropTargets.ts (element registry, hit test, dropHover, useDropTarget), nativeFileDrop.ts (onDragDropEvent → hit test with elementFromPoint; position ÷ devicePixelRatio on Windows only), useTreeNodeDrag.ts (pointer-event drag of tree rows with pointer capture, click suppressed after a drop, Esc cancels; movedNodePath), TreeDragGhost.vue. FileTreeItem (no draggable), ExplorerPane (dropHandler prop replaces the zone drag events), HarnessExplorer (handleDropPaths → import_project_files; error alert studio_import_error ×4), ProjectChat + chat/useChatFileDrop.ts (files → Sources, new sources/uploads/… paths inserted as @path tags; emits filesChanged), 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. a tauri.conf.json guard), 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) workbook description: "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 (document from it), never a sheet.", paid for by tighter lines (4,095/4,096 B); workbook/deck/document descriptions 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.rs asks_again (word overlap ≥ 60 % of the item's question, no new number; kana/CJK as character pairs) and drop_reasked; finish::not_asked_again drops choice/input items the conversation's previous card asked (question_turn::previous_card/card_questions: metadata.ask or result.questions), event context_build finish_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 stores metadata.latestFiles ([{path, what}], also on final_response): the latest earlier files when the previous turn asked something, plus earlier files the answer names; only existing files, ≤ 6. Chat: ChatLatestFiles.vue with a [?] tip under the answer in ChatAgentTurn (not when the turn has result files), latestFiles.ts, live final_response keeps latestFiles; vi/en/ja/ko chat_latest_files, chat_latest_files_tip. (d) finishing rule: check is "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), finish directive (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): document tool description and examples (tools/v2/document/mod.rs): from: <sample> + section ops / fill_fields for "like the sample", never create on 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 guard runner/pdf_export.rs: RunCtx.pdf_asked (the run's input or any stored user message mentions "pdf", case-insensitive); otherwise the dispatcher drops export from document calls and the result says pdf: "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 in warnings names the blocks. services::office_templates::set_one + IPC set_project_office_template {kind, path} (the other template is kept unless its file is gone); explorer/officeTemplateMarks.ts (provide/inject from HarnessExplorer), explorer/OfficeTemplateMenuItem.vue with a [?] tip, badge in FileTreeItem.vue (its duplicate icon map replaced by studioFiles.getFileIcon); project settings raise amba:office-templates-changed; mock IPC handlers/officeTemplates.ts keeps 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 by ensureStreamingAssistant, which only a run:stream / run:reasoning delta 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: "", no thinking event) and its answer arrives through finish, so no delta ever came and the steps had no turn to render in until run:finished; a remount (History → back) rebuilds the turn from attachToActiveRun. The backend loop and its events were normal; the thinking_origin context_build, the call_<uuid> ids and the vertex_quota retry were not involved, and the getApplicationProperty: called with invalid property lines in the dev terminal are a WebKit/AppKit log unrelated to AMBA code. Now a live run:event of 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); applyRunEvent runs inside a try/catch so one malformed event is skipped with a warning, and run:stream / run:reasoning ignore 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 hit vertex_timeout … no response within 120 s on 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: true on every thinking model (Gemini 2.5+, documented for 2.5 and later; Flash-Lite only at a raised level); the gateway forwards generationConfig unchanged. gemini/parts.rs: thought: true parts never reach content or the replayed parts; a signature on one is kept as an empty signature block. gemini/stream.rs: thought text → ModelStreamEvent::ReasoningDelta (live reasoning, like OpenAI summaries; not counted again in usage, which stays Google's usageMetadata); Limits.first_byte_thinking = 300 s applies to the first byte and to every gap before answer output on a thinking model, with progress heartbeats; 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 use gemini::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 snapshot vertex_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_events of conversation 6b8f4eee (8 retry_attempts on 2026-11-02, all recovered at once): reqwest maps any failure while reading a body to Kind::Decode ("error decoding response body") and its Display drops the cause; reproduced against a loopback server, a chunked body closed mid-way reads error 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 SSE error event, 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 in resp.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_json for chat: <label> error: body_unreadable status= bytes= elapsed_ms= cause=…, or cause=not JSON (…); body starts "<120 chars>"); retry::classify_message reads both markers as TransientNetwork before any status check and http_status ignores the details' digits (retry behaviour unchanged); streaming::after_failed_open appends why the stream did not open to a cut non-streaming retry and logs it. Gateway (needs a deploy, DEPLOY-CHECKLIST.md): sseStream sends event: ping after 15 s of upstream silence on the Claude routes (Bedrock sends no pings; not on the Gemini route), logs stream <outcome> after <ms>ms, <bytes> bytes sent, <pings> pings for every stream that does not end ok, and SSE answers carry cache-control: no-transform. Tests: body_read_tests.rs (7, loopback cut server through AnthropicProvider AMBA transport), streaming_tests.rs (1), gateway keepalive.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.rs fallback Vietnamese 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; the questionTurns dev 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.answered and the chat_asked_* keys; chat_reply_confirmed (×4) added. resultAskReply writes each question as asked (whitespace folded to one line, not the short header; the runtime's answer_from_reply matches question or header) and folds blank lines inside a typed answer so a block never splits. inTurnQuestions.ts no longer puts ask on the work segment and skips an empty one. ChatUserTurn renders 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) set RunState.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 stores metadata.ask (the UserQuestionRequest + source) and keeps its resume state (checkpoint not resumable, so recovery and Continue ignore it; the open milestone child ends asked). 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, else user_reply). For a boundary card, survey::apply_answers + milestone_runs::advance open 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 carry metadata.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_messages attaches metadata.inTurnQuestions from question_prompt/question_answered events (in_turn_questions.rs, run_question_events; consent cards left out; no migration). The chat (inTurnQuestions.ts, in mapDbMessages, also after a run completes) splits such a turn into the work before each card, the card, the reply, then the rest. Chat: resultAsk asks metadata.ask with options and defaults; the reply uses the question's header; ChatAskedQuestions shows an answered card in its turn; ChatUserTurn renders reply blocks as confirm lines; the live final_response keeps ask/answerTo; the stepper has waiting. Mock flag question-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_questions and 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: attachToActiveRun replayed the run's events and a replayed question_answered set status to running, so the interrupted banner never showed and the run's error became an app-error card; and retry() returned null without a lastRequest, which a chat opened on a stored run never has (also the case for every retry offered on a failed turn after a restart). Now settleReplayedTurn restores the stored status of a non-live run (clears the question, settles the turn, keeps its steps in an assistant line), retry falls back to the opened run (retryRequest), resume continues an interrupted turn in place, and ChatInterruptedCard.vue (via ChatRunNotices, interruptedRun.ts: last event time, lastTurnIndex + 1) replaces the old banner; vi/en/ja/ko chat_interrupted_* (the studio_run_interrupted_*/studio_resume_run_btn keys are gone). Runtime: resume::save writes 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=NORMAL keeps every committed step through SIGKILL; a graceful quit saves nothing extra (it drops the run task like a crash). recover_stale_runs also recovers awaiting_input rows and claims "Checkpoint saved" only with a resumable saved state; startup repair_interrupted_runs (idempotent) marks interrupted rows without one not resumable; get_active_run skips 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) and runtime/content_index/ (analytics: sheets into .amba/analytics.db as src_<file>[_<sheet>] with src_row and the amba_catalog table; 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. files gains digest and tables; files search returns content-index hits (file › sheet › row / page / lines, snippet, SQL table) before workspace-index hits and takes path/glob to narrow; works without a project folder on the workspace index alone. summarise::is_total_label is crate-visible. Lowering snapshots updated for the files schema; tool-size ceilings +18 B (terser files description; 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 names files {op: 'digest'}, the survey directive starts from digests, search and table queries. Context meter (TASK-709): the read-ledger file count falls back to the conversation's read_ledger:<conversation> setting when the run's resume state has none, and ignores #write entries (tests in context_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 a content-visibility: auto box 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: ChatTimeline gives a turn that holds a .chat-spinner content-visibility: visible (:has()), so settled turns stay skippable; ChatSpinner carries .cwg-spin from 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 of vite build, checked by check-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 (HOME points ~/.amba elsewhere).

  • 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; new ModelStreamEvent::ContextCleared from Anthropic context_management.applied_edits → model_response.contextCleared. get_context_meter (commands/context_meter.rs, runtime/context_meter/{mod,view}.rs, storage latest_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, pending while a newer request is in flight, window from the catalog (amba::pairs::context_window for AMBA pairs, models.manifest.json otherwise; get_context_breakdown lost its name-matching table and returns 0 when unknown), knows from .amba/context.json (read only) and the run state's readLedger when present; falls back to the static estimate (source: "static_estimate"). UI: useContextMeter (refetch 250 ms after a model_response of its conversation, model_request marks pending), ContextMeter.vue redesign with [?] tips, ProjectChat exposes openConversationId → ProjectStudio → ProjectHeader; vi/en/ja/ko meter_* keys replace the old context_* meter keys. Mock UI: get_context_meter per conversation (finance 182k, ops 38.9k on Gemini), ?mock=long-run moves with each live step. Tests: context_meter::{parts,view} (10), window catalog, runner tests/context_meter.rs, Anthropic ContextCleared, 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: every read and table load is recorded per conversation (setting read_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/SUBTOTAL totals; 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}; read takes fresh: true for everything; a changed hash reads whole with file_changed. Write values: workbook results carry values (each written sheet as a read shows it, whole when it fits, else the written block; ≤ 6 KB, 4 sheets), holds (rows, header, totals) and whole; a read of a sheet the run wrote, unchanged since, is served from that write (from_write); table loads report totals of numeric columns. Survey → Ask → Build runner/survey.rs: attended task runs in a project with ≥ 3 files under sources/ get a ## Survey first protocol (## Survey done once workings/_survey.md exists); 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_user is 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), and finish is held until they are asked. ask_user takes up to 8 questions. Lean map project_context/render.rs: business dates as from..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 after finish.

  • 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. New ChatSpinner.vue: one <span> with the mdi:loading path as a CSS mask, .cwg-spin added two animation frames after mount (not restarted by clock ticks or step updates; reduced motion still turns it off), used by ChatRunProgress, ChatWorkGroup and ChatToolRow. 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:event split by event type), invoke replies by command and Vue component updates of that frame, as counts and approximate sizes, never content. Lines go through log_ui_jank to the runtime log, target amba::ui_jank (the tauri dev terminal); on by default in debug builds, in a release build only when started with RUST_LOG=amba::ui_jank=debug; window.__AMBA_JANK__ keeps the last 100 records. With it, ?mock=long-run,long-bctc,long-think,long-history (new long-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): budgetTurnOf no longer returns a settled card for metadata.budgetContinued (the in-turn resume flag the runtime stores on the final turn, TASK-690); the cap card comes from a live or replayed amba_run notice, or a stored budgetStop turn. Root cause: after a quota resume, continueResumedTurn cleared the amba_quota notice and the turn's budgetContinued brought the settled cap card back. Mock ?mock=amba-quota and ?mock=amba-budget: the stored answer carries budgetContinued; 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-admin role; 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-gateway src/admin/oidc.ts (discovery, PKCE S256, code exchange, RS256 JWT verification over the cached JWKS with refetch on an unknown kid, roles from realm_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 with x-amba-csrf + same-origin on changes, or the ADMIN_SECRET bearer while ADMIN_LEGACY_SECRET_LOGIN is on; unchanged without KEYCLOAK_ISSUER), audit.ts, resets.ts (POST /admin/accounts/:id/reset-usage {windows, reason?}, resets in the account detail, list sums from the last reset). AccountQuota POST /reset: per-window marker {at, carry, opusCarry} (week includes Opus/week), dropped once the window passes it. Vars KEYCLOAK_ISSUER (default empty), KEYCLOAK_CLIENT_ID, KEYCLOAK_ADMIN_ROLE, ADMIN_LEGACY_SECRET_LOGIN; secrets ADMIN_SESSION_KEY, optional KEYCLOAK_CLIENT_SECRET. Migration 2026-11-02_task-703_admin_audit_quota_resets.sql (additive: admin_audit, quota_resets). Web key writes answer 503 without ADMIN_SECRET. Tests: adminKeycloak.spec.ts (12), quotaReset.spec.ts (11), console reset flow in adminPage.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.run passed its config to DOMPurify.sanitize on every call, which re-parses the whole config (tag/attribute sets) each time, and MarkdownMessage sanitized 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.ts cuts 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); useSmartScroll follows streamed content once per frame; ChatThinking has no spinner of its own (the progress line spins), .cwg-spin gets its own layer, dead .spin rules removed. Runtime: runtime/execution/live_deltas.rs batches run:stream and run:reasoning deltas 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 except amba_run) and turn::fail_provider_error store it when the saved step is kept (resume::stopped_status); background::finished_payload keeps it; budget_continue::unsettled_run returns failed or paused runs. milestone_runs::resume takes a Stop (Crash/Budget/Paused/Transient): a paused turn adopts the stopped child's closed row (tokens, credits) and opens a new attempt (reason resume) in that child's context, so the refused request goes out again byte for byte under a fresh child id. Startup repair SqliteStorage::repair_paused_runs (in cleanup_orphaned_runs, idempotent, updated_at kept): failed runs with a saved resume state, a resumable checkpoint and a last resumable non-amba_run provider_error become paused. Chat: budgetTurnOf lets a later non-cap notice win over a budgetContinued turn (the root cause of the hidden notice); ChatQuotaStopCard.vue for amba_quota (Continue → resume_run, or Retry when nothing was saved; [?] tip); finishRun treats paused like failed; StatusBadge paused; vi/en/ja/ko amba_stop_quota* reworded, amba_quota_tip, run_status_paused. Tests: tests_quota_pause.rs (3), tests_resume status, 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 as None) holds the endpoint identity from providers/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_response with the profile actually used, wrap-up and corrective turns) and RunCtx.thinking_origin holds the run's. context_build::retain_own_thinking → thinking_origin::retain_for keeps 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 emits context_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.rs reads limits.models from /me and /redeem into AccountInfo.modelPairs (none = the plan's models on Bedrock); account::sync_profiles keeps 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 old amba-<model> id, others amba-anthropic-… / amba-vertex-…), so stored choices and runs.model_profile_id carry it and resume keeps it; no migration. AnthropicTransport::AmbaGateway.upstream sends x-amba-upstream; a vertex pair resolves to amba::gemini::AmbaGeminiProvider (gateway Gemini route through gemini::stream::Call, adapter kind vertex, x-amba-run-id incl. milestone child ids, run spend via the new stream::Endpoint::answer_headers). Ledger via/region per provider (Upstream::ledger_via). Refusals → amba_provider_required / amba_provider_denied / amba_provider_unavailable / amba_provider_switch run stops (vi/en/ja/ko messages). ProviderTier::of_profile("amba", gemini-*) is tier 2; the amba price table falls back to google for 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.md blockers ticked. Mock UI: ?mock=amba-account shows 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 most milestones.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 with budget_pause(Scope::Turn) (compact turn_cap wrap-up, provider_error.amba.run.scope = "turn"); Continue renews the allowance and resumes the open milestone (reason turn_cap); plan.turnCap {credits, cap, multiplier, pauses} in plan_update/metadata.plan (stepper [?] tip), amba_budget_ask_turn and chat_milestones_turn_cap in 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 eval agent_eval/long_task/ (pnpm run eval:agent -- --suite long-task, --live opt-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 from build/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}, baseline baselines/long-task.json, a threshold sweep (eval-only settings milestones.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 n brief with the plan, checkpoints, figures and the user's ask_user answers; the first milestone keeps the planning context unless it is over 48 KB), its own x-amba-run-id <run>:m<step>-<attempt> (budget::begin_child, a fresh gateway cap), its own step allowance (step_limit) and a row in milestone_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 ends split and 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_active unchanged). Re-run: RunIntent.milestoneRetry {runId, step} → start_run queues a queued row with the earlier turn's plan (retry_plan: the step to redo, later done steps stale) and the new task turn starts in that milestone's child run (seed_retry); milestone.retry_unavailable code. plan.runs/plan.credits in plan_update and metadata.plan; context_build {source: "milestone"} per child start/end. Chat: ChatMilestoneStepper.vue (milestoneStepper/milestoneIcon in planMilestones.ts), retry → useChatDispatch.dispatchMilestoneRetry; board Work rows carry milestones (BoardItemRow). GĐ1's lean resume now covers single-milestone plans; setting milestones.child_runs = false (no UI) keeps GĐ1 for GĐ3's comparison. Eval: mock turns take spend [used, limit]; milestones {children, splits}; bctc-milestones runs 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 as ProjectChat): per clock tick 10.5–12.3 component updates (every agent turn of the chat, since thinkingStatusText and the 1 s nowMs went through ChatTimeline's slots) → 2 (ChatRunProgress + one ChatLiveClock); 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 (useTicker per leaf, RUN_PROGRESS_KEY provided by useChatRunSession for toolStatus/retryStatus, currentActivity); ChatLiveClock (tool rows, "Suy nghĩ" clock) and ChatRunProgress (TASK-687 model-wait folded in, chat-model-wait testid kept); ChatWorkGroup folds all but RECENT_STEPS (3) while running and drops its now prop and header clock; ChatAgentTurn no derived plan for a live turn past 3 steps and no thinkingStatusText; useChatClock is the 30 s relative clock only; useChatTurns keeps unchanged turn objects (and the list) and caches stored turns' handoffs; formatClock reuses its Intl.DateTimeFormat; useAgentRun attach/resume share the live steps array; ProjectChat auto-scroll also follows step and call counts. vi/en/ja/ko chat_work_earlier_steps, chat_run_progress_step; studio_* wait lines and run_line_with_elapsed removed. Mock-IPC flag long-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_plan steps take optional output/check (PlanStep.milestone: PlanMilestone {output, check, checkpoint}) and the call optional figures; runner/milestones.rs verifies a milestone marked completed (finish/verify_milestone.rs, finish's file and figure-source rules, #Sheet must exist), stores MilestoneCheckpoint {outputs, figures, summary, step, savedAt}, carries fields and checkpoints over plan updates, refuses with a fix list (twice per run, then accepts without a checkpoint), and adds checkpoint to plan_update. Resume after budgetStop or of an interrupted run 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 emits context_build {source: "checkpoint"}; transient errors keep the exact replay. ## Large tasks directive after ## Finishing in attended runs that offer finish; habit note on a workbook call writing > 3 sheets in a milestone plan. Tool definitions: +≈ 290 B for the fields, paid for by shorter read, files, edit_file, project_fact_record, update_plan and 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 in ChatWorkGroup), vi/en/ja/ko. Eval: check milestones {min, checkpoints}, scenario bctc-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 finish summary 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 an input item of finish asked in a card, questions never go in the text (the TASK-683 "list the questions" rule is gone); 4,077 B of 4,096. ## Finishing directive: 2–5 sentences, 3–6 key figures, input written as the question and asked by the app. finish description says the same; ask_user questions may come without options (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 + input texts) stored as metadata.result.questions (task and conversation finish). Chat: ChatTurnResult file 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.ts turns the latest turn's result.questions (a blocked result stored before TASK-692: its open items) into an ask_user-shaped request shown by InteractiveQuestionCard in ProjectChat, whose answers go out as the user's reply (question\n→ answer, a task turn when the asking turn was one); interactiveQuestion text questions (no options: the field is open, no "Khác"); answer links open files (MarkdownMessage → ChatAgentTurn openFile, %20 decoded); vi/en/ja/ko chat_result_more, question_text_placeholder, blocked tip. Eval: checks compactAnswer {max} (characters and section headers of the turn's message), figuresNotRepeated (a finish.figures value ≥ 100 in the answer, in full or rounded), questionsInCard (no question list in the text; a blocked result asks in a card), Talk.reply/figures/questions, asksBack and nextCheck count card questions; scenario conv-bctc-compact-answer (run d49b3e2e's answer shape as the negative), conv-bctc-no-continue-loop no longer lists its question in the summary; conversation suite 18 scenarios. Mock-IPC flag compact-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_runs returns ConversationRollback {deleted_messages, removed_run_ids} (ids selected in the same transaction). project_board::rollback::forget_runs drops every item (all five sections) whose runId is a removed run, or whose chatId is the rolled-back chat and createdAt ≥ the cut (items of runs an earlier rollback already deleted), keeps userEdited items, returns a preference a removed run only refreshed to the run in its id prefix, and removes the ids from appliedRuns; forget_rolled_back_runs writes atomically through store::update (no file is created for a project without a board) and the command emits project:board-updated (RollbackResult.boardProjectId). resolve_cutoff in commands/conversations.rs: a stored message id; else the runId argument or the client id's suffix naming a run of the conversation (its start, or its stored user message); else a user-<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.runId set on a sent line once start_run answers and on a replayed unsettled run (user-<runId>); useMessageEdit passes it as runId. Not covered: a Waiting item that a removed run settled (accepted card, continued stopped task) stays settled, and .amba/context.json keeps 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_TOKENS 30k → 80k (trigger 120k and keep 6 unchanged) and context_edit::anchor_index: with context_management sent, request::place_history_breakpoints also 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 (only cache_control markers 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 (from ResumeState::budget_stop, kept in ResumeState::budget_continued) stores metadata.budgetContinued on the final turn; the resumed model's history never held the wrap-up (state saved before it; now asserted in tests_budget). Chat: model_request.wrapUp marks the step (RunStepActivity.wrapUp); runEventReducer.continueResumedTurn (from useAgentRun.resume and a replayed context_build {source: "resume"}) drops the budget wrap-up step and the paused text and sets budgetContinued; budgetTurnOf shows such a turn's card as continued.

  • 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_items are {item, kind: agent|choice|input|check} and status left the call; runner/finish/open_items.rs sets the status from the kinds (agent → partial, choice/input → blocked, else done; checks → metadata.result.checks) and refuses, up to twice per run and not counted toward the two refusals that end a run (protocol.finishWorkRefused): agent items while more than 3 steps are left and the AMBA run spend is more than about 3 requests from the 80 % pause, and choice items in an attended run that offers ask_user. A partial accepted near a limit carries result.limit (steps | budget); one accepted after two refusals has none. ## Finishing directive explains the kinds; finish description 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 send status. Board: checks join the Open section. Chat: offersContinue only for metadata.stopped or partial with limit (ChatAgentTurn, nextChips); ChatTurnResult shows "Chờ bạn trả lời" / "Cần bạn trả lời" for blocked, the user checks, and a [?] tip per status (vi/en/ja/ko); turnProtocol reads {item, kind} from a live call. Eval: check noContinueLoop (fails a partial without limit, a choice — offers_options — left as an open item with no ask_user card, or a stop), scenario conv-bctc-no-continue-loop with 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 column account_settings.grants ({"bedrock":[…],"anthropic":[…],"vertex":[…]}), migration 2026-11-01_task-696_provider_grants.sql instead of the unapplied TASK-693 file. No fallback between providers: a request names its provider with x-amba-upstream; without it the default provider (CLAUDE_UPSTREAM, default bedrock) serves it only if granted, else 403 provider_required; a run naming another provider than its own is refused (400 provider_switch). /v1/account/me limits.models lists the usable pairs [{model, provider, label}] (plus limits.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, migration 2026-11-01_task-693_providers.sql; NULL = the plan's Claude models through CLAUDE_UPSTREAM, default bedrock). Claude provider choice is sticky per run (x-amba-run-id bound in AccountQuota), 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_OFF kill switch; a provider without its secret is skipped with a log line. New route POST /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.upstream per row, shown in the request log. New optional secrets ANTHROPIC_API_KEY, GCP_SERVICE_ACCOUNT_JSON; vars CLAUDE_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 #,##0 and 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_written runs after recalculation when EditOptions.autofit is set (the workbook tool only; spreadsheet_edit and 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 gives width_for_len (len + 2, clamped 12–45), applied only when wider than the sheet's default (sheetFormatPr), declared as ColWidths. 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) and text_len (combining marks 0, East Asian wide 2) are shared with excel_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_cancel returns AppResult and refuses a run id that already has a live flag (llm.run_active, vi/en/ja/ko in src/locales/codes), never overwriting it; resume_run and continue_budget_run refuse an active run (AppState::is_run_active) before any work; process step and test callers propagate the error. Chat: ChatBudgetCard running (from ChatAgentTurn.isRunning through ChatErrorCards) and a refusal line (budgetTurn.refusedBudgetRuns); useAgentRun.resume keeps following the live run on llm.run_active instead of marking the turn failed; ChatWorkGroup model-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; beta context-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 allowlists context_management and 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_user card (≤ 4, most blocking first, recommended option first), only open-ended asks stay in text, and with both the model calls ask_user last after its text; the TASK-683 rule covers open-ended answers (ADR-082 amendment); wording tightened elsewhere to stay within 4 KB. ask_user description: "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 only ask_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: splitTrailingAnswer shows text sent with a card as the live answer above a pending card. Eval: check optionsInCard (fails ≥ 2 numbered questions with options — " hay ", " hoặc ", " or ", "có muốn", "should I", a slash between words — and no ask_user call; also in --recheck), scenario conv-review-ask-card with a negative script of run fa4f83b1's shape; mock-IPC ask-batch sends 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_user takes questions (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 the pdf_ai_consent card are unchanged), tools/question_answer.rs builds one tool result for the card (answers for several questions, the earlier shape for one), record_answer keeps 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 one ask_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 (option id/description, context, allow_custom left the schema); lowering snapshots updated. InteractiveQuestionCard renders the stacked questions (header chips, [?] tips for context and option descriptions, "Khác" per question, one Gửi), vi/en/ja/ko; mock-IPC flag ask-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; next then holds likely replies or nothing (ADR-082 amendment); eval nextCheck fails chips on an answer that speaks of questions but asks none (checks_next::check takes the answer). budget_continue::continue_run stores a short wrap-up as the turn's text and the digest as metadata.findings (context_build::load_history appends it for the model) and refuses once a later run exists; account_stop::summary drops the latest reasoning; wrap-up Stop::Budget asks for ≤ 5 bullets. Chat: budgetTurn.ts (budgetTurnOf settled from a later user turn, budgetTurnText), AgentTurnView.budget, ChatBudgetCard settled/runId and a once-only Continue, useRunRecovery guards a run's follow-up; mock-IPC flag amba-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::TempPath removes its path on drop, panics included, with the SQLite -wal/-shm/-journal files; child/canonical keep the scratch folder guarded when a helper hands out a derived path. 253 test call sites of std::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-debuginfo unpacked → packed: dsymutil leaves one .dSYM per binary instead of keeping every build hash's *.rcgu.o (3.6 → 30 GB in target/debug/deps); backtraces keep file:line, crate rebuild 71 s either way, dependencies rebuild once per target dir. check:disk reports stale build hashes and $TMPDIR scratch, and --fix always 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 while tauri dev runs); clean:build --stale-hashes does 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-limit on every /v1/messages answer with x-amba-run-id and amba.runCredits / amba.runLimit in the per-run 429 (quota.ts RunView, messages.ts runHeaders); needs a gateway deploy, the app works without it. Desktop: providers/amba/budget.rs records the spend per ledger run from post_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-up Stop::Budget when it fits, else account_stop::summary), amba_run is resumable, provider_error.output and amba.run {used, limit, paused}; runner/budget_continue.rs + commands continue_budget_run (resume, or for a pre-TASK-682 run a stored findings turn from its events and a follow-up prompt) and get_unsettled_run (a failed run whose turn was never stored). Chat: ChatBudgetCard (vi/en/ja/ko, [?] tip), useRunRecovery.handleContinueBudget, syncActiveRun replays the unsettled run, the prompt is placed before replayed events, the chat scrolls to a replayed turn; mock-IPC flags amba-budget and amba-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. finish takes an optional next: string[] (never required, never refuses); a text answer may end with a fenced ```next block, which next_prompts::split takes out of the model's text in turn::process_response (also out of a finish summary), so answer, steps, guards, stored message, history and checks never see it; tolerant parse, ≤ 3, lines > 120 chars dropped. Stored as metadata.next (and final_response.next) for attended turns, not after a failure. Chat: ChatNextChips under the latest turn via nextChips (hidden while typing or running, ≤ 3 actions with the Continue button, a plain "continue" dropped there), stripNextBlock hides the block while streaming. Prompt rule in "How you work" → The answer. Tool definitions: next +31 B paid for by the finish description'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 line next + informational nextCheck (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, runner runner/board_note.rs; effect Context, policy Allow, offered only in Agent-mode project chat turns, allowed in conversation turns; board items decision/risk/follow_up with source: "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); setting board_digest_in_context:<projectId> with project_board_get/set_digest_setting. Tool definitions: note +295 B paid for by shorter finish, read, files, table, workbook and project_fact_record wording (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::listing builds the ## Skills section (pinned skill = the template's skill by id or aliases, then Agent::skills, each once, id + description, cap 3 KB) appended at one place in runner/assemble.rs after the stable head (identity, project context, mode, sandbox, manifest), outside Research mode; no skill body is injected (modes/templates.rs keeps 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 in RunState::skills_read (metadata.skillsRead, eval line skillsRead, kept on resume), issues no ref and is not a source read; the rules skill is the pinned skill with deliverables, else the first such skill read; template_gaps applies only in task turns and to the rules skill. Catalog personas carry skills (meta.json, validated by build-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 frontmatter icon and locales.<l>.starter; list_agents returns skillCards (AgentListing), ChatAgentIntro chips from skillChips with 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); read serves SKILL.md with only name, description, deliverables, outputContract and 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 as P&L) can be read by its name. The file reader listed it as P&amp;L, so asking for sheet P&L answered "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 in workbook.xml, relationship targets); noInventedFigures shares a scale word across numbers joined by -, / and ~ as well (951 / 1.005 / 872 triệu); recheck of the export: conv-explain-figure fail → pass, 61/61.

  • Internal (finetune session, M120 Sonnet baseline): eval check rowKeys (tpl-payroll-audit Adjustments: column A ^NV\d+$ exactly NV03, NV06, NV08, replacing rows 4–6 that failed a correct sheet with a totals block) and officeTask relax totalLabelColumn (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:55 stock-reconcile-count (fail → pass) and the replayed tpl-payroll-audit run 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 as Authorization: Bearer, x-amba-run-id, body {query ≤ 400 chars, max_results}, one retry on 529); refusals become coded tool errors via providers::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 record provider: amba, detail.via LEDGER_WEB_VIA ("AMBA gateway → Tavily"). AccountInfo.webEnabled caches web.enabled from /me and /redeem (missing block = false). AppState::refresh_web_tools chooses 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 /me answer that flips web.enabled; a run keeps its registry snapshot. search_credential_status adds amba {signedIn, enabled} and active: "amba" (commands moved to commands/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; WebUnavailableFix offers "Đăng nhập tài khoản AMBA" when signed out; mock-IPC amba-account searches 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 secret TAVILY_API_KEY, fail closed 503 web_unavailable; body {query, max_results?, topic?, time_range?}, extra fields 400; normalised {query, results, provider} only); 1 credit reserved through AccountQuota (web: true) plus sub-caps webDay/webMonth in searches (429 web_day/web_month); GlobalSpend scope web against WEB_DAILY_CAP_USD (10) at USD 0.008 per search, apart from the model caps; failed searches settle at 0; metering row web:tavily-basic, no query stored or logged; Tavily 429 → 529, 401/432/433 → 503, other/network → 502; /v1/account/me web block; LIMIT_KEYS + admin plan and override editors; admin overview shows web spend and whether the key is configured (never the key); D1 migration 2026-10-30_task-677_web_search.sql (additive ADD 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}); D1 web_keys (AES-256-GCM, fresh IV, HKDF-SHA256 from ADMIN_SECRET, info amba-web-keys-v1, last 4 in clear, key write-only) and account_settings.web_key_id; /v1/web/search uses the assigned key, else 403 web_not_enabled (uncharged) unless WEB_SEARCH_GLOBAL = "on" (phase 2, org key); an undecryptable key (after an ADMIN_SECRET rotation) shows "needs re-entry" and answers 503; /me and /redeem report web.enabled; the admin overview shows global key configured, phase, pool size and accounts with web search; tests webKeys.spec.ts.

  • Internal (TASK-679, ADR-081; site pages held on branch feat/m120-site until 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, deliverableWords and legacy aliases in the frontmatter; vi/en/ja/ko names and descriptions in locales), their directives rewritten from MUST rules 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 (frontmatter name, description, deliverables, outputContract, locales; a JSON-on-one-line YAML subset; optional reference/, examples/), compiled by scripts/catalog-skills.mjs into src/assets/catalog/agents.json skills: [{id, files}] (bundled and published with the catalog); runtime/skills/ parses, validates (sizes, unknown fields kept) and skips invalid skills; read serves skills/<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 (read 1438 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 (15 conv-* 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); checks writes, noInventedFigures, asksBack, answerLanguage, cleanEnding (agent_eval/checks_talk.rs); scenario fields history (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ỷ"; lab Suite::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 with derived accepts 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"); asksBack also takes ask_user questions and topic + aspects ("thưởng" with "tỷ lệ"); conversation scenarios no longer require finish figures; pnpm run eval:agent -- --rescore <runs.jsonl> --recheck scores 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.rs settles no_finish / finish_refused stops in one place (work left → incomplete as before; otherwise verify::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 carry verifiedByRuntime: true, status: partial, protocol.resultChannel: "runtime"; metadata.protocol.endedWithoutFinish {reason, outcome, workLeft?, problems?, notes?}; eval lines add endedWithoutFinish and verifiedByRuntime and no longer count a runtime-closed result as endedWith: "finish"; ignored agent_eval_replay test (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.rs reuses office_guard::check_file (same source baseline and officeIntegrity contract as finish) after each successful v2 deck/document write and adds leftovers[] {slide?, kind, why, fix} (max 5, more_leftovers) and a fixing next to the result; tool_dispatch hook; tests office_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 7 media-pitch-deck runs refused at finish for 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.rs answers ask_user as the scenario's user (userReply; otherwise a neutral reply that never picks an option carrying a figure); the app's ask_user is 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: finish figures are not scored when the answer is the result (no fileExists check), answerMentions takes aliases (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 on StartRunRequest::task or a request naming a file the project lacks; otherwise start_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), finish in a conversation accepted unverified, text sent with finish kept as the chat answer, propose_task → metadata.taskProposal → TaskHandoffCard, metadata.turn {kind, startedTask}; tool descriptions of finish/propose_process/update_plan/ask_user shortened to fit the two new tools (chief-of-staff with web tools 25,597 / 25,600 B); eval lines carry turnKind/startedTask, task mock scripts start with start_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) decides turnMismatch and answer_is_result, so the 13 office-v1 in-place edits (officeTask, cellText, colWidths … with no fileExists) are no longer counted chatAsTask when a task is started; noInventedFigures reads 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.)"), and derived adds sums across adjacent columns (the quarter); finishFigures reads a fraction with a ratio unit (tỷ lệ, ratio, %) as a percentage and accepts the precision written (18,0% for 17.98, not 18% for 17.6); --recheck recomputes turnMismatch and finishFigures (accepted finish call) and replays an officeTask edit from the transcript's accepted workbook calls on the corpus fixture (agent_eval/replay_office.rs). officeTask {relax} (eval only; office-verify opt-ins style_from_match: "font_fill", new_row_merges: "ignore", off for the corpus) on stock-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 carry wallLimitSec). 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 Markdown finish summary (lead sentence, figure bullets, caveats list, no paragraph over three sentences; tool descriptions unchanged); ChatTurnResult renders the summary with MarkdownMessage; tests keep the summary's lines through finish and 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.rs in-place xlsx check emits the shared NO_CACHED_VALUES note (was "formula cells with cached values: 0/113"), so script::cache_formula_values runs recalc_package for in-place edits too; test script_tests::an_in_place_script_edit_gets_its_formula_values_back replays the tpl-pnl-variance workbook ops (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.rs parses 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.rs classifies Anthropic's stream api_error as ServerUnavailable (auto-resume, fallback, then a resumable llm.unavailable failure); test anthropic/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.xlsx is 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 plus propose_task/propose_process; office_script xlsx outputs without cached values go through recalc_package after verification, OUTPUTS["dir/x.xlsx"] matches its declared output, outputs optional (inspect only), INPUTS["dir/x.xlsx"] finds x.xlsx; copy_format copies 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 carry suite and turnMismatch (chatAsTask / taskAsChat), multi-suite scorecard section (agent_eval/score_suites.rs and scripts/eval-agent-score.mjs checked against scoring/expected-suites.md), wall-time estimate from scoring/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/ (model schema v1, store atomic writes of <project>/.amba/board.json, apply::apply_run from the stored assistant message's result, ask_user steps, taskProposal/processProposal and their acceptance, turn, stopped, and the run's new context.json preferences; idempotent per run via appliedRuns and source-derived item ids; Log and Work keep the last 200, Waiting/Decided/Open are never trimmed); one hook in runner/finalize.rs::persist_messages (project_board::after_run, no dry runs, emits project:board-updated); project_board_get command; board.json follows moved files with context.json (migrate::rewrite::board_file); src/domain/projectBoard.ts, ProjectBoardPanel, useBoardTurnFocus; mock-IPC board-live flag.

  • 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, refusing missing|closed|answered|started|moved_on|busy from chat_facts = live runs of the chat, the item's stored turn and the user messages after it); commands project_board_update_item, project_board_claim (under the store's write lock, emit project:board-updated); schema v1 gains optional userEdited, pinned, closed and ask (an unanswered ask_user's options); a preference entry recorded again by a later run updates its item in place unless the user edited it; UI BoardItemRow, useBoardActions, BoardRunAction handed to the chat through boardFocus and run by ProjectChat's own card handlers (handleStartTask, handleContinueRun, dispatchPromptRun); chat/stoppedContinue.ts shared with ChatStoppedContinue; 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 them reports/…, 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 (RunCheckpoint deserializers); finish treats a restored PDF companion as the runtime's own, and the ledger's claimedNotWritten leaves out files the run read; request_mentions::advisory (vi/en/ja/ko advice cues, closing ? without a polite work request) and template_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): pptx fixtures, checks sheets, rowCalc, columnShare, rowText, pptxChart, officeClean (cellText.all, formulas.max); a private variant may be a folder of real files that replaces the synthetic inputs, with request.txt as 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-form adds 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.column accepts week numbers under a Tuần header for "Tuần 1"…"Tuần 8" in media-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 (9 tpl-* scenarios with template, ideal v2 scripts using table load/query/reconcile and write_query, replayed by the gate as Claude and in --mock as tier 2); lab Suite::Templates; pnpm run eval:agent -- --suite templates and --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, NETWORKDAYS and DAYS (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, DATE overflow, ISO date text as a date; TODAY/NOW left 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.rs decides which requiredDeliverables a request asks for (name, stem, output path, deliverableWords in templates.json, a kind word only one deliverable has, a written file of its type) for both finish and the deliverable guard; template directives with required deliverables say a partial request gets only those; agent-eval scenarios take template (validated at load; media-plan-from-brief and media-pitch-deck use media-planning-pitch), and the run line reports template and openItems.
  • 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.rs reads 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, and chỉ … thôi/only/だけ/만 as "only these"; template_deliverables.rs uses 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 / specs leave out tools::v2::REPLACED_BY_V2 (tests read definitions_with_aliases / specs_with_aliases); spec::version::set_of, ToolListEntry / toolSet and the tools_legacy_* keys (4 locales) removed; list_tools returns ToolDefinition; legacy size-ceiling rows removed; lowering goldens claude_first_party / claude_probed / claude_mantle / openai re-snapshotted on the v2 set, openai_strict.json and gemini.json removed; 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, ToolsSource and the AMBA_TOOLS_V2 override removed (tools::spec::version::offers / set_of); IPC get_tools_mode / set_tools_mode removed; one-time data step data_step.v1.drop_tools_mode; runs.tools_version always v2; the legacy guard budget (plan-document guard, keyword drafts, the old wording) and the submit_result / report_key_figures offers removed; built-in prompts written in the v2 names (v2_prompt::rewrite only 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 --tools flag removed, scenarios carry one v2 script; the lab plan has no tools.
  • 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_function lowering and its golden removed; the eval harnesses accept AMBA_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 (with to_v2, replaced_by, tools_in_v2_names) replaces ADMITTED_BY / TABLE_SOURCES; admission maps a declared tool to its counterpart in the other set; one-time data step data_step.v1.agent_tools_v2 rewrites agents.tools_json and permissions_json; code-block salvage moved to runner/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.com endpoint. 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_tools toolSet this 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_models and the price table's evalModels removed; ClaudeProfile.providerKind added). resolve refuses another model or two targets with the same (provider, model); items carry provider, resume and the running-cost estimate key by (provider, model), price overrides by provider:model (a bare model id still reads). lab_get_state returns lastTargets.

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 finish summary 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_record accepted only B12; a cell given as Sheet!B12 or reports/x.xlsx#Sheet!B12 is 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 the finish reminder 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.rs gzips /v1/messages bodies over 8 KB (flate2) only for a gateway whose last successful answer carried x-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) decompresses Content-Encoding: gzip with DecompressionStream, holds both the compressed and the decompressed size to MAX_REQUEST_BYTES (413), refuses broken gzip (400) and other encodings (415), and sends x-amba-accepts: gzip on every answer. tools/web_trim.rs: web_search snippets collapsed and cut at a sentence or word boundary to 600 characters (truncated: true), titles to 160, repeated URLs and snippets dropped, score dropped, the results array ≤ 4 KB (omitted_results counts what did not fit). web_fetch no 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.json to src-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 reads evalModels). Migration V050 drops the untouched V007 seed rows and keys model_pricing by provider and model with a cache-write price. Commands get_usage_report, list_profile_prices, set_model_price, reset_model_price replace get_token_analytics and get_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 new AmbaGateway transport (Bearer device token, x-amba-run-id, bare model ids, InvokeModel capabilities and probe facts, v2 tools by auto), 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 commands amba_account_status|redeem|usage|logout and amba_set_gateway, and a local wire mock of the gateway for the tests (redeem, me, logout, SSE messages). tests/agent-eval/prices.json gains the amba provider (first-party fallback prices).
  • Internal (TASK-598): the model gateway's /admin is 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 migration infrastructure/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-shaped POST /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 of workings/.analytics.db. An old workings/.analytics.db is 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. finish asks 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 of inbox_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; finish at the end of a process step hands in the result like submit_result, and elsewhere it says to answer in text.
  • Internal (TASK-578): runtime/process/actions/tests_smoke_v2.rs runs 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, finish accepted, 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 with project_files::dry_run_logical (deliverables, PDF companions, ledger zone; finish, submit_result and report_key_figures sources); an allowed overwrite in a dry run starts from a copy of the file; write paths match the canonical project root too. A converse turn takes the persona's conversation-template contract; the key-figures directive is added only when report_key_figures is offered.
  • Internal: ToolsVersion::resolve takes the run's provider kind and model; the tools_v2 setting is auto / v2 / current (one-time data step from the old bool), AMBA_TOOLS_V2 still wins. The runner resolves once per run (a resumed run keeps its set) and records it in runs.tools_version (V048) and a context_build event (source: "tools", decidedBy). IPC get_tools_mode / set_tools_mode; lab_set_tools_v2 removed. The eval lab sets the tool set explicitly per run. db_path may 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[] keeps id, name(s), mode, instruction, outputContract, parameters and a new converse: true (the owner assistant's directive; a pre-2.0.0 cached catalog is still read by its trigger); the dead triggers, unattendedPolicy, delivery and questions are gone and the catalog build refuses unknown fields, a playbook.md that differs from locales/en.md, and a pack header that differs from meta.json. workings/.analytics.db left the process templates' overwrite lists and .amba/context.json the write policies. New invariant test runtime/catalog_text_tests.rs: every template text names only tools the v2 set offers and writes nothing into sources/ or .amba/. inventory-reconciliation is 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 from meta.json, hash of the shipped instructions and packs, pending and dismissed versions); runtime/template_updates (launch step 7 and every get_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. IPC list_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 that version is 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:claude checks 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; --save commits 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" as capability_probe; no content) and remembers the answer for that version. Without results, requests are unchanged.
  • Internal (TASK-548): one canonical ToolSpec per tool (tools/spec/) with typed op tables that generate the workbook op schemas, hints, examples, normalizer and validation hints (the spreadsheet_edit and excel_write schemas are byte-identical to before); per-provider lowering (providers/anthropic/lowering.rs, providers/lowering.rs: Claude op unions, input_examples once probed, OpenAI strict form, Gemini op flattening) with snapshot tests; tool errors in one contract (code, at, expected, example, did_you_mean, applied, retryable next to the unchanged error text) for invalid inputs, workbook ops, every tool's argument errors and unknown tool names; a tool-definition size ceiling per pack and agent; the tools_v2 flag (AMBA_TOOLS_V2 or the tools_v2 setting, no UI) and pnpm run eval:agent -- --tools v2. The agent sees the same tools.
  • Internal (TASK-549): with tools_v2 on, one workbook tool replaces excel_write, spreadsheet_edit and accounting_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 and write_query from the analytics database) through the same engine, verification and revisions; results under 400 bytes; sources replace the file-name grounding guard for it; read handles RunRefs for 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 a part such as TB!A1:H60, p3-5, s2 or a heading; at most 24 KB with one {cursor, has_more} pair), files (list with a glob, search over the workspace index, by_date over the inbox) and table (load a CSV, sheet or range into the scratch SQLite, query as TSV with at most 200 rows and a cursor, reconcile, describe; SELECT <expression> replaces math_calculate). Every read, load and query carries a ref from the run's RunRefs registry (runtime/execution/refs.rs, saved in the resume state). Under v2 system_time, system_info, directory_tree and document_convert are 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, document replaces docx_write, document_edit and pdf_generate (create from Markdown, replace / insert / delete sections, fill template fields, tables, styles, append; export: "pdf"), deck replaces pptx_write and presentation_edit (create from an outline, add / replace / delete slides, text, tables, charts, reorder), and edit_file replaces filesystem_write and replace_file_content with 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 cite sources. On Claude the request offers Anthropic's text_editor_20250728 instead of edit_file once 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 verified finish (summary, files with what each one is, key figures with their source, open items, status) in place of submit_result and report_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 inside finish. 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: false is 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 as anyOf, optional fields nullable, open maps as key/value pairs; strict: false for 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 plus mcp_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 --mock also 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 ăn for NL Ă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, a workbook, document, deck or edit_file write says to call finish when done, and the finishing rule says to read a file back only for a value. finish evaluates a cited formula cell that has no cached value. Under v2 office_script and its guidance send decks to deck, Word files to document and workbooks to workbook; 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 carry transcript (each call with arguments and result cut to 1 KB, stagnation notices, the answer; kept in the lab results and the runs.jsonl export) and officeSandbox when 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 read is 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 identical read after 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) and file_history {path} (current set, always on) list a file's writes from the project's run events, the write ledger, Doc-Ops revisions and runs.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-rows without a stagnation notice; v2 input tokens 71 k per run (61 k before), mostly edit-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 read calls with path only: read went out strict: true, the strict grammar writes properties in the wire order (name-sorted: cursor, detail, max_bytes, part, path), so after path nothing could follow; the current set showed the same on strict docx_write (never content). Claude strict now only for fully required schemas (Capabilities.strict_optional, off); Claude v2 lowering snapshot. An identical read after its replay gets repeat_call (retryable false). Eval: pptxSlides/docxText apply 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 from r: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); workbook warns when write_query writes formula-looking text. finish refuses 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), with at/expected/example. read hint and repeat notice for Office files; tool-definition ceiling of the v2 eval profile +151 B. Eval: the deck grader reads 3.410 triệu, 3,41 tỷ, 3.41 billion, 3,410 million as 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: two project_fact_record refusals of the ask_user answer 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 carry retryable, and a content refusal (retryable without a contract code) 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: workbook op fill {sheet, range, formula} (office/xlsx/fill.rs). stock-next-day: the finish refusal was a wrong citation (NL NƯỚC!E22 is 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. table SQL check masks literals and comments (tools/read_only_sql.rs). Tool definitions: fill paid for by shorter workbook, ask_user and project_fact_record texts (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) or Tồ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 sources goes 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-14 on 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 without sources returns Grounding::Attributed (every ref except reads of the file being written), and its result gets sources: {refs, attributed: "auto"} and a warning (not counted as a guard trigger); file_history entries carry sources and attributed (model or auto). 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 the finish reminder 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-op type/additionalProperties (added by the strict lowerings; runtime checks use closed_variant); the 25 KB budget test runs for every v2 agent and eval profile. workbook offers copy_style {sheet, from, to}; sheet_defaults is accepted but no longer offered. Office reads drop the repeated "Formula Dependency Graph". Eval oracle (office-verify): cf_added compares the rows the rules highlight (cellIs, AND/OR/NOT expressions) when a rule is written another way, col_widths takes {min} (INV2/INV2N: 80 % of the reference), blank formatted cells in a row the task creates are accepted; the live stock-reconcile-count ops 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-regions us and eu, and a short list of regions that serve the current Gemini models; any other location can still be typed. global uses aiplatform.googleapis.com, us/eu use aiplatform.{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, IPC test_vertex_connection (credential checked, nothing stored), num-bigint as 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 as ContentBlock::Thinking (provider vertex, payload type gemini_thought_signature, keyed by call id), so they persist in the run history and runs.resume_state_json; replayed only to the same model. A first functionCall of a step in the current turn that has no signature gets Google's documented skip_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) and test_vertex_provider (the saved key); set_provider_credential validates a vertex provider's value like save_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 table tool saves a query as a table (load with name and sql): six monthly bank statements become one table for reconcile, 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-run system messages go in place as user text (wire golden updated); skip_thought_signature_validator on every unsigned step, not only the current turn (prefix stays byte-stable); prune_tool_observations keeps the latest batch. Eval: tests/agent-eval/prices.json prices 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's cacheRead wins over cacheReadMultiplier, a lab price override keeps the model's cached share (optional cacheRead); 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=sse on the global, multi-region and regional hosts; chunks map to text deltas, whole functionCalls in order (signatures through PartCollector) 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, then vertex_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.thinkingLevel on Gemini 3+ (LOW/MEDIUM; effort Xhigh/Max → HIGH, Low → LOW; never thinkingBudget), maxOutputTokens clamped to 32,768–65,536 on Gemini 2.5+. New wire golden vertex_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_search tools.
  • 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_execute tool 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, the amba-cloud provider and profiles; the knowledge tools join REMOVED_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; the response_cache table goes next release), the live-follow half of useRoutineLive (routine history still renders), packages/examples/, the IPC list_marketplace_extensions, detect_conversion_candidate and convert_project_document, the Execute tool effect and RunIntent.attachments. The launch seed deletes the old shell_execute tool and permission rows; projects.allow_shell stays 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:pdf compares it with a reference on local, private PDFs.
  • Internal: page renderer runtime/pdf_render (pure-Rust hayro, compiled in, about 2 MB per installer, no native library); tier 2 runtime/pdf_ocr behind OcrEngine (Apple Vision in process through objc2-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-PDF document block for Anthropic / Claude in Amazon Bedrock, PNG parts for OpenAI / Azure), cached as engine ai:<model>, never in chat history; refusal / max_tokens → ocr.ai_refused / ocr.ai_truncated; skips report ocr.ai_consent_needed, ocr.ai_local_only, ocr.ai_unavailable. The ledger gains detail_json (V046); the egress guard allows page media only in runtime/pdf_transcribe/. pnpm run eval:pdf:ai measures real tokens per page with the owner's own key (opt-in).
  • Internal: pdf_read and filesystem_read on a PDF report per page verdict, source (text, ocr:<engine>, text+ocr:<engine>, ai:<model>, none), ocrConfidence and unreadableReason, plus a plain readingNote for the agent; tier 3 runs after both (TASK-541). runtime/pdf_refresh re-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/warmup makes one tiny Vision call per app and engine version. IPC source_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 in anthropic_beta, SigV4 for bedrock or the API key as a bearer token, AWS event stream decoded into the same Claude stream parser); the setting bedrock_claude_endpoint:<provider>, the remembered switch claude_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 records bedrock-runtime.{region}.amazonaws.com once 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-5 from the Sonnet profile and us.anthropic.claude-haiku-5-5 from 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 bare anthropic.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 old profileId + models shape is still read (stored runs, older callers); unknown profile or model refused by name; the job and items carry the profile; lab_get_state no longer returns priceModels (profiles carry evalModels).
  • 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_state returns barMet instead of toolsV2 and no longer bundleBytes.

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_write now 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, a format string 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 cap tools/read_cap.rs (24 KB, max_bytes 2–64 KB) with truncated and next_offset / next_start_line / next_page (pdf_read from_page) / next_from / next_slide; excel_read moved to tools/excel_read.rs (outline / rows / range modes, content no longer duplicated). spreadsheet_edit op set_range; excel_write reports overwrote_existing. runner/repeat_guard.rs answers identical repeats on unchanged files. Usage keeps cacheReadInputTokens / cacheCreationInputTokens in step activities, run usage, resume state, the ledger detail_json of every model call and the token analytics (storage/db/token_tally.rs, cache-aware pricing); Bedrock Converse and OpenAI cached tokens are parsed. Token bench runtime/execution/tests_token_bench.rs; research note docs/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.yml is the only release workflow (pick one platform to re-release it); the per-platform release-*.yml workflows, which passed bundles as GitHub workflow artifacts and hit the storage quota, are removed. scripts/release-deploy-local.sh runs 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_search now 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 renames routine_arrivals to arrivals; watcher settings keys, the process_set_flag and propose_process tools (old names still accepted), process:changed and background_status.activeProcesses drop 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 (no dist-catalog/ copy), and the gate fails when the catalog or the site's playbook pages drift from catalog/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 to bedrock-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 (nullable for 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) ​

  1. 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).
  2. 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.
  3. Project files → Sources (Milestone 101), right after step 2 and again when a project is opened: files in input/ move to sources/ (arrivals to their source's day, the rest to sources/uploads/ keeping sub-folders); every stored path (inbox, arrivals, process specs, messages, facts, revisions, templates) is rewritten in the same transaction; workings/ and output/ 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 in sources/<source>/<day>/ (the business day the file is about, or undated/), and files you add by hand in sources/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 get input/, workings/ and output/ 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 under sources/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/ and output/ 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 to reports/ (scheduled reports to reports/<YYYY-MM>/). Drafts and working files stay in workings/. Older projects keep their output/ 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, writes output/YYYY-MM/YYYY-MM-DD_Bao_cao_kinh_doanh.xlsx and 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 like CON, 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.md file 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 in workings/; 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, see docs/ARCHITECTURE/platforms.md) keeps Always Allow across tauri dev rebuilds.
  • 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/.xls files 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.50 or (1.234) were loaded as text (or 25.000 as 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 for amba.process/v1, a single validator that returns coded issues {code, path, params} (refs resolved in execution order, the 6 v1 actions with typed with, limits of 30 steps / depth 3 / waits ≤ 48 h, wait timeline, people and sources only as person:/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 tables processes / 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_steps journal). A run has a business date (process timezone), its trigger (schedule with 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, waitFor until inputs are complete or the deadline, retry backoff, waiting action) and a late flag. 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 with process.interrupted, retries keep one idempotency key per (process, run, step). One run per process per business date, at most maxOpenRuns (default 2) open. Runs move on the shared 60 s scheduler tick (also feeding keep-awake); hooks on_inputs_arrived (sources), on_file_event, wake_run, the ActionHandler run/resume contract (TASK-483) and the converse entry point. IPC process_run_now, process_runs_list, process_run_get. No action is attached yet, so a run reaching an action fails with process.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_arrivals gains source_id, routine_id becomes nullable). A project source (Telegram group, Drive folder, project folder) is an arrival watcher on the existing code path — the Telegram poll (one getUpdates and 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 the file_event watcher (project folders) — so there is still no second poller. Its files land in input/ 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 holds person:/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.rs resolves references: unknown person:/group:/source: → process.ref_unknown at its path, resolved recipients → unattended deliverTo (unreachable ones stay out). "Đủ chưa" for a process input is computed from the Inbox (explicit expect, or count/senders learned from the last 14 days; duplicates, superseded and low-confidence files never count) and plugs into the executor as InboxInputs. Source health is derived (receiving, no_files_yet, needs_sign_in, bot_cannot_read, group_migrated, poll_failed, …) and sources_test checks the bot can read the group (getMe/getChat/getChatMember, privacy mode) and waits for a test message. IPC sources_*, 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's businessDate.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) and ask (question with choices, durable wait, reply recorded by the poller, decision fact). stop.notify sends through remind; the converse handler 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 (new process_sends ledger, migration V032) and recorded in the data-flow ledger. Coded errors process.action.*. Not routed yet: Telegram messages to converse (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 from render/locales/*.json). Waits fold into the time column ("14:00 mỗi ngày", "Khi đủ", "Luôn"), waitFor + if chưa đủ → nhắc becomes 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 step name (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). IPC process_render, process_render_diff, process_render_card (invalid specs return their coded issues); TS wrappers in services/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 an amba.process/v1 spec 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. IPC process_compile, process_compile_answer, process_compile_edit; TS wrappers in services/api/processCompile.ts. Eval set tests/process-eval/ (31 Vietnamese + 5 English sentences from restaurants, shops, accounting, HR and an agency; 7 ambiguous ones must ask) checked in cargo test with an oracle model and against a real model with pnpm 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-task with the routine's agent, template and write globs, deliveries → amba/deliver per destination with when.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 → converse of the matching report with the playbook's canDecide) → every spec validated and ref-checked → one transaction (processes + consented versions, sources, people, settings, process_migration_report V033, cut-over flag). Idempotent; dry run via IPC process_migration_preview, stored report process_migration_report. After the cut-over no routine executes (scheduler, catch-up, quorum reminders, arrivals, file triggers, manual/dry runs; routine edits answer routine.retired) and migrated legacy bindings are not synced (pipeline.migrated_to_source). Telegram messages from a converse party reach ProcessEngine::converse on the one poll per bot; ask replies are recorded whenever the bot is polled; process on.fileEvent folders are watched (process:<id>). New run origin process {processId, runId, stepKey, canDecide}; project_fact_record refuses a decision outside converse.canDecide (process.converse.decision_not_allowed); routine_set_flag keeps its name for process flags. Catalog playbooks gain processTemplates (validated by build-agent-catalog.mjs and the Rust validator); routineTemplates stay readable for one release. amba/deliver@v1 gains optional includeWorkings; 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 — wouldSend recorded —, agent writes sandboxed under workings/.dry-run/; previews never block or count as runs). IPC process_status, process_create, process_get, process_save_version, process_consent, process_set_paused, process_delete, process_preview_run, process_versions_list; TS services/api/processStatus.ts. One catalog src/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 as local_folder sources (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.ts replays 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), so formatError fills 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_found and source.not_found replace "not found: process …" strings); process.max_open_runs and process.compile.sentence_too_long gained {max}. Keychain and Google sign-in codes stay code: detail strings (they reach many generic message sites); credentialErrors.ts reads 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 --end for the demo day), end-to-end regression test tests_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 in docs/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, fewer tauri dev rebuilds. The library is built as rlib only (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/.taurignore stops tauri dev from rebuilding when tests, docs or run-time files change, and pnpm run clean:build frees 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.pptx on the company deck template from project settings (or a client template you name in input/), 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.docx in 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 as 1,5 into 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.generate reports 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/ or workings/), 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/ and output/, 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. /playbooks now 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 .deb now depends on libdbus-1-3 and recommends gnome-keyring | kwalletmanager (the .rpm requires dbus-libs and recommends gnome-keyring), drops a duplicate WebKitGTK entry, and AMBA appears under Office/Productivity in application menus. The install guide uses sudo apt install ./AMBA_*_amd64.deb and no longer lists libssl3.
  • 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 .rpm were still listed); the new .rpm is 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/ and output/; 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 @file or @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 to input/ 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 as Asia/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 into workings/.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 as 2026-01-31 become 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 like Ledger!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 writes NL Ă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/ and output/ work as before; overwriting an existing file elsewhere (for example in input/) 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 inferenceConfig field (e.g. OpenAI models on Bedrock that don't accept temperature), 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-key auth and configurable api-version. Shares OpenAI's reactive 400-recovery, so Azure deployments of restricted models (e.g. gpt-6-astra) self-heal — when reasoning_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/responses API, 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/completions unchanged. (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 generateContent with 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.

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 .xlsx spreadsheets where cached values are 0 or 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.
  • 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, and allow_multiple guards.
    • 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/completions function-calling compatibility.
  • Google Gemini 429 Self-Healing & Context Token Blast Cap (Milestone 53):
    • Exponential Backoff with Header Parsing: Automatically extracts Retry-After delay 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.
  • 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)).
  • 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_read and offers 1-click conversion to protect the model's context budget.
  • Local Workspace Indexer & Hybrid Retrieval Engine (Milestone 50):
    • SQLite FTS5 Full-Text Indexer: Embedded full-text search with incremental chunking and unicode61 diacritics 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, and show_line_numbers to filesystem_read to reduce token consumption by > 90%.
  • 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) across AccountSetupModal, FeedbackModal, ProjectCreateModal, ProjectDeleteModal, ResetSessionModal, and ProjectOperationsModal.
  • 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 AI flow 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.
  • 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.
  • 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).
  • 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.

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 @file mentions and domain-categorized prompt libraries.
  • 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).
  • Two-Stage Plan Execution & Chronological Blueprints (Milestones 35 & 36):
    • Chronological Plan Blueprints: Structured agent plans into plans/YYYYMMDD_<slug>.md with organized deliverable outputs under deliverables/.
    • Lean Triad Cognitive Modes: Streamlined execution into three high-signal modes: explore, plan, and execute.
    • Pro Markdown Editor: Integrated direct raw source editing with line numbers, word-wrap toggles, and instant disk synchronization.
  • 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.5 across 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, and release-all.yml).
    • Added dedicated snapshot manifest generation (alpha/vX.Y.Z/latest.json) preserving historical release states.
    • Maintained top-level alpha/latest.json pointer manifest with no-cache header for zero-lag live OTA updater detection and homesite download resolution.
  • Windows Release Pipeline Hardening:
    • Eliminated silent continue-on-error masking on Windows runner deployment.
    • Added automated CLI environment provisioning for gh and aws tools on Windows self-hosted and cloud runners.
    • Fixed cross-platform directory separator traversal in bundle collection.

Distribution ​

  • Version Alignment: Aligned release version strings to 0.5.4 across 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-hosted vs github-hosted macos-13) to .github/workflows/release-macos-intel.yml and 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.

Distribution ​

  • Version Alignment: Aligned release version strings to 0.5.3 across 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_artifacts edge 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/artifacts and 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).

Distribution ​

  • Version Alignment: Aligned release version strings to 0.5.2 across 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.1 across 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 modifiedTime to prevent redundant re-downloads.
  • Auto-ingest Exported Spreadsheets (TASK-111): Exported .xlsx files are automatically loaded into the project's .analytics.db via load_spreadsheet_into_table for immediate analysis.
  • Storage Reactivity & Instant File Tree Updates (TASK-111): sync_pipeline_binding and sync_account_pipelines now re-index the project_files SQLite table via resync_files_in_storage and emit project:files-updated immediately after sync — files appear in the SOURCE DOCUMENTS pane without requiring an app reload.
  • On-Demand Google Drive Sync Badges (TASK-112): CloudImportModal now displays an ⚡ On-Demand Sync & 08:00 Schedule badge 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:loading spinner with the cloud_saving_and_syncing label 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 silent catch {}.
  • 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_xlsx added to services::connectors::tests with an in-process mock HTTP export server validating the full Sheets → .xlsx export 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 to workings/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_logs table (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 in workings/.analytics.db.
      • Documents (.pdf, .docx, .md, .txt) $\rightarrow$ context/<filename> and chunked into semantic_memories for grounded semantic retrieval.
      • Images (.png, .jpg, .jpeg) $\rightarrow$ workings/receipts/<filename>.
    • Audited and persisted all ingested sources into SQLite project_ingested_sources table.
    • Fixed Knowledge UI Button Reset Bug: persisted source_id into project_ingested_sources across project switches in ProjectChat.vue, permanently restoring green "Ingested" (Đã lưu) state.
    • Added real-time Tauri IPC notification event project:file_ingested.
  • Scheduled Daily Executive Dispatch Engine (TASK-76, ADR-032):
    • Built lightweight in-tree scheduler running inside single-process tauri::async_runtime::spawn with 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 from workings/drafts/ to output/ with companion vector .pdf auto-compilation, (5) trigger desktop notification event project:scheduled_run_completed.
    • Implemented run-once-per-day idempotency tracking via project_schedule_last_run:<project_id> with 24-hour HH:MM time matching.
    • Added Tauri IPC commands: get_project_schedule, set_project_schedule, and trigger_scheduled_run_now.
  • Connector Management & Sync Status UI (TASK-77, ADR-032):
    • Built ConnectorSetupModal.vue with tabbed selector for Google Drive and Zalo OA, credential reveal/hide toggles, diagnostic "Test Connection" button, and OS Keychain persistence.
    • Built ProjectConnectorsTab.vue featuring 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.vue directly into ProjectStudio.vue workspace tab bar.
    • Added complete localization strings across English, Vietnamese, Japanese, and Korean.
  • 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 in connectors/google_drive/, audit logging, and secondary sync skipped_unchanged assertion 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 .xlsx into data/ and table loading in .analytics.db, .pdf into context/ with semantic chunks, and .png into workings/receipts/.
      • test_scheduled_dispatch_execution_flow: Verified daily time validation, run-once-per-day idempotency, mock execution in AgentMode::Exec, and deliverable promotion to output/ 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.
  • Version Alignment:
    • Synchronized version 0.4.16 across the authoritative 16-file release checklist.

0.4.15 — 2026-09-10 ​

  • Bidirectional Office Fidelity & Visual Mirroring (TASK-70, ADR-031):
    • Upgraded excel_writer with 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_writer with 16:9 widescreen layout (12192000 x 6858000 EMUs) 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 #16A34A for positive gains and Crimson Red #DC2626 for negative deltas).
  • In-App Formula Bar (fx) & Cell Inspector UI (TASK-68, ADR-031):
    • Added pinned In-App Formula Bar (fx) in SpreadsheetViewer.vue with active cell coordinate box (A1, C10), stylized italic bold fx badge, 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.
  • 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 structured SpreadsheetCell models without discarding formula logic.
    • Implemented formula-aware Markdown table rendering (render_sheet_markdown) enriching cells with [fx: <formula>] annotations and generating automatic ### 📐 Formula Dependency Graph sections.
    • Codified Section 16 ("Spreadsheet Formula Integrity & Dependency Graph Reasoning") into agent planning instructions across all cognitive modes (Auto, Exec, Ask, Study).
  • 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 via PptxAdapter.
    • Verified 100% pass across 285 Rust tests, 223 Vitest tests, 0 TypeScript errors, and clean VitePress build.
  • Version Alignment:
    • Synchronized version 0.4.15 across the authoritative 16-file release checklist.

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_version on 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/artifact with cryptographic Bearer auth, upserting multi-platform binaries without file locks or race conditions.
    • Preserved backward-compatible monolithic manifest GET /v1/releases/latest.json dynamically 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.
  • 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.vue with branded document icons, live preview, and one-click "Chốt & Xuất Bản Chính Thức" action promoting approved drafts into output/ with companion vector .pdf compilation.
    • Added draft artifact tracking in RunCheckpoint preserving draft state across multi-step execution interruptions.
  • 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&L with 15-20+ granular rows, and Cash 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 ExcelWriteTool and PptxWriteTool warning against skeletal single-sheet tables or under-developed slide decks.
  • CI Modernization & Version Alignment:
    • Modernized all 5 platform release workflows with automated edge artifact registration.
    • Synchronized version 0.4.14 across 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.13 across core runtime, UI clients, manuals, and Cloudflare R2 distribution manifests.

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.12 across core runtime, UI clients, manuals, and Cloudflare R2 distribution manifests.

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.
  • Version Alignment:
    • Aligned release version strings to 0.4.11 across core runtime, UI clients, manuals, and Cloudflare R2 distribution manifests.

0.4.10 — 2026-09-09 ​

  • Windows CI/CD Hygiene & Self-Hosted Artifact Isolation:
    • Added aggressive cleanup of previous bundle artifacts (win-artifacts and src-tauri/target/.../bundle) in .github/workflows/release-windows.yml to prevent artifact contamination across self-hosted runner cycles.
  • Updater Sanitization & Infinite Loop Prevention:
    • Enhanced scripts/update-latest-json-r2-local.mjs to verify platform versions against root json.version.
    • Automatically purges platform entries from updater manifest when platform version does not match root version, preventing infinite update download loops.
  • Version Alignment:
    • Aligned release version strings to 0.4.10 across core runtime, UI clients, manuals, and Cloudflare R2 distribution manifests.

0.4.9 — 2026-09-09 ​

  • Automated Feedback & Closed-Loop Issue Triage (ADR-027, Milestone 8):
    • Added 1-click incident reporting button in ProjectChat.vue with 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_feedback table) to guarantee zero report loss during network dropouts.
    • Deployed Cloudflare Edge Buffer Worker and D1 Database (amba-feedback-db) at https://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/triage and 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).
  • 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.

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 foreignObject labels, 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.
  • 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 in output/.
    • 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).
  • Version Alignment:
    • Aligned release version strings to 0.4.7 across core runtime, UI clients, manuals, and Cloudflare R2 distribution manifests.

0.4.6 — 2026-09-07 ​

  • Homepage & Site Component Overhaul:
    • Refactored HomeFooter.vue with streamlined layout and improved visual hierarchy.
    • Enhanced PlaybookShowcase.vue with richer content and improved interactivity.
    • Added ReleaseDownloads.vue component for structured release asset presentation.
    • Expanded custom.css with additional responsive styles and visual polish.
    • Updated hero content in all locale index pages (en, vi, ja, ko).
  • Version Alignment:
    • Aligned release version strings to 0.4.6 across core runtime, UI clients, manuals, and Cloudflare R2 distribution manifests.

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.
  • In-App Factory Self-Test & Diagnostic Telemetry:
    • Upgraded native diagnostic command run_diagnostic_selftest in diagnostics.rs to execute live end-to-end generation and integrity verification for .xlsx, .docx, and .pptx files.
    • Added frontend diagnostics API (runFactorySelftest) and verified with unit tests.
  • Runtime Sandboxing & Relative Path Normalization:
    • Automatically resolves relative paths against scope.root_directory for deliverable generation across all execution modes.
  • Version Alignment:
    • Aligned release version strings to 0.4.5 across core runtime, UI clients, manuals, and Cloudflare R2 distribution manifests.

0.4.4 — 2026-09-07 ​

  • Commercial Footer Architecture & Feedback Bridge (ambadesk.com):
    • Overhauled HomeFooter.vue with 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 on ambadesk.com and [email protected].
    • Documented Cloudflare Pages deployment configuration in site/DEPLOYMENT.md.
  • Version Alignment:
    • Aligned release version strings to 0.4.4 across core runtime, UI clients, manuals, and Cloudflare R2 distribution manifests.

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.
  • Hermetic SQLite-Vec Hybrid Engine & Dense Vector Retrieval (ADR-022):
    • Embedded native sqlite-vec extension (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.
  • Interactive Code Block & Mermaid Diagram Viewers:
    • Added CodeBlockViewer.vue and CodeDocumentViewer.vue with syntax highlighting, line numbers gutter, and 1-click copy.
    • Added client-side MermaidDiagram.vue with SVG vector rendering, error boundary, and raw source switcher.
  • 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.

0.4.2 — 2026-09-06 ​

  • Built-In Fixture Diagnostic Self-Test (TASK-23):
    • Added native Rust diagnostic command run_diagnostic_selftest in src-tauri/src/commands/diagnostics.rs running a hermetic end-to-end reconciliation fixture locally (SQLite table ingestion, $50 discrepancy detection, .xlsx spreadsheet writing, vector .pdf compilation, 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).
  • 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.vue to indicate localized system tools cleanly in the UI.
  • Linux Installation Documentation & Secret Service Parity (TASK-24):
    • Added dedicated Linux installation guides (.deb, standalone .AppImage) to site/manual/getting-started/installation.md across 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, and site/package.json to 0.4.2.

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.

0.3.9 — 2026-09-04 ​

  • Smart Multi-Platform Manifest Merge & Accurate Portal Download Links:
    • Upgraded scripts/update-latest-json-r2-local.mjs to 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.

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 .deb and .AppImage distribution.
    • 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.

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}.ts and exported SUPPORTED_LANGUAGES.
    • Upgraded AppShell.vue quick language segmented switcher (EN, VI, JA, KO) and SettingsPanel.vue appearance language cards.
    • Expanded unit test coverage in useI18n.spec.ts to verify all 4 languages, dynamic parameter substitutions, and reactive locale switching.
  • 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.
  • Capital & Debt Financing Executive Suite:
    • Added capital-debt-financing project template and runtime system directives for capital structure modeling, debt repayment schedules, and investor pitch deck preparation.
  • 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.vue matrix 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.json to eliminate CORS issues and optimize client-side release manifest caching.

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@v2 across all workflows.

0.3.2 — 2026-09-03 ​

  • Commercial Portal & Dynamic Cloudflare R2 Downloads Integration:
    • Integrated dynamic ReleaseDownloads.vue component querying live https://r2.ambadesk.com/alpha/latest.json for 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/ and docs/DEVOPS/).

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.
  • Template Naming & Plan Review UX Refinements:
    • Refined domain template labels and Vietnamese localization strings.
    • Formatted Rust codebase according to standard rustfmt guidelines.
    • 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 to plan_{slug}_{hash}.md, displays compact PlanReferralCard in 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 Plan mode, eliminating scratchpad clutter in Ask and Study modes.
    • Calculation Audit Trail: Real-time verified badges, SQL code copying, and returned row counts in the Activity Tray.

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-r2 job in release workflows to sync release bundles, .sig signatures, and rewritten latest.json directly to Cloudflare R2 (https://r2.ambadesk.com/alpha/).
    • Optimized cache-control policies (no-cache for latest.json, 1-year immutable cache for binaries).
    • Added scripts/update-latest-json-r2-local.mjs for local asset URL rewriting.

0.2.16 — 2026-08-31 ​

  • Automated Cloudflare R2 Download URL Rewriting in latest.json:
    • Implemented scripts/rewrite-latest-json-r2.mjs to automatically rewrite asset download URLs in latest.json from GitHub releases to https://r2.ambadesk.com/alpha/<filename>.
    • Integrated into both release-windows-self-hosted.yml and release.yml workflows.

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.json for high-availability CDN-accelerated OTA updates.

0.2.13 — 2026-08-30 ​

  • In-App Auto-Update Packaging Artifacts & Minisign Key Hardening:
    • Configured bundle.createUpdaterArtifacts: true in tauri.conf.json to generate compressed OTA update bundles (.tar.gz and .sig signatures).
    • Hardened private key password handling (TAURI_SIGNING_PRIVATE_KEY_PASSWORD) in release workflows.
    • Added .gitignore rule for public/private key pairs (*.key.pub).

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) into GITHUB_PATH on on-premise Windows runners.
    • Standardized on actions-rust-lang/setup-rust-toolchain@v1 with explicit stable-x86_64-pc-windows-msvc target enforcement for Windows self-hosted builds.

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.

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-hosted windows-latest runners.
    • 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.

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.
  • High-Fidelity Excel & Multi-Sheet Preview Engine Hardening:

    • Shared OpenXML Relationship Resolution: Unified read_project_spreadsheet, read_project_docx, and read_project_presentation in commands/projects/readers.rs to 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.rels relationship 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.
  • Master Release Plan Execution & Modular Architecture Hardening (Sprint 37):

    • Comprehensive Rust Runtime Modularization (Wave 1):

      • Split runtime/execution.rs (3478 lines) into runtime/execution/ (runner.rs, planning.rs, modes.rs, tools.rs, callbacks.rs, streaming.rs, tests.rs).
      • Split storage/db.rs (2492 lines) into storage/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.rs into context/adapters/shared/ (tables.rs, xlsx_zip.rs, docx_zip.rs, pptx_zip.rs, tests.rs).
      • Split tools/pdf_compiler.rs into tools/pdf_compiler/ (parser.rs, fonts.rs, rendering.rs, tests.rs).
      • Split commands/projects.rs into commands/projects/ (crud.rs, files.rs, readers.rs, watchers.rs, export.rs, tests.rs).
    • Ask Mode Knowledge Ingestion & Web Search Enhancement:

      • Enabled web.search, web.fetch, and knowledge.search in Ask mode for general information retrieval.
      • Added interactive "📖 Study & Ingest Knowledge" button on assistant messages in ProjectChat.vue to easily transition insightful chat responses into the project's permanent knowledge base.
    • Release Governance & Open Source Standards (Wave 2 & Wave 3):

      • Fixed duplicate ADR numbering by renumbering workspace default directory ADR to ADR-018.
      • Added CONTRIBUTING.md and CODE_OF_CONDUCT.md at repository root.
      • Created GitHub issue templates (bug_report.md, feature_request.md, security.md) and standard pull request template PULL_REQUEST_TEMPLATE.md.
      • Created root SECURITY.md and completed full audit report in docs/SECURITY-AUDIT.md.
    • 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 / Finalize system 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 calls knowledge.store to ingest facts and domain concepts into the project's long-term memory. Allows writing notes and summaries to workings/.
      • 📋 Plan Mode (plan): Analyzes requirements and produces structured <plan> blocks with numbered steps and deliverable definitions. Writes plan artefacts to workings/plan.md. Direct writes to output/ 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 into output/. Full write access, PDF generation, and policy-gated shell enabled.
    • 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.vue to 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, and reset_session with atomic SQLite execution and 100% test coverage.
    • Full Bilingual Localization: Added complete English and Vietnamese translations for all reset actions, modals, and notifications.
  • Interactive Agent Clarification & Direction Confirmation (ask_user Feature — 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, transitions RunStatus to awaiting_input, and emits run:question IPC event over an async tokio::sync::oneshot channel without occupying background execution threads.
    • Inline Interactive Question Card (InteractiveQuestionCard.vue):
      • Displays bold question prompt and background context block.
      • Multiple-choice option cards with ⭐ Recommended badges, 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-xml event loops.
    • High-Accuracy Spreadsheet Engine (.xlsx, .xlsm, .xltx, .xls, .xlsb, .ods):
      • Full xl/sharedStrings.xml parser 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 (.xls BIFF8/OLE2, .ods, .xlsb) via calamine.
    • 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) via cfb OLE2 reader.
    • 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) via cfb.
    • Enhanced RFC-4180 CSV / TSV Engine (.csv, .tsv, .tab):
      • Multi-line quoted string support with escaped quotes ("").
      • Automatic delimiter detection (,, ;, \t).
    • 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_read tool 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.
  • 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.
    • 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.
  • Token & Context Management Architecture (Sprint 32):

    • Database Migration V007: Added runs.project_id, model_pricing seed 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_pricing database table.
    • Per-Project Token Isolation & Analytics: Added get_project_token_analytics, list_model_pricing, update_model_pricing, and set_project_budget_thresholds Tauri IPC commands.
    • Context Budget Breakdown: Added calculate_context_breakdown and get_context_breakdown calculating real-time token saturation across System instructions, User prompt, Project files, Conversation history, and RAG semantic memory.
    • Interactive In-Studio Context Meter: Added ContextMeter.vue to ProjectHeader.vue displaying live context window utilization and project cumulative cost badges.
    • Context Inspector Modal: Built ContextInspectorModal.vue featuring a multi-segment progress bar and token usage breakdown by layer with available headroom metrics.
    • Activity Panel Project Scoping & Quota Alerts: Enhanced ActivityPanel.vue with 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.
  • 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 on pdf_generate in Draft mode alongside filesystem_write.
    • Standalone Execution Scope: Added projectId to StartRunRequest allowing project sandbox scoping for direct API/CLI execution without pre-existing conversations.
    • Type & Navigation Fixes: Fixed HistoryView.vue routing to display ActivityPanel.vue, and added projectId to Conversation domain model.
    • 114 Passing Rust Tests: Added new test fixture for pdf_generate draft mode output routing.
  • OpenAI Reasoning & Modern Models Compatibility (max_completion_tokens):

    • Replaced legacy max_tokens with standard max_completion_tokens across 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 developer role.
      • Omitted custom temperature parameters for reasoning models to eliminate 400 Bad Request unsupported_parameter errors.
  • Dynamic Provider Model Discovery & Custom Model Creation:

    • Added live GET https://api.anthropic.com/v1/models fetching in fetch_provider_models.
    • Added custom model ID creation input in Settings for all providers.

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 .p12 certificates and Apple Team credentials.
  • Linux Packaging Dependency Fix & CI Speed Boost:

    • Updated Debian packaging dependencies in tauri.conf.json to use modern libayatana-appindicator3-1.
    • Integrated swatinem/rust-cache@v2 into .github/workflows/release.yml with 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).
  • Standardized Universal snake_case Tool 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 ToolRegistry and PolicyEngine ensuring 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.
    • Word Document Viewer (WordDocumentViewer.vue):

      • Formatted document viewer for .docx and .doc files extracting paragraphs, headings (H1-H3), and tables from OpenXML word/document.xml.
      • Document statistics (word count, paragraph count, reading time) with 1-click copy and open in Microsoft Word.
    • PowerPoint Presentation Viewer (PresentationViewer.vue):

      • Multi-slide deck viewer for .pptx and .ppt with slide thumbnails sidebar, 16:9 canvas layout, slide navigation controls, and full outline export.
    • 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.

0.2.3 — 2026-08-22 ​

  • Smart Multi-Platform Matrix Dispatch & Selective Re-run (.github/workflows/release.yml)

    • Added interactive workflow_dispatch platform 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: false resilience: successful OS installer artifacts remain preserved and uploaded to GitHub Draft Releases even if one platform encounters a transient failure.
  • 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 PdfOptions model: page size (A4, A5, Letter, Legal), orientation (portrait/landscape), configurable margins, scale, print backgrounds, headers/footers.
    • Print CSS with standard @page rules, 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 PdfExporter types 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-text compiler remains available for the agent API (pdf.generate), where no WebView is available.
    • Cross-platform: macOS uses native WKWebView.printOperation on the isolated print window (window.print() is a no-op in WKWebView); Windows uses WebView2 window.print() ("Microsoft Print to PDF"); Linux uses WebKitGTK window.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), not sessionStorage.
    • Known limitations: page numbering not supported via CSS (relies on the browser's native print header/footer); the print dialog requires user interaction.
  • 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.
  • Native vector PDF compiler (ADR-014)

    • Export PDF and pdf.generate compile 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: markdown2pdf dropped Japanese (macOS .ttc fonts); Typst passed Unicode but added ~39 MB to a stripped release binary.
  • Interactive HTML Webpage & Native PDF In-App Document Previews (ADR-013)

    • Interactive HTML Viewer (HtmlDocumentViewer.vue):
      • Embedded sandboxed webpage rendering for .html and .htm deliverables.
      • 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.
    • 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_base64 Tauri IPC command for fast binary streaming of PDF and document assets.
  • Unicode PDF export for markdown deliverables

    • Historical note: preview capture previously used html2canvas + per-script system fonts; agent pdf.generate previously 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).
  • 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 with projectId. 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.
    • 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).
  • 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 .txt files in input/, workings/, and output/ and renders the rich viewer inline instead of requiring external OS software.
    • Backend Safe File Content API (commands/projects.rs):
      • Added read_project_file_content Tauri command with canonical path traversal validation and 10MB memory safety limits.
  • 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.
    • Backend Disk Cleanup Guard (commands/projects.rs):
      • delete_project(project_id, delete_files: bool) safely resolves the directory path and performs std::fs::remove_dir_all with guard checks against deleting system roots or user home directory.
  • 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 in workings/. Writing directly to output/ is blocked with hard runtime enforcement.
      • finalize (Approve & Finalize): Agent inspects working drafts, automatically receives all workings/ files as context, and generates polished final deliverables in output/.
    • 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.write tool requests before dispatch and returns actionable mode-routing error feedback to guide the LLM.
  • 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_dir and set_default_workspace_dir.
    • 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.
    • Workspace Settings in Advanced Tab (SettingsPanel.vue):
      • Displays current workspace directory with 1-click "Change Location…" dialog and "Open Folder" OS launcher.
  • 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-updated Tauri events to all active windows.
      • Added live "LIVE" sync indicator badge in the Harness Explorer header.
    • 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, and import_project_files with strict path traversal validation.
  • 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 to input/, 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 gating shell.execute commands (default disabled with security alerts).
      • External MCP Plugins (allow_mcp: bool): Independent toggle gating external Model Context Protocol tool invocations.
    • 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.
  • Phase 8: Production Polish & Performance Scale — Sprint 29: Advanced Desktop UI & Keyboard Navigation

    • Command Palette (CommandPalette.vue): Power-user universal search triggered by Cmd+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 for Cmd+K (Search & Command Palette), Cmd+/ (Toggle Sidebar), Cmd+N (New Project/Session), and Esc (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.
  • 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.
  • 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 using rusqlite::backup without stopping the runtime, with validation safeguards during restore.
    • ChatGPT Conversation Import (commands/backup.rs, SettingsPanel.vue): Seamlessly import conversations.json from ChatGPT data archives into AMBA workspace sessions.
  • Phase 8: Production Polish & Performance Scale — Sprint 26: Performance & Caching

    • SQLite WAL Mode & High-Throughput Pragmas (storage/db.rs, V004__caches.sql): Enabled PRAGMA journal_mode = WAL, synchronous = NORMAL, and busy_timeout = 5000 providing 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_cache table) 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_cache table) for low-temperature runs (<= 0.1), eliminating redundant API requests and token expenditures for repetitive tasks.
    • Frontend Chat Virtualization & DOM Containment: Applied content-visibility: auto and contain-intrinsic-size to chat messages in ProjectChat.vue and AgentWorkspace.vue for silky-smooth 60fps scrolling across 1000+ turn conversation histories.
  • 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::RetryAttempt and RunEventType::ModelFallback events.
      • Added retry countdown badge ("Rate limit detected. Retrying in 2s (Attempt 1/3)...") and prominent Model Fallback notification banners in ProjectChat.vue and AgentWorkspace.vue.
  • Phase 7: Autonomous Reasoning & Extended Memory — Sprint 24: Planning & ReAct Reasoning Loop

    • Dynamic Plan Inspector UI (PlanInspector.vue): Embedded plan tracker widget rendered in ProjectChat.vue. Displays current goal, progress percentage bar, dynamic step status checklist (pending, in_progress with 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-time plan_update events 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.
  • 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 legacy temp/).
      • 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/, and output/ 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.
    • 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.
  • 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): Added MemoryEntry, ScoredMemoryEntry, UpsertMemoryRequest, and registered knowledge tools & permissions for assistant-agent and research-agent.
  • 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::ContextBuild events containing memory count and keys to provide frontend visibility into what the agent recalled.
    • Scored Semantic Search API (search_scored): Extended SemanticMemoryStore trait and SqliteSemanticMemory with threshold-gated, score-ranked retrieval.
  • 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) and Reset 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): Implemented SseMcpClient allowing AMBA to connect to remote MCP endpoints over Server-Sent Events with Bearer token authentication.
    • MCP Resources Support: Added resources/list and resources/read methods 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.
  • 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_format to ModelRequest with OpenAI & Google provider integration for deterministic JSON output.
  • 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_calls and corresponding tool result pairs from being broken across pruning boundaries.
    • Runtime Event Notification: Emits RunEventType::ContextBuild with auto-summarized metadata to notify frontend trace inspector.
  • 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.
    • 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_profiles and 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, and reset_model_manifest_defaults.
  • 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_provider and reset_curated_model_profiles Tauri command to cleanly remove clutter/deprecated snapshots and reset to pristine flagship models with 1 click.
    • Provider-Grouped Model Dropdown: AgentWorkspace.vue now 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.
  • 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_feedback table with insert_feedback and list_feedback storage APIs, registered submit_feedback and list_feedback Tauri 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.vue auto-fills query prompt from onboarding into input box for instant execution.
    • 45 Rust unit tests + 3 Vitest tests passing cleanly.
  • 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 blocking localhost, .local, link-local, loopback, private IPv4/IPv6 ranges (RFC 1918, RFC 6598 CGNAT, RFC 5736), and non-HTTP protocols.
    • Policy Engine defaults: web.search and web.fetch default to Confirm policy for explicit user permission.
    • Search Provider Credentials: OS keychain + SQLite fallback storage via set_search_credential, delete_search_credential, search_credential_status IPC 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: ExecutionEngine now automatically creates sessions and loads previous conversation turns into WorkingMemory for multi-turn LLM memory.
    • Context sliding window: limits conversation history to a 20-message token budget preventing context window overflow.
    • Dynamic model parameters: StartRunRequest supports temperature, max_tokens, and system_prompt_override.
    • SQLite Conversation CRUD: added get_conversation, list_conversations_by_agent, delete_conversation, rename_conversation, clear_conversation_messages with 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.
  • 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_id via SQLite settings table and IPC commands.
    • Auto-detection of configured provider credentials and smart model dropdown selection in Workspace and Settings.
  • Sprint 13: Token Usage & Analytics Dashboard

    • Backend Analytics API: added get_token_analytics query on SqliteStorage to aggregate run token usage (input_tokens, output_tokens) and calculate estimated USD cost across LLM models.
    • Registered get_token_analytics Tauri IPC command in src-tauri/src/commands/runs.rs and lib.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).
  • 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.
  • Sprint 11: Document Context Adapters (PDF, DOCX, XLSX, CSV)

    • CsvAdapter: parses CSV files and formats records into clean Markdown tables.
    • DocxAdapter: parses Microsoft Word .docx ZIP archives and extracts paragraph text from word/document.xml.
    • XlsxAdapter: parses Microsoft Excel .xlsx archives, resolves shared strings (xl/sharedStrings.xml), and formats sheet cell grids into Markdown tables.
    • PdfAdapter: parses .pdf text streams (BT...ET) into readable text content.
    • Registered all 4 document adapters in ContextEngine default 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_memory for 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: implements SemanticMemoryStore trait (upsert, get, search).
    • 3 new unit tests for embeddings, cosine similarity, and SQLite semantic memory roundtrip (28 Rust unit tests total, all passing).
  • 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 via tokio::process::Command, CWD path security, timeout enforcement (default 30s, max 120s), and unit tests.
    • Policy & Permissions IPC: added list_permissions and set_permission Tauri commands registered in lib.rs.
    • 3 new unit tests for filesystem.write and shell.execute (25 Rust unit tests total, all passing).
  • Sprint 8: Streaming Tool-Call Assembly

    • OpenAI provider streaming: chunk assembly for tool_calls deltas, include_usage SSE options, token usage extraction, and Done event generation.
    • Anthropic provider streaming: full SSE event parsing (message_start, content_block_start, content_block_delta, content_block_stop, message_delta, message_stop), tool_use JSON buffer accumulation, token usage tracking.
    • Google provider streaming: streamGenerateContent SSE parser for text deltas, functionCall parts, usageMetadata, and Done event.
    • Execution Engine (stream_or_chat): proper ModelStreamEvent::Usage collection and token usage propagation without extra non-streaming chat() fallback calls.
  • Sprint 7: Real MCP Client (stdio JSON-RPC 2.0)

    • StdioMcpClient: spawns MCP server process, handles initialize handshake, tools/list, tools/call with 5 s / 10 s / 30 s timeouts
    • Background stdin writer + stdout reader tasks; graceful drain on server exit
    • McpToolAdapter: wraps MCP tools as native Tool so they live in ToolRegistry
    • Tool names prefixed mcp.<server_name>.<tool_name>
    • connect_mcp_server / disconnect_mcp_server Tauri commands
    • StubMcpClient retained 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.read tool 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)