Repository navigation
Native agent overlay, browser page control, one computer helper - #61
Merged
Merged
Conversation
…or fixes Filey Agent is now the Hermes engine (agent/), started only by the app: - Engine sidecar with a one-time launch secret; signed download on first use (agent_engine.rs, scripts/build-engine.ps1, Engine workflow). - Native Filey tools for the engine (word/sheet/pdf/slides/design/fig/vector, computer control, files, ERP); Hermes commands, steering, streaming replies, terminal tab, in-chat approval cards. - Token budget: only everyday tools ride each request, the rest load on demand; compression at 40K; automations start a fresh session each run. - Sending a document or an invoice out always asks the owner, Auto mode included. - Always-on automations (tray, watches, review queue), Filey as an MCP server for the owner's own agents (off by default), channel gateway. Also: - Quotation editor uses the invoice layout: Template, then Details / Items / Finishing touches. - Packaging list and template previews fill and scroll in the document dialog. - Quoting/Packaging branding toggles, packaging units, FitPreview scrolling. - Freedom plan shows 1499 AED (Dodo already charges it). - WhatsApp sidecar builds for dev runs; dev server binds 127.0.0.1 only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The WebView overlay could hang under memory pressure and Windows then swapped it for a frozen ghost that swallowed every click: the whole desktop looked locked and the WhatsApp bridge never replied again. The overlay is now native layered windows (click-through, no WebView, no focus), with Esc on a keyboard hook so an agent-pressed Escape does not cancel its own session. - agent_overlay.rs: native glow + label, pointer glide, Esc hook - computer_use.rs: one PowerShell host per session instead of a new process and a C# Add-Type compile on every action - desktop_browser.rs: read/click/type/press on a browser tab through its accessibility tree (no screenshots, no vision model); 4 tabs max, hidden tabs trimmed - aiTools.ts: per-turn computer round cap; only real turns are counted, so a one-shot automation or phone call no longer burns a shared global budget - prompt_builder.py: tool order — Filey tools, terminal, browser panel, computer last
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
CI stopped at npm audit before running anything else. Patch the four workspaces that now fail: - vite 8.1.5 -> 8.3.5, vitest 4.1.11 -> 4.1.12, zod 4.4.3 -> 4.6.7 - override @ag-ui/core 0.0.53 -> 1.0.3: 0.0.53 pulls the vulnerable zod 3.25.76; 1.0.3 has no runtime zod import and keeps every EventType OpenUI uses - mcp-server: zod ^3.23 -> ^4.6.7 (MCP SDK and zod-to-json-schema both accept v4), plus audit-fix transitive updates - wa-bridge: follow-redirects 1.16.0 -> 1.16.1 Verified: npm audit 0 in root/worker/mcp-server/wa-bridge; typecheck, lint (0 errors), 446 files / 4152 tests, production build, route-bundle and web-security checks, MCP build + local smoke.
Browser reads now page through long pages with next_offset, scroll/wait complete the action set, and each mutating action returns the settled page (or a changed=false marker) so the agent observes before its next step. A per-turn browser-step budget stops runaway loops. Computer use counts only mutating inputs (max 10) and adds a 90-second per-turn window; reads and screenshots stay free, and a new turn resets the budget. Refresh deno.lock so the edge test lockfile matches the bumped dependencies.
Replace the Z.ai GLM-5.3-Flash managed route with DeepSeek's official Flash model (deepseek-flash, DeepSeek-V4.1-Flash-1017). Requests go to api.deepseek.com/chat/completions with the server-only FILEY_AI_DEEPSEEK_KEY; the retired deepseek-v4-flash alias remains accepted by usage settlement. GLM-only thinking field dropped; provider isolation uses DeepSeek's documented user field. Customer tariff, Coin pricing, caps and the public filey-ai alias are unchanged, so the swap is invisible to users. Live-verified the key, model id and response shape before deploying ai-credits and channel-webhook.
The Filey Agent engine (agent/, the Hermes fork): - Results from Filey app tools are trimmed before they reach the model. Screenshots are lifted out of base64 text (sent as images to vision models, as a one-line note to text-only ones), and long JSON lists keep their head, tail and error rows (tools/tool_output_crusher.py, rules ported from headroom's SmartCrusher, Apache-2.0). - Filey app tools skip the generic 420 s sequential deadline. The app's approval card is invisible to the engine's clock, so slow approvals and long exports timed out with the card still open. The app bridge's own limit is now the only one, raised from 10 to 30 minutes. - Closing Filey no longer crashes the engine's exit path: logging to a dead stderr raised OSError 22 on Windows on every app close. - Filey AI's "conversation is too large" reply is classified as compressible instead of malformed, so it no longer wedges a chat. - A finished turn tells the app when another turn is already queued (a late steer, a message typed mid-turn), so the follow-up is shown. - Prompt: long jobs go to create_automation with until_done and each turn ends with a STATUS line; compact "lazy senior" working rules are always on, with the full ponytail skill loadable on request. - harness2 plugin: an evidence-graded lesson library, on by default (config version 51 and its migration). - Native Filey tool manifest regenerated for the new app tools. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… tasks - Computer use: the agent's on-screen cursor is a rounded black dart with a white outline, drawn at 1.2x the Windows arrow (was 2.4x). The Windows arrow itself is hidden while the agent controls the computer and returns when it stops or the user presses Esc. The hiding goes through the Magnification API, which Windows undoes by itself when the process ends, so a crash cannot leave the desktop without a pointer. - Computer use: batched app steps on one app snapshot, screenshot passthrough only for models that can see, clearer app-not-found hints. - always_on_keep_awake: Windows stays awake on idle while a long task is working (SetThreadExecutionState on its own thread). - Engine config: compression threshold and tool listing owned by the app per provider; Filey AI summaries get room to finish (8192 output tokens) instead of being cut off at the default 2048. - WhatsApp bridge supervision fixes. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Marketing gets an "Instagram DMs" tab: keyword rules that answer comments, live comments, story replies and story mentions with a private message from the customer's own professional account, with tracked links. - Edge functions: instagram (the app's API, checks membership and the marketing module), instagram-auth (OAuth), instagram-webhook (events from Meta), ig-track (link clicks). Tokens stay server-side. - Migration 2026-11-04-instagram-automations.sql, service-role only, and the same tables in the fresh-install schema (schema.sql is regenerated by scripts/build-schema-bootstrap.mjs). - App: InstagramDmPanel and lib/instagram.ts. When the service cannot be reached the panel says so in plain words instead of a raw fetch error. Not live yet: the migration and functions still have to be deployed, and the Meta app needs its ID, secret and review. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
New Pro checkouts are refused, in the app and on the website, with a pointer to Freedom. Existing subscriptions keep renewing and can still open the customer portal. The rate-limit test now runs on a Freedom checkout and checks that a Pro one is refused before any limiter or provider call. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ent upgrades A month of app work. Filey Agent - Long tasks: an automation with the schedule "Until it's done" is run turn after turn until the agent reports STATUS: DONE. It retries with backoff for as long as it takes, resumes after Filey was closed, stops for the owner when blocked or going in circles, and keeps the PC awake. Send and pay steps still wait under "Needs your OK". - Token use: channel rules are sent once per session, idle sessions are refreshed with a short recap, greetings skip the engine, and a chat that grew too large restarts itself with a recap. - New tools for every shop: find_products (name, SKU, barcode, batch), expiry_report, receive_batch, write_off_batch, profit_report; product create and update go through the same checks as the product page. - An approval clicked after the engine gave up no longer runs anything. Office - One image-placement model for Word, Sheets, Slides, Designs, Fig and Vector (letterhead, signature, stamp), and a full-page Word letterhead that sits behind the text. India - GST mode: CGST/SGST/IGST split, GSTR-1 and 3B, GSTR-2B matching, e-way bill, Bill of Supply and composition (CMP-08), TDS/TCS, invoice copies, PF/ESI/PT payroll, UPI QR on invoices. - UPI payment check: bank alerts from Gmail, forwarded SMS or a pasted message are matched to unpaid invoices; the owner confirms each one. Shops - Counter (POS) for every business: receipts, history, saved customers, profit report. Batches and expiry for all; Pharma mode adds Rx. Channels - Slack, Discord and Teams connect with the provider's own Allow page. Design - Sentence-case labels across the app with matching Arabic and Hindi keys, quieter stat colours, dead CSS removed, company and month as the Overview title. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
- Version 3.0.30 in package.json, package-lock.json, tauri.conf.json, Cargo.toml and Cargo.lock. - npm advisories cleared: ag-psd 31.0.3, minimatch 11 under typescript-estree, and audit fixes in the root, mcp-server and tools/wa-bridge trees; deno.lock follows package.json. - scripts/build-engine.ps1 calls Windows' own tar by full path. Git's GNU tar, which is ahead of it on some PATHs, cannot write a zip. - eslint and vitest ignore dist-engine/, so a local engine build does not get linted and tested as if it were the app. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The Name box on the product page used a medicine as its example, which made the form read as pharmacy-only. The example is now a general product. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
WhatsApp went silent because a print preview left open in the hidden window blocks every script on the page, so messages, schedules and token refresh all stopped until the window was opened again. - The page now answers each 30 s tray tick (always_on_alive). After 5 missed ticks with the window hidden, the desktop reloads the page; a visible window is never reloaded, and a new page gets 10 ticks first. - Messages carry the time the bridge received them; one older than six minutes is dropped instead of answered late. - The owner is told once when WhatsApp logs out or the bridge fails. - The heartbeat refreshes the sign-in so the engine token stays valid while the window is closed. - Instagram DMs explains a 503 as "not switched on yet" instead of an error. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fixed assets (Accounting → Assets): add assets with cost, salvage value and useful life, see straight-line depreciation, dispose of them, and post a period's depreciation to the ledger (5400 Depreciation, 1590 Accumulated Depreciation, 1500 Fixed Assets). Posting is idempotent per asset and period. Agent tools: list_fixed_assets, add_fixed_asset, post_depreciation. Live app events through Composio triggers: - supabase/2026-11-21-app-events.sql: app_triggers and app_events, service role only. - composio-webhook function: verifies Composio's signed deliveries and stores events only for triggers Filey turned on for that person. - integrations function: trigger_types, trigger_enable (max 25 per person), trigger_disable, trigger_list and events. - Every app tile in Integrations opens the app's own page (/integrations/app/<app>): logo, what it does, how it works, Connect, event switches with their settings, and recent events. A blocked popup leaves the sign-in link on the page, and a sign-in started under one account cannot finish under another. - Automations can run when "a connected app sends an event"; agent tools list_app_events, list_app_event_types, turn_on_app_event and turn_off_app_event. - scripts/composio-webhook-setup.mjs creates the project's webhook subscription and keeps its secret out of the repo. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Each handled Dodo delivery's webhook-id is stored (dodo_webhook_events) and a repeat is skipped, as Dodo's docs ask. Ignored deliveries are not stored, so a replay after a fix still runs. - A Freedom licence is revoked when its payment is refunded under the policy or lost to a dispute, a parked website purchase is voided so it cannot be claimed, and a late payment.succeeded cannot grant it again. - Refunds return 90% (gofiley.com/refunds): approving a subscription refund in Filey sends Dodo a partial refund per line, in the currency the customer paid, and the dialog shows the 90% amount. - supabase/2026-11-21-dodo-webhook-norms.sql adds the table, the revoked_at/revoked_reason and voided_at columns, and the claim filter. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
npm audit fix moves hono to 4.13.20 (GHSA-4m76-xfj5-7975 and four related moderate advisories). The MCP server builds and its local smoke test passes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Continues the work Claude started in the "Filey agent work" session (it hit its weekly limit mid-verification).
Why
The WebView overlay (
public/agent-overlay.html) could hang under memory pressure, and Windows then swapped it for a frozen "ghost" window that swallowed every click. The whole desktop looked locked — which is why the Instagram task froze and new WhatsApp messages never got a reply. The engine log confirms the freeze: the 18:26 message triggered a model call, then a tool call never returned.What
agent_overlay.rs— the overlay is now native Win32 layered windows: a soft glow ring that follows the pointer, a label at the top of the screen, click-through (WS_EX_TRANSPARENT), never takes focus, stays off Alt-Tab and out of screenshots. Esc is read through a low-level keyboard hook, so Escape pressed by the agent (closing a dialog) no longer cancels its own session.computer_use.rs— one PowerShell host per session instead of a newpowershell.exeplus a C#Add-Typecompile on every action. The helper is loaded once as a script block; requests arrive over stdin ashelper|ocu<TAB>base64(json). The host exits when Filey does, so no helper outlives the app.desktop_browser.rs+desktopBrowser.ts— the built-in browser now runs a Browser Use-style observe → act → observe loop.readreturns the page as text with every control numbered[n]and pages long pages throughoffset/next_offset;click,type,press,scrollandwaitcomplete the action set. Each mutating action returns the settled page (orchanged: falsewhen nothing moved), so the next step starts from fresh state instead of a remembered snapshot. Native DevTools input over the accessibility tree, so no screenshots and no vision model are needed. Page JavaScript is never evaluated, cookies are not exposed, password fields read back as(hidden). Tab cap 8 → 4.aiTools.ts— per-turn budgets in the sharedrunToolchokepoint. Computer use counts only mutating inputs (max 10) and adds a 90-second wall-clock window; reads and screenshots stay free. Browser use gets a 60-step cap, withlist,close,close_allandstopfree. Only real turns are budgeted, andendTurnresets both so one-shot callers never drain a global bucket.prompt_builder.py— tool order for Filey Agent: Filey's own tools → terminal → browser panel → computer use last.filey_agent.rs—workspace_browseris no longer deferred; it is always visible.Verified
cargo test --lib desktop_browser5/5;npx tsc --noEmitclean;eslint0 errorsf96d4247: build,npm audit,npm run test:edge, route bundles and web security all passCI dependency patch (e9b0081)
CI now stops at
npm auditbecause of advisories published after the last greenmainrun (Oct 19). This commit patches only the affected dependency pins:vite8.1.5 -> 8.3.5,vitest4.1.11 -> 4.1.12,zod4.4.3 -> 4.6.7@ag-ui/core0.0.53 -> 1.0.3 via override. 0.0.53 pulls the vulnerablezod@3.25.76; 1.0.3 has no runtime zod import and keeps everyEventTypeOpenUI uses.mcp-server: zod^3.23->^4.6.7(the MCP SDK and zod-to-json-schema both accept v4), plus audit-fix transitive updates.wa-bridge:follow-redirects1.16.0 -> 1.16.1.Refreshed
deno.lockfor the bumped dependencies. Verified locally after the bumps:npm audit0 in root/worker/mcp-server/wa-bridge, typecheck clean, lint 0 errors, 446 files / 4152 tests, production build plus route-bundle and web-security checks, and MCP build + local smoke.Not included
The untracked
mobile/Capacitor artifacts (188 KB, generated) are unrelated to this fix and stay out of the commit.🤖 Generated with Claude Code