* Let every chat of an agent use the browser tabs of the agent
Main chats and side threads of an agent can now use all browser tabs of
that agent. list_tabs shows the chat that opened each tab and tells when
another chat uses a tab now. Takeover, submit_secret and list_logins use
the same rule. Channel and messaging threads still use only their own
tabs and the tabs shared with an @ tag.
* Keep channel tabs out of other chats and make the working hint reliable
The main chat and side threads use only the tabs that the main chat, a
side thread or no chat opened. Tabs of a channel or a messaging thread
stay out of these chats unless a person tags them with @.
otherChatWorking now also uses the last chat that used each tab in the
last 2 minutes, because control sessions end 1.2 s after a call.
A takeover from one chat no longer deletes the held takeover result of
another chat. list_tabs looks up each chat once per call.
The browser user-control E2E now covers the cross-chat access.
* Keep a held takeover result for each chat of a tab
Held takeover results used only the tab id as the key. When two chats of
one agent took over the same tab, the second result replaced the first.
The key is now the tab id and the thread id.
* Remove code comments and add the no-comments rule
Remove the comments from first-party code and configuration files:
TS/JS, JSX, CSS, SQL migrations, Swift, Kotlin, Gradle, shell,
Docker, systemd, Nix, YAML, TOML, JSONC and GritQL.
Keep only what a tool reads: license headers, shebangs, compiler
and lint directives, JSDoc types in plain .js files, generated file
headers, GritQL scope lines, the install-server.sh help text and the
openbot-boat-pre-stop marker. Vendored code, fixtures and released
schemas keep their comments.
Add the rule to AGENTS.md, and change the docs that asked for
comments. Add two i18n keys that only comments named to
RELEASED_SOURCE_KEYS.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Keep comments that are data in strings
The benchmark task files in opencode-free-models-bench.ts tell the
model what each function must do. The sample file and HTML page in
the two stories are display content. Put their comments back.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Keep released migrations and mobile native inputs unchanged
check:migrations compares each released migration with v0.73.0 byte
for byte, so restore src/backend/migrations. A change to a native
build input of apps/mobile makes a new runtime version, so restore
those files and the extra fingerprint sources.
List these files and the comment markers that a tool reads in
AGENTS.md. Remove the last requests for comments in
src/renderer/AGENTS.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Let a user tag browser tabs and threads in chat
The @ picker of the chat composer now has sections for agents, browser
tabs and threads. A tag becomes a chip in the message.
- A tab tag lists only the tabs of the agent of the chat. When the user
sends it, the host shares that tab with the target thread of the same
agent, so a side thread can use a tab of the main chat.
- A thread tag gives the agent one short line: the title, the task id,
the state and the start of the result. The agent reads more with
history_read or history_search and the new optional taskId.
- The stored text keeps the marker. The marker expands at delivery, so
the agent gets the current title and state.
- A click on a chip opens the tab page or the thread.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Share a tagged tab when its prompt is built
- Share the tab with the public thread that gets the prompt, not when
the message is queued. A queued message can move or change.
- Use the strict name rule for tab and thread titles.
- A popup keeps the shares of its opener tab.
- A tag from a teammate shows as a name only.
- The picker lists only tabs that have an owner agent.
- Use browserDisplayUrl in the picker.
- Make the thread question in chat-tags-e2e exact.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Keep TaggedThreadState private to delivery-content
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Let an agent use a browser session of its own
Add the per-agent setting "Own browser session" (local only, off by
default). When it is on, new tabs of the agent open in the persistent
partition persist:openbot-browser-agent-<key>. The key is a hash of the
agent id. Two agents can then use different accounts on the same site.
- A tab keeps its session for its life. Popups use the session of the
opener. The state file saves the key, and a restart restores each tab
in its saved session. A tab without a key opens in the shared session;
a tab with a malformed key is dropped.
- Every partition gets the same session configuration. Shutdown and
flushPersistentStorage flush every persistent partition.
- A change of the setting closes the agent's tabs. Deleting an agent
clears its own session.
- Add the browser-agent-session E2E check.
Part of #2646.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Apply the local review findings to agent browser sessions
- Count active downloads across all sessions, so an agent's own session
does not raise the download limit.
- Make clearAgentSession fail when a tab still uses the session, so the
agent deletion logs it.
- Do not configure or keep a session only to clear it.
- Choose the session of a tab in one place.
- Run the agent browser session E2E in the Browser smoke CI job.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Keep the agent session key check inside browser-state
knip reported isAgentBrowserSessionKey as an unused export. Only
browser-state.ts uses it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Add clearAgentSession to the channel manage E2E browser host
main added this fake after the branch point.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Add Duplicate to the sidebar section menu
A custom section can now be copied with its agents, on desktop and in
the web client. The chain uses the existing create section, agent
duplicate, move-agent and move calls, so no Team API route changes.
Refs #2794
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
* Name a copy of a copy section "Name copy N"
A copy of "Name copy" was "Name copy copy". Agent copies use "Name copy N",
so section copies now do the same.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Make section duplicate safe against server switches and parallel copies
- Stop the chain when the server changes during a call.
- Mark each source agent as duplicating, so its own Duplicate item waits.
- Find the new section by the id that the create added.
- Keep the copy in place when the source section was deleted meanwhile.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>