You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(browser): record and deterministically replay reusable workflows #1557
Maka Desktop already has an embedded browser and OpenCLI-backed primitives for navigation, clicks, text input, waits, and extraction. Multi-step browser tasks are still chosen by the model, and only an agent action can open the browser.
Users cannot record a known-good manual procedure and run the same steps again without model judgment. This matters for internal workflows that need repeatable execution and a clear failure point when a page changes.
Desired outcome
Add a browser-only recorder and one-click replay path.
Let users open the embedded browser, record navigation, clicks, text input, and observable wait conditions, then review and save the workflow.
Persist saved workflows across restarts.
Replay through the existing BrowserSession/OpenCLI path without calling an LLM.
Store stable locator evidence rather than temporary [N] snapshot refs. A missing or ambiguous target must stop the run at that step.
Keep replay visible and cancellable, with step progress and a specific failure reason.
Do not persist passwords, tokens, cookies, or detected sensitive values. Ask for sensitive inputs at run time and redact them from logs.
Cover record, save, replay, cancellation, locator mismatch, persistence, and redaction with deterministic tests and one loopback Electron E2E journey.
The first version is a linear workflow for the visible embedded browser. Cross-app recording, branches, loops, model-based recovery, background execution, scheduling, uploads, and multi-tab flows are out of scope.
Use the existing browser ownership and execution seams. Do not turn prompt-based AutomationDefinition into a browser workflow runner.
Alternatives or workarounds
A saved prompt or Computer Use run still leaves action selection to the model. An OpenCLI adapter can be more stable, but it is developer-authored and is too expensive for recording a private internal procedure.
Saved workflows are app-level assets in the current Maka workspace, not session-owned or project-owned. Persist definitions through a dedicated BrowserWorkflowStore at browser-workflows.json. Recording drafts and active run state remain transient in the first version. Do not reuse prompt-based AutomationDefinition.
The Browser workbar owns contextual actions: open, start/stop recording, and live replay progress. The existing Automations hub owns the saved workflow list, inspection, rename, run, and delete actions.
Chinese product names: 自动任务 for the hub and 操作流程 for the workflow module.
Humans and agents can both create and use workflows. Creation must come from a real recording whose actions executed and produced valid locator evidence. Agents record through the existing browser_* tools; they cannot submit hand-authored action definitions.
Human and agent entry points use the same main-process service, store, runner, cancellation path, and error projection.
Sensitive runtime values are collected by local UI and never passed through model context or agent tool arguments.
Delivery uses two slices:
Human record and replay
Add the workflow contract, store, recorder, deterministic runner, cancellation, and validation.
Add manual browser cold entry, Browser workbar recording/progress controls, and the global 操作流程 management page.
Prove record, save, replay, restart persistence, locator mismatch, redaction, and cancellation with deterministic tests and one loopback Electron E2E journey.
Agent parity
Add a model tool for start recording, stop/save, list, inspect, run, rename, and delete.
Feed agent browser_* executions into the same recorder.
Keep existing browser permission and visible-view lease behavior.
I would like to take this issue. I will begin with Slice 1, Human record and replay: the app-level BrowserWorkflowStore, real-action recording, deterministic replay, locator validation, cancellation, sensitive-value redaction, and the Browser management/progress surfaces, backed by deterministic tests and one loopback Electron E2E journey. I will reuse the existing BrowserSession/OpenCLI ownership seams, keep sensitive runtime values out of model context and logs, and leave Agent parity as the follow-up slice. GitHub does not allow me to self-assign this issue, so I am claiming it here.
Closing: this targets the TypeScript implementation on main, which is superseded by rust-preview (#6366). If it still applies to rust-preview, please open a new issue against it.
Activity
Astro-Han commentedon Jul 28, 2026
Implementation shape
Decisions from the follow-up discussion:
BrowserWorkflowStoreatbrowser-workflows.json. Recording drafts and active run state remain transient in the first version. Do not reuse prompt-basedAutomationDefinition.自动任务for the hub and操作流程for the workflow module.browser_*tools; they cannot submit hand-authored action definitions.Delivery uses two slices:
Human record and replay
操作流程management page.Agent parity
browser_*executions into the same recorder.Nyvo-io commentedon Aug 2, 2026
I would like to take this issue. I will begin with Slice 1, Human record and replay: the app-level BrowserWorkflowStore, real-action recording, deterministic replay, locator validation, cancellation, sensitive-value redaction, and the Browser management/progress surfaces, backed by deterministic tests and one loopback Electron E2E journey. I will reuse the existing BrowserSession/OpenCLI ownership seams, keep sensitive runtime values out of model context and logs, and leave Agent parity as the follow-up slice. GitHub does not allow me to self-assign this issue, so I am claiming it here.
Astro-Han commentedon Aug 2, 2026
Assigned! the Browser function needs a bit of end to end testing to make sure it works. Look forward to your PR~ @Nyvo-io
Astro-Han commentedon Nov 5, 2026
Closing: this targets the TypeScript implementation on
main, which is superseded byrust-preview(#6366). If it still applies torust-preview, please open a new issue against it.