511 Commits
Author SHA1 Message Date
tben a5dbde1da7 Release 0.27.8
CI / check (push) Waiting to run
Release image / image (release) Waiting to run
Release image / computer-image (release) Waiting to run
v0.27.8
2026-11-22 18:04:53 +01:00
tben 51747c069f Let a connector given to a workspace reach every account connected for it
A workspace's connector gave every member its tools but no account, so a
member with no sign-in of their own was told nothing was connected while
the super admin's account sat unused. Account reach now follows the
workspace grant, whoever connected the account, and the run names them.

The Composio listing also filtered on `user_id`, which it ignores, so one
person's sync adopted the whole project's accounts: it takes `user_ids`.
2026-11-22 18:04:48 +01:00
tben 3f551e7352 Release 0.27.7
CI / check (push) Canceled after 0s
Release image / image (release) Canceled after 0s
Release image / computer-image (release) Canceled after 0s
v0.27.7
2026-11-22 17:24:14 +01:00
tben fdd1e8a757 Let a Composio toolkit sign in with its own scheme, and stop adopting a replaced app's leftovers 2026-11-22 17:20:41 +01:00
tben 60022d8220 Split the bot panel into Settings, Memory and Tools
The drawer held only the bot's profile. Its memory and everything it works
with now have tabs of their own, the last one sharing the composer's own
list of tools and knowledgebases.

- Memory: core memory, plus the workspace's memory for the bot when the
  conversation is in one. New `update-bot-memory` route; the workspace
  request's fields are optional so a memory-only save cannot blank the
  instructions there.
- Tools: computer, tools/skills/MCPs with connectors and browsers, and
  knowledgebases.
2026-11-22 16:49:44 +01:00
tben 4837bf325e Reconnect the row the request names, and check a cached session's account 2026-11-22 16:28:36 +01:00
tben 383ef82400 Release 0.27.6
CI / check (push) Canceled after 0s
Release image / image (release) Canceled after 0s
Release image / computer-image (release) Canceled after 0s
v0.27.6
2026-11-22 16:00:46 +01:00
tben 7e1135beb1 Start a folder at the top and never show the last one's entries
A folder opened from the popup kept the previous folder's rows, trail and name until its own listing arrived, and it kept that listing's scroll offset, so a folder opened part-way down or at its bottom. The listing is now handed back only for the volume and path it belongs to, shows a loading line meanwhile, and is keyed by folder and search so each one starts at the top. The trail is built from the path at once instead of waiting for the listing, and the file preview header puts the size and full path on their own line so a phone no longer squeezes them into a character column.
2026-11-22 15:56:19 +01:00
tben b30d6118fe Transcribe on Alibaba's native route, and card the composer error
The Token Plan host has no /audio/transcriptions: its ASR model is served at the DashScope host root, with the audio inline as a data URL and the model's own format and language hints. Async-only slugs (filetrans, paraformer) are refused with the synchronous model to pick instead. The image helpers that recognise those hosts move to one shared module.

A failed send, or a failed dictation, now shows as a dismissible card under the composer in the error or warning tint rather than a line of grey text.
2026-11-22 15:51:38 +01:00
tben 35b9808d97 Close a phone panel with the swipe back off its edge
An open panel now answers the swipe that undoes the one which opened it: a left drag closes the rail's drawer, a right drag the bot panel, through a panel-local listener sharing swipe-gesture.ts with the page swipes. SidePanel carries the bot panel's phone width (420px, at most 92vw) for both, and field detection moves to touch-in-field.ts so both hooks ignore a touch in a field.
2026-11-22 15:36:07 +01:00
tben 7460163287 Keep suggested next steps inside their chips on a phone 2026-11-22 15:30:41 +01:00
tben da6a73f740 Release 0.27.5
CI / check (push) Canceled after 0s
Release image / image (release) Canceled after 0s
Release image / computer-image (release) Canceled after 0s
v0.27.5
2026-11-22 12:35:22 +01:00
tben 2afe35954c Size runs to the model's own window, and stop a run reading notes instead of answers
The working context was 70% of the model's window, and a model whose
catalog never declared one got 70% of a guessed 131,072: a chat on a
custom provider was told it had 91,750 tokens, then had every tool result
trimmed to a bare note, including a 14-character shell answer, and spent
its remaining steps reading nothing.

- workingContextTokens: the declared window less the room the answer
  needs (max_output_tokens, else a tenth clamped to 8,000-64,000),
  capped by grabContextBudgetTokens when an install sets one.
- An undeclared window is assumed to be 1,000,000, and the guess is not
  silent: the picker marks such a model and the Models page says what a
  run works to. A provider that refuses the prompt for size stops the
  run with its own limit (fatal: no fallback, no rest, no retry).
- fitTranscriptToContext: a result under 2,000 characters is never cut,
  a trimmed one keeps its start and its end, and the newest turn's
  results are cut last. over_budget says whether the static prompt or
  the request is over; the static case stops the run at once instead of
  trimming every turn.
- Built-in tools are deferred by family (groupTools, ToolGroups) on a
  model short of window; load_tools takes a family name or a prefix.
  Wrap-up tools, closing tools and load_tools are never deferred.
- Usage reports what the app's own prompt and tools took before the
  conversation did.
2026-11-22 12:35:17 +01:00
tben 5ea9b608be Refuse a connector account the provider no longer has, and stop adopting duplicates
CI / check (push) Canceled after 0s
Release image / image (release) Canceled after 0s
Release image / computer-image (release) Canceled after 0s
v0.27.4
2026-11-22 10:56:35 +01:00
tben 7c92d0b4be Release 0.27.3
CI / check (push) Canceled after 0s
Release image / image (release) Canceled after 0s
Release image / computer-image (release) Canceled after 0s
v0.27.3
2026-11-22 10:27:05 +01:00
tben 319eb74a23 Give a runner that exits at once a moment to be seen 2026-11-22 10:26:10 +01:00
tben c745f58991 Overlap the connector icons on the tools button 2026-11-22 10:26:10 +01:00
tben b046e90958 Show connector apps on the tools button 2026-11-22 10:20:49 +01:00
tben 4a02035f33 Reconnect an account in place, and keep its card readable 2026-11-22 10:13:09 +01:00
tben f8a7b0f2e7 Keep every connector account a second sign-in adds
CI / check (push) Canceled after 0s
Release image / image (release) Canceled after 0s
Release image / computer-image (release) Canceled after 0s
v0.27.1
2026-11-22 09:32:54 +01:00
tben fdaa5649ef Release 0.27.0
CI / check (push) Canceled after 0s
Release image / image (release) Canceled after 0s
Release image / computer-image (release) Canceled after 0s
v0.27.0
2026-11-22 08:35:27 +01:00
tben 94b999aef1 Take twui 0.1.15 and keep lodash out of the form hook
twui 0.1.15 stops importing lodash for omit and merge, so a page that
renders a twui component no longer carries the library, and the form hook
takes a shallow copy instead of cloneDeep: EJSON serialises it anyway, and
lodash was putting the conversation page 8 KB over its bundle budget.
2026-11-22 08:35:23 +01:00
tben 70fd37e707 Take twui 0.1.14 and one copy of tailwind-merge
twui 0.1.14 depends on tailwind-merge 3.7.0, so the app moves to the same
version and the lock keeps a single copy instead of one nested under twui.
2026-11-22 08:21:47 +01:00
tben 1ae360cffd Expand a connector's cut result instead of reading it as the total
Composio's hosted MCP router answers a large tool result with a preview:
data becomes data_preview holding two of the ten messages, a "...8 more
items" marker, and next_steps telling the run to parse a saved response the
app never receives (ComposioHQ/composio#5025). A Gmail fetch of a primary
inbox therefore reached the model as "only 2 emails": a reply told the user
that, and then spent turns looking for the file.

A preview is now recognised wherever it sits in the answer (preview-result),
measured by the biggest cut in it, and rewritten to say that 2 of 10 items
are here and the other 8 were cut, with structure_info, next_steps and
log_id dropped. A connector tool asks the provider's REST API again for the
same tool and arguments, which returns the whole result, and falls back to
that note when it can't (expand-preview-result). ConnectorsNote tells a run
that a preview is never the total and never an empty result.
2026-11-22 08:21:43 +01:00
tben 85af8ac4e9 Focus an ask_user card's typed answer as soon as it opens
An "Other" box on a question card is the one thing waiting on the user, so
it takes the cursor instead of needing a click first.
2026-11-22 08:01:29 +01:00
tben 9202e80331 Keep passwords out of what a bot reads, and fill env templates in tool arguments
A coordinator leaked a mailbox password and then told its user an env was
empty. The value came from Chrome's saved-login vault in the browser
profile, which the run could read and printed in a snapshot; the env it
wanted was set all along, and the {{env.KEY}} it was told to write arrived
as literal text in a custom tool's arguments.

A password-named field's value, and that value inside its container's
accessible label, now become [hidden] in every browser tool result
(maskPasswordFieldValues), and a reply, an ask_user card, a suggested step,
a send_message and a task report are redacted through it plus redactSecrets
before they are stored. The profile keeps no saved logins: pruneProfileSecrets
removes the login and autofill stores at every Chrome start, and the managed
policy turns off the password manager, autofill and browser sign-in (site
cookies stay, so sessions stay signed in). SecretsNote says [KEY] means set
and hidden, never empty, and that a page credential is never repeated.

A custom tool's arguments are now filled too (fillEnvArgs on
build-custom-tool, with arg_envs = the computer's envs and the run's, the
run's winning): http and script tools get the value, a prompt tool the
[KEY] marker, and an unset key throws the same Settings > Environment
message as a config template. A filled value is redacted from the result.

The computer image is 1.4.5 (the agent changed), so AppData.ComputerImage
moves with it.
2026-11-22 08:01:24 +01:00
tben b088050577 Add connectors: apps each person signs in to, given to bots and workspaces 2026-11-22 07:32:39 +01:00
tben a2149e2397 Paste and copy extensions between installs from their JSON
An Add form's Paste JSON button opens a modal that reads one item's JSON, a whole export or a raw config, fills the form and says what the export left out and which documents come with it.

Each existing row's menu copies that item's export-shaped JSON, and a pasted knowledgebase's documents are written when it is saved.
2026-11-21 20:52:40 +01:00
tben 71bb4d517f Check the CI run after a release, not just before it 2026-11-21 20:22:47 +01:00
tben 58280f5ba7 Release 0.26.0
CI / check (push) Canceled after 0s
Release image / image (release) Canceled after 0s
Release image / computer-image (release) Canceled after 0s
v0.26.0
2026-11-21 18:51:52 +01:00
tben e3439fb3d1 Offer a one-click way out of Plan mode under the answer
A reply that ran in Plan mode now records bot_messages.plan_mode (from the
job's params) and shows a Turn Plan mode off button under it while the
conversation is still in the mode: one click turns it off and puts
"Plan mode is off, go ahead." in the composer, never sending it.

The planning prompt, the tool gate's refusal and the file-escape review
fault now point at that button, so a bot says what it will do once the
mode is off instead of handing the work back to the user to paste.
2026-11-21 17:38:31 +01:00
tben 686e87269a Wrap the embedding note's link onto its own lines 2026-11-21 17:19:53 +01:00
tben ce89480c15 Keep Plan mode on through an ask_user answer
Session 135 answered a coordinator's ask_user card and the next reply
proposed and created a custom tool while the header still said Plan mode
was on. Two gaps let it happen.

The card's answer was posted as an ordinary user message and queued as a
plain reply, so run-bot-reply read plan_mode as false and applied no
allowlist. bot_questions now records plan_mode from the run that asked,
and postBotQuestionAnswers carries it onto the message and the queued
reply, for both the answer and the skip. Only Tab, or approving a plan,
leaves the mode; the prompt's "their answer runs with the save allowed"
escape is gone from PlanModeNote, planModeFileEscape and their review
fault.

The mode also hid write tools, so a refused call came back as "There is
no tool called ...", which is untrue and hides the reason. filterPlanModeTools
becomes gatePlanModeTools: every tool keeps its name, description and
schema, and only run is replaced with the Plan mode refusal, so the bot
reads why it stopped and can say so. load_tools is gated the same way, so
a deferred tool can't be pulled in.

prose-choice-question now reads an offer ending in a colon ("Want me to:")
and treats "want me to", "should i" and "shall i" as choice cues, so the
reply that closed session 135 is sent back to ask_user instead of being
shipped as prose options.
2026-11-21 17:19:49 +01:00
tben 91b92cab0d Export and import extensions as one bundle
Each of the four extension settings pages picks rows with a checkbox
and exports them as one JSON file, or imports such a file from another
install beside New. An import is previewed against what is already here
(item by item: new, already here, different, unreadable) and only then
applied, each item skipped, added, overwritten or added as a copy.

Keys never travel: {{env.KEY}} templates are kept while literal header
and env values are left out and named, so the preview can say which
keys to add. Access grants and all_bots stay behind, knowledgebase
documents travel as text, and nothing is connected on import.

The core takes and returns plain data so a chat path can reuse it later.
The rows' actions also move into a three-dot menu, and the list's
checkbox is pinned so a long title can no longer squeeze it.
2026-11-21 17:00:37 +01:00
tben 45b3f68f4b Let the coordinator see and manage the whole crew's routines and hooks
list_schedules and list_hooks filtered by the calling bot, so the
coordinator saw only its own routine and reported that the user had no
morning-email routine at all, while the Routines page listed it. The
writes carried the same filter, so a fix that only widened the reads
would have found the routine and then failed to change it.

The coordinator now reads the user's routines and hooks across every bot,
each line naming the bot that runs it (and whose chat it runs in), and
changes, deletes or hands over any of them; a worker keeps its own and
its tools say the list is not a census. The prompt and ActionCheckNote
say the same, so a partial read is never reported as "there is none".
2026-11-21 14:54:55 +01:00
tben 2c843dfe4c Cap the extension proposal card's body so it can't take over the thread
The proposal's own content (host, keys, what would be saved, the bot's check and sources) now scrolls inside a 24rem-tall box, while the outcome and the Reject/Confirm row stay visible below it. A test pins the cap.
2026-11-21 14:38:34 +01:00
tben 20f4ad3e04 Name the twui repo in AGENTS.md and ask before publishing a version 2026-11-21 14:33:24 +01:00
tben 739c1440a2 Make the add pickers searchable, on twui 0.1.13
Every InlineAddSelect now filters as you type, so a long list of
extensions, bots or workspaces is narrowed rather than scrolled.
InlineAddSelect remounts the field after adding, since SearchSelect
reads its value only on mount. twui 0.1.13 brings the portalled
search select list, which no modal can clip, and a dark low-opacity
shadow.
2026-11-21 14:31:28 +01:00
tben 37bb3f0470 Swipe between panes on a phone, and slide a bot's panel in from the right
Below `md` the rail slides over the page, so two swipes anywhere on the page
move between panes: to the right opens the rail's drawer, to the left the
conversation's bot panel. A touch on a field, a code editor, something that
scrolls sideways, or a panel the app slid in belongs to it, and so does a
long press, a selection, a mostly vertical drag, a modal already up and any
swipe wider than a phone.

The panel that used to be the centred "Edit <bot>" modal is the same at every
width: the bot's avatar, its name, or the swipe all open it from the right
over the conversation, and Escape or the backdrop closes it.
2026-11-21 13:55:03 +01:00
tben 4ae176f41b Update the plan bar from the card, and make Plan mode unmistakable
The card that moves a plan now announces the new plan on the page, so the
header bar and every card of it change without waiting for a socket push
that a route may never land. The composer's Plan button is filled in the
primary colour while the mode is on, and the notice above the input is
gone: the header tag and the button already say it.
2026-11-21 13:32:17 +01:00
tben ac244174f7 Jump a thread with End and Home, as its button does 2026-11-21 13:20:16 +01:00
tben e3f5b37764 Ask to save a file in Plan mode instead of handing it over
A Plan mode reply that says the write tool is missing, or asks the user to save the document themselves, is faulted: Plan mode is what stops the save, and answering an ask_user card runs with the save allowed. The prompt now tells the bot to ask once with that card rather than paste the whole document.
2026-11-21 13:09:43 +01:00
tben eaae3b9e50 Send a choice asked in prose back to an ask_user card
A reply that ends with a question asking the user to pick, over a numbered or bulleted list of options, is faulted unless the run made an ask_user card. The prompts now say a choice list in the text is not an ask, and that free-form details stay in the message while the choice goes on the card.
2026-11-21 13:02:30 +01:00
tben ed67d6919c Keep a plan's steps on the plan, and end Plan mode when it starts
A step run that neither finished its step, asked the user, changed the plan nor handed work on is sent back, and a blocked step or one that queued work stops the plan instead of advancing over it. Approving or resuming a plan now turns Plan mode off for that conversation, since its steps write. The plan bar's In progress pill is gray outlined.
2026-11-21 12:50:13 +01:00
tben ac28a5211f Show bot cards inline in the conversation, like a plan
Questions, extension proposals, hook proposals and secret requests
used to be a chip on the line that opened their card in a modal. The
plan card already showed in full under the message, so the others now
do too: `RefCardShell` gives them one frame (icon, title, status, the
card body), and the old `*-ref-chip.tsx` files and `RefChipModal` are
gone.

A card is a block, which React refuses inside a `p`, so
`MarkdownParagraph` splits the message's paragraph around card refs
(`isCardRefHref`): the text stays in paragraphs, each card gets its own
full-width line in reading order, decided questions and proposals
included, so nothing waits to be opened.

Tests cover each card rendering its content expanded and the paragraph
hoisting, replacing the chip and modal tests.
2026-11-21 12:13:42 +01:00
tben f8439f7817 Keep a plan reachable from anywhere in its thread
A plan bar under the conversation header shows the open plan (title, status, step x of y) and opens it in a modal, and every message that belongs to a plan carries a Plan chip that opens the same card, so a plan is not lost once the thread moves on. The link is bot_messages.plan_id, written when the message is saved (the plan it wrote or the step it worked) since the job that made it is pruned; a finished plan's bar goes and its chips stay. The history read carries the open plan and server:bot-plan keeps it current.
2026-11-21 10:55:30 +01:00
tben a9b7f7f304 Add a strictly read-only Plan mode to a conversation
Plan mode is toggled by Tab anywhere on a conversation page, or by the
Plan button in the composer's tools row, and it is remembered per bot and
workspace. It rides on the message as bot_messages.plan_mode, through the
reply job's params, so a retry of that message stays in Plan mode too.

A plan-mode reply reads and plans and changes nothing anywhere: the run's
tools are filtered through a fail-closed PlanModeToolNames allowlist, its
send_reply takes no work and refuses status working, and the computer and
browser notes are left out. The plan card, questions, suggestions and the
closing answer are the only things it puts up.

The header wears a green Plan tag while the mode is on.

A plan step is queued with no user message before it, so the thread read
no reply to come and dropped the thinking row between steps. The history
now carries its open replies, and a reply step for the session stands the
row up until the step's report lands.
2026-11-21 10:26:16 +01:00
tben ec999cccc3 Find files in every folder, and let a reply import what it built
CI / check (push) Canceled after 0s
Release image / image (release) Canceled after 0s
Release image / computer-image (release) Canceled after 0s
`list_files` with only a search never looked past the root folder, so a
picture saved in `images/` was reported as missing and two tasks went
hunting a computer for a script that sat in `scripts/`. `write_file`
accepted base64 text under `.png` and attached a 2.6 KB file that would
not open while the reply said a 1376x768 PNG was there. Replies had no
`import_file`, so a real render made on a computer could only come back
through a shell cut at 4,000 characters.

- Search lists matches from every folder unless one is named, and an
  empty search no longer says the bot has no files.
- `write_file` refuses binary extensions, and an image typed as a bot
  write must carry a real image signature.
- A chat reply gets `import_file` from any of its computers, and the
  task run still imports from its own.
- A rerun reads the failed attempt's reason instead of repeating the
  premise that failed.
v0.25.2
2026-11-21 05:38:20 +01:00
tben 352f11b5d1 Tell every card of a proposal when one of them is decided
CI / check (push) Canceled after 0s
Release image / image (release) Canceled after 0s
Release image / computer-image (release) Canceled after 0s
A bot's message can name the same card more than once, and each chip kept
its own copy of the view, so confirming one left the others saying
"Waiting for you" until a reload. primed views now reach the chips
already showing them, for proposals, hook proposals, questions and
secret requests.

Bump to 0.25.1.
v0.25.1
2026-11-20 10:08:49 +01:00
tben 0151ca6e55 0.25.0
CI / check (push) Canceled after 0s
Release image / image (release) Canceled after 0s
Release image / computer-image (release) Canceled after 0s
v0.25.0
2026-11-20 08:19:08 +01:00