Commit Graph
212 Commits
Author SHA1 Message Date
Type_rBody 8e20947054 Merge pull request #2963 from langbot-app/fix/2804-plugin-component-guidance
feat(plugins): guide the next step after an install by component kind (#2804)
2026-11-17 01:46:15 +08:00
01185b8fc1 feat(web): ask for a GitHub Star after 100 handled executions (#3047)
Show a one-time milestone card once the current Workspace has handled
100 real executions (agent runs + pipeline queries). The answer is kept
per browser; 'Maybe later' snoozes for 7 days, Star/close are final.

The executions endpoint gains summary=false so the count-only probe
skips the dashboard aggregates.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-11-16 14:02:05 +08:00
044d2698d4 feat(web): show release notes from langbot.app changelog in the update dialog (#3044)
* feat(web): show release notes from langbot.app changelog in the update dialog

Read the curated changelog feed at https://langbot.app/changelog.json for
update detection and release notes, and redesign the dialog as a timeline
of every release between the running and latest version, grouped by
change type. Clicking the sidebar version opens the current version's
notes. Falls back to the Space-cached GitHub releases when the feed is
unreachable.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* style(web): simplify update dialog to match the existing UI

Drop the header gradient, icon tile, coloured type pills and timeline
rail; use plain DialogHeader, neutral type labels and separators.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* style(web): use langbot.app changelog type tags in the update dialog

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* fix(web): order pre-release, post and hand-edited Core versions correctly in the update prompt

The sidebar badge and the dialog used two different comparators that
both read PEP 440 suffixes like 4.11.8b1 as 4.11.8, so beta users were
never offered the matching stable release, and the two could disagree.
Unparseable versions such as "custom" were offered every release.

Use one parser (coreVersion.ts) for both: stable X.Y.Z supersedes its
own a/b/rc/dev and -beta.N builds, .postN and +local map to their base
release, and unparseable versions never get an update prompt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-11-16 13:31:53 +08:00
TyperBody 0d7e583d03 test(web): let the Workspace bootstrap land before switching 2026-11-16 02:51:10 +08:00
TyperBody 0c7ae1149f fix(web): pin the Workspace on an authenticated asset request
The interceptor stamps the header from the global uuid at send time, but the
hook is keyed off the rendered snapshot. A Workspace switch updates the two
separately, so the effect could fire carrying the previous Workspace and land
after the new one, leaving the old bytes in place.

The hook now passes the Workspace it rendered for, and the client honours it.
The spec also waits for the initial Workspace bootstrap before switching,
because that bootstrap writes the server's Workspace over the selector.
2026-11-16 02:33:06 +08:00
TyperBody 5476672f63 feat(web): offer a next step after installing a plugin (#2804)
After an install completes the dialog points at the one thing worth doing
next for each component kind the plugin actually ships, and drops the kinds
that need no guidance. Each row opens the create form directly (?id=new).

A pending permission review renders in the same row, in amber, because the
user still has to act; the extensions list gets the same treatment.

Rebuilt on current master: the branch was 61 commits behind, which left it
on the pre-#3027 http client and made unrelated e2e fail.
2026-11-16 00:35:22 +08:00
huanghuoguoguo ac0b1eaac5 feat: workspace sandbox selection, lightweight validation and limits (#2882)
* feat: configure workspace sandbox backends and E2B templates

* fix: accept user supplied E2B templates without listing API

* feat: separate sandbox test runs and add workspace resource limits

* feat(box): pin workspace backends and validate E2B templates

* fix(box): validate user templates without modifying E2B services

* feat(box): lightweight E2B validation and workspace limit enforcement

* test(box): retain identity cleanup guard for workspace backends

* style(box): satisfy checks on migrated sandbox tests

* fix(box): preserve SDK startup and pin MCP sandbox configuration

* fix(box): retain legacy bound-session execution contract

* fix(mcp): reject untrusted sandbox selection overrides

* test(web): match Workspace settings heading exactly

* test(runner): wait for the managed runtime handshake

* test(runner): align boot fixture with runtime readiness

* fix(box): keep default configuration usable with the published SDK

* fix(box): preserve E2B proxy routing on sandbox reconnect
2026-11-12 21:13:45 +08:00
0b7c137f33 fix(plugin): stop member-driven install paths from stalling on permission confirmation (#2961)
* fix(plugin): stop member-driven install paths from stalling on permission confirmation

- Runner/event-processor installs from the Agent and Pipeline forms and
  knowledge-engine installs from the knowledge base form now auto-confirm
  declared permissions, so their registration polling no longer times out.
- RAG migration confirms the plugins it installs on behalf of the member
  running it and reports plugin_permission_confirmation_required otherwise.
- Upgrading a confirmed compatibility-mode installation to another
  compatibility-mode package keeps it enabled with the full legacy grant set.
- The WebUI install task reads pending_permission_confirmation, the key the
  backend actually writes; the marketplace task clears it after auto-confirm.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* test(web): expect auto-confirm on inline marketplace installs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-11-09 22:08:41 +08:00
a93b2c6e46 fix(web): add missing common i18n keys; fix plugin-upgrade e2e assertion (#2956)
* fix(web,plugin): allow plugin page modals, cache headers for page-api, missing common i18n keys

Salvaged from #2936 (core fix already landed via #2953):

- plugin pages: add `allow-modals` to the iframe sandbox so confirm()/alert()
  in plugin management pages are no longer silently ignored. No
  `allow-same-origin`; the null-origin isolation is unchanged.
- page-api: mark proxied reads `private, max-age=5` and writes
  `private, no-store`; error responses are unchanged.
- i18n: add common.refresh / clickToCopy / finish / operationFailed /
  optional to all 8 locales; they are referenced in the UI but missing
  from every locale.

The WebSocketClient reconnect change from #2936 is intentionally not
taken: transport failures already retry indefinitely with a 15s cap, and
pre-handshake server errors stop by design.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* test(e2e): assert the upgrade summary instead of a removed progress bar; defer modals/cache headers

- plugin-upgrade-recovery: the done state replaces the progress block
  with the success summary, so asserting aria-valuenow=100 on the bar
  fails (also failing on master). Assert the bar is gone instead
  (from #2936).
- Drop iframe `allow-modals` and page-api `Cache-Control` from this PR:
  per the #2936 close-out, modals for third-party plugin pages need a
  separate security review, and Cache-Control on a POST-only route has
  no practical effect. Kept on branch fix/plugin-page-modals-cache-hold.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* fix: restore plugins router files to the PR base

The previous commit restored them from a stale local ref.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-11-09 20:38:10 +08:00
759ab65af2 feat(web): unify tool pickers as grouped collapsible cards (LANG-333) (#2908)
Tool selectors in Pipelines and Agents now share the Workspace operations
look: per-group collapsible cards with a selected/total counter and a
group-level select-all checkbox.

- Add SelectableGroupCard and ToolGroupChecklist under tool-groups/.
- AgentApiToolPicker (event/bot/sandbox/MCP/plugin/skill tools) uses the
  collapsible group cards.
- Runner "Select tools" dialog and the dynamic-form tools selector use a
  searchable provider-grouped checklist.
- Move tool source grouping helpers into tool-groups/toolGroups.ts.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-11-06 15:26:12 +08:00
huanghuoguoguoandClaude Opus 5.5 97ef5b457d feat(api): provide Workspace and execution API foundations (#2648)
Unified Workspace and execution APIs for LangBot (#2639).

- Versioned Application API shared by HTTP, MCP, the Workspace assistant
  and plugins, with one authorization and error contract.
- Execution API facade for every plugin and Runner action.
- Plugin installation permissions: manifest declarations, member
  confirmation, capability ceilings, compatibility mode, revocation and
  audit. Typed Workspace API in the plugin SDK.
- Processor tool configuration: workspace operations, event and bot tools,
  default tool sets for new Agents and Pipelines, and sensitive-tool
  warnings.
- Plugin permission picker in the WebUI; LocalAgent declares every
  plugin-callable permission.
- Documentation for plugin permissions and the Workspace API in English,
  Chinese and Japanese.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 16:36:22 +08:00
43c0ba7e44 feat(speech): implement TTS and STT model layer and pipeline stages (LANG-251) (#2839)
* feat(speech): implement TTS and STT model layer and pipeline stages (LANG-251)

Co-authored-by: multica-agent <github@multica.ai>

* fix(speech): fix invoke signatures and provider lookup in speech stages and model testing

Co-authored-by: multica-agent <github@multica.ai>

* feat(speech): rename STT to ASR, improve TTS voice parameter handling and failure recovery

Co-authored-by: multica-agent <github@multica.ai>

* fix(persistence, lint, web): fix migration revision id, legacy table check, ruff duplicates, and frontend types

Co-authored-by: multica-agent <github@multica.ai>

* fix(speech): restore migration and CI contracts

Co-authored-by: multica-agent <github@multica.ai>

* fix(pipeline,ui): fix select dropdown width gap, add speech to guided tour, and configure show_if for speech options

Co-authored-by: multica-agent <github@multica.ai>

* feat(speech,openclaw): support silk audio transcoding, graceful fallback, duration estimation, and multi-lang deploy docs

Co-authored-by: multica-agent <github@multica.ai>

* fix(audio): enhance ffmpeg executable detection via venv and imageio_ffmpeg

Co-authored-by: multica-agent <github@multica.ai>

* fix(provider): improve LiteLLM error classification and avoid falling back to Unknown error

Co-authored-by: multica-agent <github@multica.ai>

* fix(openclaw): serialize voice_item attributes and improve transcoding fallback logging

Co-authored-by: multica-agent <github@multica.ai>

* fix(audio,openclaw): handle transient TMPDIR deletion and add size attribute to voice_item

Co-authored-by: multica-agent <github@multica.ai>

* fix(openclaw): download and convert inbound voice messages and align voice sending protocol

Co-authored-by: multica-agent <github@multica.ai>

* fix(models): redesign add model popover tabs layout and include ASR/TTS models in provider counts and scanning

Co-authored-by: multica-agent <github@multica.ai>

* fix(audio): decrypt and transcode wecombot voice to mp3, align openclaw weixin voice delivery

Co-authored-by: multica-agent <github@multica.ai>

* fix(wecombot): transcode outbound voice to silk and support voice_delivery mode

Co-authored-by: multica-agent <github@multica.ai>

* fix(discord,web): map audio attachments to voice for ASR, prefer base64 voice in webui

Co-authored-by: multica-agent <github@multica.ai>

* fix(telegram): deliver voice replies in streaming and non-streaming modes with quote origin

Co-authored-by: multica-agent <github@multica.ai>

* feat(dingtalk): route voice messages through pipeline ASR and send TTS replies as voice

Inbound DingTalk audio now arrives as a Voice component with its duration,
so the pipeline speech recognition switch decides how it is transcribed.
DingTalk's own recognition text is used only when the audio cannot be
downloaded.

Outbound Voice components are transcoded to ogg/opus, uploaded as voice
media and sent as native sampleAudio messages in both the omni and legacy
adapters. Audio over 60 seconds, or audio that cannot be transcoded or is
rejected as a voice message, is sent as a file instead. Voice parts no longer
leak into the reply text as "[Voice]".

Also estimate ogg durations from the granule position and ignore non-audio
MIME hints when extracting voice bytes, so ffmpeg can probe the input.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* fix(ci): include speech model counts in provider responses and fix lint/image build

- Copy every count returned by get_provider_model_counts into the provider
  payload instead of indexing asr_count/tts_count, and update the test fakes
  to return the speech model counts.
- Install libc6-dev in the runtime image so the pilk audio extra can compile.
- Apply ruff and prettier formatting required by the lint jobs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* test(e2e): expect the speech step in the pipeline setup guide

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

---------

Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 23:51:22 +08:00
RockChinQandmultica-agent 3a77306c3c feat(plugins): consolidate official plugins with independent releases (LANG-180) (#2797)
Co-authored-by: multica-agent <github@multica.ai>
2026-10-28 17:32:24 +08:00
RockChinQ 39645cdd84 fix(web): keep the dedicated-environment link on a custom Cloud banner (#2760)
* fix(web): keep the dedicated-environment link on a custom Cloud banner

The Cloud banner can carry per-language copy, but the custom-copy branch
rendered that text alone: everything else in the banner swaps the built-in
message for an override so the operator can say what is actually happening,
and doing so silently dropped the link to the dedicated environment -- the only
destination that turns a warning into an upgrade.

Render the dedicated link after the override when show_links is on, using new
cta_dedicated copy in every locale so the second half of the sentence reads as
a call to action rather than repeating the environment name.

* test(web): expect the new banner CTA copy in every locale
2026-10-23 11:43:15 +08:00
RockChinQandmultica-agent d45b0a3957 feat(cloud): add configurable Cloud-only WebUI notice banner
Cloud deployments need a way to tell readers what is happening to the
instance they are using (maintenance windows, service notices) without
shipping a release per notice.

Add a cloud.banner config block (switch, tone, dismissal, link targets and
per-language copy) and expose the resolved banner on the unauthenticated
/api/v1/system/info payload so the WebUI can render it before login. The
banner resolves to null on OSS deployments, so a self-hosted copy of
config.yaml never shows managed-service copy. Copy is plain text; only
absolute http(s) link targets are rendered.

The WebUI renders it once from the root layout, offsets the fixed app shell
and the wizard through --cloud-banner-height, and keeps a dismissal bound to
the notice it dismissed so new copy reappears.

Co-authored-by: multica-agent <github@multica.ai>
2026-10-21 16:26:43 +00:00
Chin Rockandmultica-agent 6bea0f15e1 fix(web): outline the plan upgrade control and call the grant 模型积分
Co-authored-by: multica-agent <github@multica.ai>
2026-10-21 10:32:21 +00:00
Chin Rockandmultica-agent 61c59687c2 fix(web): satisfy prettier and align the switcher layout spec after the upgrade control
Co-authored-by: multica-agent <github@multica.ai>
2026-10-21 08:06:42 +00:00
BiFangKNT 726ad5530f fix(web): omit referrer when loading message images
Set no-referrer on message thumbnails and previews to prevent
QQ image requests from returning 400 and triggering ORB.

Add browser coverage for image loading and request headers.
2026-10-21 12:03:00 +08:00
RockChinQandmultica-agent d13ae56ea5 fix: bot routing setup and busy-session response checks (#2728)
Apply group response rules before busy-session steering. Initialize usable private-message and group-mention routes for new bots, including Wizard-created pipelines, and preserve member-configured rules across saves and retries.

Fix empty pipeline configuration, refresh the processor sidebar after automatic creation, and show creation feedback. Align routing regressions and use Node 24 for the browser CI job.

Correct the task's erroneous agent attribution while preserving every code tree and the original human contribution.

Co-authored-by: multica-agent <github@multica.ai>
2026-10-20 21:22:53 +08:00
Chin Rockandmultica-agent c28ae761ac fix(web): format migration diagnostics and tolerate wrapped translations
Co-authored-by: multica-agent <github@multica.ai>
2026-10-20 09:09:41 +00:00
Chin Rock 40d40204cf fix(install-diagnostics): Sanitize plugin installation network diagnostics (LANG-132) 2026-10-20 07:53:56 +00:00
RockChinQandmultica-agent a10a6eb780 fix(ci): provision real-stack browser dependencies and disambiguate runtime assertion (#2724)
Co-authored-by: multica-agent <github@multica.ai>
2026-10-20 00:08:14 +08:00
RockChinQandmultica-agent d9e4e7d9df fix(pipeline): decouple Runner from extension permissions (LANG-54) (#2723)
* fix(pipeline): decouple runner from extension allowlist

Co-authored-by: multica-agent <github@multica.ai>

* fix(pipeline): complete runner diagnostics and real runtime coverage

Co-authored-by: multica-agent <github@multica.ai>

---------

Co-authored-by: multica-agent <github@multica.ai>
2026-10-19 23:07:11 +08:00
Zhang Bowen 9ac9958391 fix(web): hide revoked API keys in integration settings (#2714) 2026-10-18 17:26:39 +08:00
BiFangKNT 57077740bd chore(merge): sync master and preserve monitoring test coverage 2026-10-18 12:43:44 +08:00
BiFangKNT b9acf7d9b0 fix(ui): prevent closing selects from stealing focus
Preserve focus when another control becomes active during the close animation.
Add regression tests for filter persistence, Escape, and custom range dialog focus.
2026-10-18 10:21:48 +08:00
BiFangKNT f12490bc73 perf(monitoring): load execution details on demand
- Load overview first and fetch secondary sections when expanded
- Add a covering index and select conversation IDs before loading page payloads
- Preserve full-detail API compatibility and add pagination and lazy-loading tests
2026-10-17 21:10:55 +08:00
huanghuoguoguo 3a026cc7dc Merge pull request #2699 from langbot-app/test/quality-account-ui-oracles-20261017
test(web): replace account and privacy source checks with browser behavior
2026-10-17 20:35:41 +08:00
huanghuoguoguo c3792e7a21 test(web): merge master into account UI contracts 2026-10-17 20:18:13 +08:00
huanghuoguoguo 8dfdb4fc45 test: preserve session and quota contracts when merging master 2026-10-17 20:14:10 +08:00
huanghuoguoguo 142720660a Merge pull request #2701 from langbot-app/test/quality-combined-frontend-fixes-20261017
test(web): resolve clipboard fixture dependencies through Vite
2026-10-17 20:13:18 +08:00
huanghuoguoguo 9eba8cc4fd Merge pull request #2700 from langbot-app/test/quality-workspace-ui-oracles-20261017
test(web): replace Workspace source checks with runtime assertions
2026-10-17 20:13:11 +08:00
huanghuoguoguo fe80c05c6a Merge pull request #2697 from langbot-app/test/quality-web-debug-socket-race-20261017
test(web): verify cancelled native handshakes cannot alter replacement sessions
2026-10-17 20:12:57 +08:00
huanghuoguoguo a9957afc13 Merge pull request #2670 from langbot-app/test/workspace-quota-boundaries
test(web): verify workspace switching and quota failure boundaries
2026-10-17 20:12:51 +08:00
huanghuoguoguo d2c2a9dc65 Merge pull request #2668 from langbot-app/test/quality-frontend-behavior
test(web): replace source guards with browser behavior checks
2026-10-17 20:12:46 +08:00
huanghuoguoguo 8834a04045 Merge pull request #2696 from langbot-app/test/quality-web-marketplace-wizard-20261017
test(web): exercise marketplace installs and wizard behavior
2026-10-17 20:12:40 +08:00
huanghuoguoguo c49f7c7c07 Merge pull request #2686 from langbot-app/test/quality-web-resource-contracts-20261017
test(web): assert resource persistence and recovery behavior
2026-10-17 20:11:36 +08:00
huanghuoguoguo 8d4117aae0 test(web): resolve clipboard fixture dependencies through Vite 2026-10-17 16:54:46 +08:00
huanghuoguoguo ecd454ab82 test(web): wait for filter popups to restore focus 2026-10-17 16:44:48 +08:00
huanghuoguoguo c14bc0a45a test(web): replace Workspace source checks with runtime assertions 2026-10-17 16:38:21 +08:00
huanghuoguoguo 61758c8727 test(web): replace account source checks with browser assertions 2026-10-17 16:31:51 +08:00
huanghuoguoguo 837fa1d4fc test(web): verify session pagination and workspace quota contracts 2026-10-17 16:31:20 +08:00
huanghuoguoguo 0f230148e3 test(web): cover delayed native debug socket cancellation 2026-10-17 16:19:25 +08:00
huanghuoguoguo 30f9111e3f test(web): wait for filter popups to restore focus 2026-10-17 16:09:31 +08:00
huanghuoguoguo 8e447dae09 test(web): exercise marketplace installs and wizard contracts 2026-10-17 16:09:23 +08:00
huanghuoguoguo 753e3cf070 test(web): wait for filter popups to restore focus 2026-10-17 15:58:12 +08:00
huanghuoguoguo f7c4194b3d test(web): verify resource writes and recovery through behavior 2026-10-17 15:42:39 +08:00
huanghuoguoguo 20daecc9cf test(web): replace self-confirming progress checks and remove duplicates 2026-10-17 15:00:41 +08:00
huanghuoguoguo b5ea5f88c3 test(web): verify workspace switching and quota failure boundaries 2026-10-17 05:06:33 +00:00
huanghuoguoguo 342d843622 test(web): replace source guards with browser behavior checks 2026-10-17 04:08:51 +00:00