Skip to content

Commit cde121e

Browse files
committed
Merge mobile-shell-polish at eb785f1: the mock on the merged sign-in contract, and main
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
2 parents 78ec750 + eb785f1 commit cde121e

184 files changed

Lines changed: 14613 additions & 542 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.env.example‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ OPENBOT_SINGLE_USER=true
8888
# OKTA_OAUTH_CLIENT_ID=
8989
# OKTA_OAUTH_CLIENT_SECRET=
9090
# OKTA_OAUTH_ISSUER=https://example.okta.com/oauth2/default
91+
# Optional. Unset asks for openid profile email; set openid for a provider that grants nothing else.
92+
# OKTA_OAUTH_SCOPES=openid
9193

9294
# Email domains admitted at sign-in, comma separated. Empty admits everybody, which is what the
9395
# providers above already do on their own: the Entra tenant is `common` unless changed, which is any

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ jobs:
477477
--volume "$(command -v bun):/usr/local/bin/bun:ro" \
478478
--env OPENBOT_APP_BROWSER=1 --env OPENBOT_APP_ENGINES=chromium,webkit \
479479
"$PLAYWRIGHT_IMAGE" \
480-
bun test --parallel=8 app/tests/chunk-recovery.test.tsx app/tests/composer-dictation-language.test.tsx app/tests/sidebar-zoom-drag.test.tsx app/tests/service-terms.test.tsx app/tests/move-to-cloud-settings.test.tsx app/tests/moved-elsewhere.test.tsx app/tests/home-no-answer.test.tsx app/tests/section-strip-routines.test.tsx app/tests/organization-members-remove.test.tsx app/tests/settings-tool-cards-admin-layout.test.tsx app/tests/settings-tool-cards-personal.test.tsx app/tests/settings-tool-cards-core.test.tsx app/tests/one-press-connect-layout.test.tsx app/tests/sign-in-reconnect-layout.test.tsx app/tests/admin-notion-one-press-layout.test.tsx app/tests/team-connections-directory-layout.test.tsx app/tests/conversation-switch.test.tsx app/tests/member-rows-long-names.test.tsx app/tests/people-lists.test.tsx app/tests/organization-moving.test.tsx app/tests/organization-removed.test.tsx app/tests/organization-held-reload.test.tsx app/tests/organization-unavailable-pages.test.tsx app/tests/organization-held-actions.test.tsx app/tests/organization-unavailable-admin-pages.test.tsx app/tests/organization-held-recovery.test.tsx app/tests/bot-screen-sharp.test.tsx app/tests/bots-panel-start-conversation.test.tsx app/tests/table-export-browser.test.tsx app/tests/organization-unavailable-chat.test.tsx app/tests/moved-apps-reconnect.test.tsx app/tests/composer-keeps-draft-browser.test.tsx app/tests/conversation-reply-toolbar-layout.test.tsx app/tests/roster-working.test.tsx app/tests/delete-account-layout.test.tsx app/tests/composer-touch-return.test.tsx app/tests/bot-long-instructions-layout.test.tsx app/tests/web-push-browser.test.tsx app/tests/computer-panel-phone-layout.test.tsx app/tests/browse-apps-pages.test.tsx app/tests/hand-back-row-layout.test.tsx app/tests/first-message-thinking.test.tsx app/tests/group-conversation-gutter.test.tsx app/tests/new-conversation-picked-model.test.tsx app/tests/renderer-crash.test.ts app/tests/home-holds-still.test.tsx app/tests/app-frame-skeleton-still.test.tsx
480+
bun test --parallel=8 app/tests/chunk-recovery.test.tsx app/tests/composer-dictation-language.test.tsx app/tests/sidebar-zoom-drag.test.tsx app/tests/service-terms.test.tsx app/tests/move-to-cloud-settings.test.tsx app/tests/moved-elsewhere.test.tsx app/tests/home-no-answer.test.tsx app/tests/section-strip-routines.test.tsx app/tests/organization-members-remove.test.tsx app/tests/settings-tool-cards-admin-layout.test.tsx app/tests/settings-tool-cards-personal.test.tsx app/tests/add-custom-mcp-card-layout.test.tsx app/tests/settings-tool-cards-core.test.tsx app/tests/one-press-connect-layout.test.tsx app/tests/sign-in-reconnect-layout.test.tsx app/tests/admin-notion-one-press-layout.test.tsx app/tests/team-connections-directory-layout.test.tsx app/tests/conversation-switch.test.tsx app/tests/member-rows-long-names.test.tsx app/tests/people-lists.test.tsx app/tests/organization-moving.test.tsx app/tests/organization-removed.test.tsx app/tests/organization-held-reload.test.tsx app/tests/organization-unavailable-pages.test.tsx app/tests/organization-held-actions.test.tsx app/tests/organization-unavailable-admin-pages.test.tsx app/tests/organization-held-recovery.test.tsx app/tests/bot-screen-sharp.test.tsx app/tests/bots-panel-start-conversation.test.tsx app/tests/table-export-browser.test.tsx app/tests/organization-unavailable-chat.test.tsx app/tests/moved-apps-reconnect.test.tsx app/tests/composer-keeps-draft-browser.test.tsx app/tests/conversation-reply-toolbar-layout.test.tsx app/tests/roster-working.test.tsx app/tests/delete-account-layout.test.tsx app/tests/composer-touch-return.test.tsx app/tests/bot-long-instructions-layout.test.tsx app/tests/web-push-browser.test.tsx app/tests/computer-panel-phone-layout.test.tsx app/tests/computer-starting-browser.test.tsx app/tests/browse-apps-pages.test.tsx app/tests/hand-back-row-layout.test.tsx app/tests/first-message-thinking.test.tsx app/tests/group-conversation-gutter.test.tsx app/tests/new-conversation-picked-model.test.tsx app/tests/renderer-crash.test.ts app/tests/home-holds-still.test.tsx app/tests/app-frame-skeleton-still.test.tsx app/tests/step-rows-layout.test.tsx
481481
# Connect your AI's sign-in code, copied with one press and read back from WebKit's clipboard.
482482
# Only that test: the rest of the file runs in Chromium in the job above.
483483
- run: |

‎CHANGELOG.md‎

Lines changed: 70 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,62 @@ Newest first. `Unreleased` is what is on `main` and not yet tagged.
1616
sidebar's own Conversations and Bots panels, full width; every page under a tab has Back, which
1717
returns to where it was opened inside that tab; and each tab keeps its place when another is
1818
opened. A browser, and OpenBot Desktop, behave as before.
19+
- A Mastra Bot on a Gemini model through an OpenAI-compatible endpoint no longer fails when the
20+
model makes a tool call. Gemini streams the call without the index the chat stream expects,
21+
and the run failed before the call landed; the missing index is now filled in from the call's
22+
place in the list.
23+
24+
- **A plan sign-in that ends says what ended it.** A ChatGPT or Claude plan sign-in in OpenBot
25+
Desktop that ended without finishing said one sentence for every way it could end: "That sign-in
26+
did not finish. Start it again and approve the request in your browser." A sign-in that took too
27+
long, one whose port another app took (the Codex CLI asks for port 1455 back), and one this
28+
computer could not listen for each say so now, and the Desktop's log says which one it was.
29+
30+
- A relative time in the app that rounds up to the end of its unit now reads in the next unit: 59.7 seconds ago is "1 minute ago" and 23 hours 45 minutes ago is "yesterday", where they read "60 seconds ago" and "24 hours ago".
31+
32+
- Confirming a character with an input method editor no longer submits a free-text answer to a
33+
Bot question.
34+
35+
- The Recorder keeps capturing a recording's requests when one of its tabs can't take the page
36+
hook. When Chrome would not let the Recorder use its debugger, one recorded tab it could not reach,
37+
such as a tab closed since or one showing a `chrome://` page, stopped request capture for every
38+
tab, for the rest of the recording, and after the extension's background woke up again. That tab
39+
is now skipped, and picked up once it shows a website.
40+
41+
- The management agent no longer loses a handled command or a promotion phase when a signed command
42+
arrives while it is writing the upgrade journal, which could leave an install waiting for a person
43+
to clear the journal by hand.
44+
45+
- The Recorder ties a step to the save that carries what you typed when the text has an
46+
apostrophe. A form post spells `Let's` as `Let%27s`, and the Recorder only looked for spellings
47+
that leave the apostrophe as it is, so a comment like "Let's meet at noon" posted from a form was
48+
not recognised as carrying it, and the step could be recorded without its save request.
49+
50+
- The Recorder records a page's requests at the address the browser sends them to. When Chrome
51+
would not let the Recorder use its debugger, it watched requests from inside the page and
52+
resolved a relative address against the page's own address, though a browser resolves it against
53+
the page's `<base href>`. On a site that sets one, such as many Angular apps, a step's request was
54+
recorded at an address that was never called. It is now the address the debugger reports.
55+
56+
- The management agent refuses an HTTP management URL at start-up instead of silently sending its
57+
heartbeats without a client certificate, and stops reading an answer from the management service
58+
once it grows past the size a real reply can have.
59+
60+
- **A run of rereads is one line.** When a Bot reads back several earlier results in a row, its
61+
work opens to one line, "Reread 12 earlier results", where it used to list "Reread an earlier
62+
result" once for each. The folded line counts them the same way ("Used Gmail and reread 12
63+
earlier results"). Any other step between two runs keeps them apart. Conversations from before the
64+
upgrade read the same way when opened again.
65+
- Long tool results and approval text now offer "Show all". The measurement used to be taken once,
66+
while the text was still hidden, so the button never appeared and the result stayed clipped.
67+
68+
- **Opening a long conversation no longer scrolls through its history.** Entering a long
69+
conversation could show its history scrolling from the earliest message down to the newest
70+
before stopping. History still arriving after the conversation opened, the stored thread
71+
merging in behind the snapshot, a late voice card, or a turn read back from the roster, was
72+
read as a message just sent, and the short glide meant for a sent message animated the jump
73+
to the bottom. Now a conversation that opens, and history that arrives later, go straight to
74+
the end; only a message sent while the conversation is open glides, with or without files.
1975

2076
## 1.2.2
2177

@@ -2743,6 +2799,8 @@ or a script has to say.
27432799
it, so its pages sent `OpenBot-Client: web/<previous>` and an `OPENBOT_MINIMUM_CLIENTS` naming
27442800
this release refused its own web app. `openbot release` prints it.
27452801
- A step a rule refused, or one that failed, shows its whole reason, wrapped, where it was cut off.
2802+
- A command id repeated in one management-agent heartbeat now runs once, and a malformed command
2803+
no longer uses up its id, so a later valid command with that id is not dropped.
27462804

27472805
## 1.1.0
27482806

@@ -4445,6 +4503,17 @@ deployment:
44454503
- LangChain is called **LangChain**, with LangChain's own mark, where it said "LangChain
44464504
(LangGraph)": in New Bot, a Bot's "Powered by" subtitle and its Runs on row, and OpenBot Desktop's
44474505
note under a ChatGPT plan.
4506+
- A browser action waiting for your approval is named the way its card names it. A Bot's Activity
4507+
row read "Approve computer_click" with "write" beside it, and now reads "Click the link “Python”
4508+
on en.wikipedia.org". The Needs you card names the link too and lists what the action would send
4509+
by label, without the page handles a click carried as raw JSON. An approval in Slack says it the
4510+
same way ("Research Bot wants to click the link “Python” on en.wikipedia.org"), and a saved rule
4511+
is titled "Click" or "Send email on Gmail" instead of its tool id. The line under it names the
4512+
folder and the Bot by name and the kind of action in words ("changes in share for Shop"), where
4513+
it read "write on host-grant-15407-… for shopper-bot".
4514+
- The CrewAI, Agno, LlamaIndex, ADK, Strands and Langroid Bots now run on Google. Choosing
4515+
Google sent litellm the provider name `google`, which it does not know, so every message failed
4516+
with "LLM Provider NOT provided"; it now gets `gemini`. `GOOGLE_API_KEY` is still the key.
44484517
- Settings → Activity and Admin → Audit reach past the newest 50 events. **Show older events** under
44494518
the last row loads the next page, and the count reads "Newest 50 events", growing as more load,
44504519
until nothing older is left. They stopped at the newest 50 and counted them as if that were
@@ -7535,7 +7604,7 @@ Two catalogue entries reach Parallel's public-web search and extraction at
75357604
granted automatically. When a Bot holds both `web_search` and `web_fetch`, the built-in Bot guidance
75367605
describes them for public-web research, and the fintech example's Research Desk ships a
75377606
`research-public-web` skill that declares them. See
7538-
[Public-web research with Parallel](docs/parallel-research.md).
7607+
[Public-web research with Parallel](docs/web-research.md).
75397608

75407609
### `lodash-es` is pinned to the patched 4.18.0
75417610

‎agent-adk/Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ COPY agent-adk/requirements.txt ./
99
RUN pip install --no-cache-dir -r requirements.txt
1010

1111
COPY agent-adk/src ./src
12-
COPY shared/model_providers.py shared/model-providers.json shared/run_model_key.py /shared/
12+
COPY shared/model_providers.py shared/model-providers.json shared/run_model_key.py shared/progress_reminder.py shared/empty_turns.py /shared/
1313

1414
ENV PORT=4208
1515
EXPOSE 4208

‎agent-adk/src/main.py‎

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
# The spec file every language in the box reads: one level above this Bot in the repository, and
1515
# one level above /app/src in the image the Dockerfile builds.
1616
sys.path.insert(0, str(Path(__file__).resolve().parents[2] / "shared"))
17-
from model_providers import bot_settings
17+
from empty_turns import without_empty_turns
18+
from progress_reminder import with_litellm_reminders
19+
from model_providers import bot_settings, litellm_model_id
1820
from run_model_key import RunModelKey
1921

2022
from ag_ui.core import (
@@ -31,13 +33,29 @@
3133
from google.adk.agents import Agent
3234
from google.adk.apps.app import App, EventsCompactionConfig
3335
from google.adk.events import Event
34-
from google.adk.models.lite_llm import LiteLlm
36+
from google.adk.models.lite_llm import LiteLlm, LiteLLMClient
3537
from google.adk.sessions import InMemorySessionService
3638
from google.genai import types
3739

3840
TOKEN_HEADER = "x-openbot-agent-token"
3941

4042

43+
class RemindingLiteLLMClient(LiteLLMClient):
44+
"""Sends each step with only the words the model said, and reminds the model to say a line
45+
after five silent tool steps in a row.
46+
47+
Applied to the messages each call sends, after ADK has built them from the session: a step
48+
with no words goes as no words, never as LiteLLM's "[System: Empty message content sanitised
49+
to satisfy protocol]" (shared/empty_turns.py), and then the reminder is placed
50+
(shared/progress_reminder.py). The session, the run's events and the thread the person sees
51+
never hold either.
52+
"""
53+
54+
async def acompletion(self, model, messages, tools, **kwargs):
55+
sent = with_litellm_reminders(without_empty_turns(messages), model)
56+
return await super().acompletion(model=model, messages=sent, tools=tools, **kwargs)
57+
58+
4159
class CompleteToolCallsLiteLlm(LiteLlm):
4260
"""Keep tool args together at AG-UI's long-running tool boundary.
4361
@@ -347,7 +365,7 @@ def _model_id() -> str:
347365
settings = bot_settings("agent-adk")
348366
provider = settings.provider
349367
model = settings.model
350-
return f"{provider}/{model}"
368+
return litellm_model_id(provider, model)
351369

352370

353371
app = FastAPI()
@@ -388,7 +406,9 @@ def _app() -> App:
388406
root_agent=Agent(
389407
name="openbot",
390408
tools=[AGUIToolset()],
391-
model=CompleteToolCallsLiteLlm(model=_model_id()),
409+
model=CompleteToolCallsLiteLlm(
410+
model=_model_id(), llm_client=RemindingLiteLLMClient()
411+
),
392412
instruction="Answer the question you are asked, briefly and correctly.",
393413
),
394414
events_compaction_config=EventsCompactionConfig(

0 commit comments

Comments
 (0)