Run affected persistence/network, permission lifecycle and production-image upgrade/replacement acceptance before the existing required Core smoke status. Share persistence acceptance with Daily Endurance and fail the required status for missing, unsuccessful or cancelled P0 results.
Add authorization and content boundary tests and record a bounded mutation evaluation: 102 selected variants, with 87 killed and 15 explained survivors, stable across two executions. Product implementation and application dependencies are unchanged.
Cloud Core's main thread sat at 100% of one core while the 8-core node
was ~77% idle. A py-spy profile of production showed four avoidable
hotspots, each of which scaled with the number of Workspaces:
- Model list serializers scanned the whole runtime LLM cache (~125k
models across ~3.4k Workspaces) once per model. Resolve the
Workspace's runtime models once via the per-scope key index.
- Cloud model catalog sync reconciled every Workspace on every directory
change. Directory-triggered passes now skip Workspaces whose desired
state (catalog + owner key) is unchanged; a full reconcile still runs
every sync interval to repair drift.
- Inline media TTL cleanup selected agent_run_event candidates globally,
so every Workspace walked 100 other Workspaces' old events per hour,
one transaction each. Candidates now come from the Workspace's own
expired runs and only rows that can contain an inline image are
visited.
- An unset storage.media_cache key logged two warnings per Workspace on
every maintenance pass.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
* fix(auth): stop logging Cloud users out on transient server failures
On Cloud, valid sessions were bounced to /login: authentication that
failed for infrastructure reasons (BlockingWorkCapacityError from the
2-thread DNS pool, socket.gaierror, database blips) answered 401, and the
WebUI tears down the session on any 401. Production logs showed 47
capacity and 2 DNS failures answered as 401 in one hour.
- Transient authentication failures now answer 503
'authentication_unavailable' with Retry-After; credential failures keep 401.
- The resolver pool scales with the main pool (64 workers -> 16 DNS
workers / 256 queued, minimum 4 / 64) instead of a fixed 2 / 32.
- WebUI retries a request once on that 503, and on a 401 confirms with
/user/check-token before clearing the session.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
* feat(plugins): upload button on the plugin detail page
Debug, local and GitHub installs get the same 'Upload to marketplace'
action on their detail page as on the installed-plugin card.
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>
* feat(space-share): share prompts, skills, remote MCPs and local plugins to LangBot Space (LANG-439)
- Prompt library dialog on Pipeline (messaging) and Agent (agent) prompt
fields: search, preview, replace/append, favorites tied to the bound
LangBot Account; share the current prompt for review
- Share to Space for Skills (file list + credential scan) and remote MCP
servers (credentials become ${VAR} placeholders before anything leaves
Core; stdio stays private)
- Community MCP installs with required inputs are created disabled and the
detail page lists the placeholders to fill (unfilled_inputs)
- Locally / GitHub-installed plugins share their exact installed .lbpkg via
the existing space-upload flow
- docs (zh/en/ja) and dev-docs contract note
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
* fix(web): use a star for prompt favorites (LANG-439)
The heart is the anonymous extension like; favorites need a LangBot Account.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
* fix(i18n): call messaging prompts "Messaging" in English (LANG-439)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
* feat(web): marketplace type tiles matching Space, shadcn prompt list (LANG-439)
- the in-app marketplace shows All / Plugins / MCP / Skills as tiles with a
description and count, plugin components and Runner usage as ToggleGroup
chips; the Filters popover is gone (same layout as space.langbot.app)
- prompt library rows use the shadcn Item component
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
* style(market): soften extension type tiles; type-tinted selected state
Drop the dark outline/ring on the selected tile. Idle tiles use a muted
fill; the selected tile gets a soft type-tinted fill with an inset ring
and a solid icon badge.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
* style(market): use a fixed blue for the selected All tile
The theme primary is near-black in Core, which brought back the dark
selected border on the All tile.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
* feat(web): switch market type on press and keep results while loading
Type tiles switch on mouse press (keyboard/touch still use click).
Filter changes keep the current cards dimmed until the new page arrives,
and stale responses are ignored.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
* feat(web): apply library prompts in the WebUI language; one-language share note
- Prompt library applies the version matching the WebUI language (exact
-> same family -> en_US -> original), with a language switcher.
- Share dialogs say one language is enough; other languages are
translated automatically after upload.
- extractI18nObject falls back across Chinese scripts and to any
available language instead of rendering an empty label.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
* feat(web): one-click LangBot Account binding from share and library
- Share dialogs: the 'bind a LangBot Account' state now has a button that
starts the bind flow and returns to the same page; the creator-profile
state gets a button too, with clearer copy.
- Prompt library: when no account is bound, the preview shows a
'bind to favorite' button instead of only a disabled tab tooltip.
- Shared useSpaceBind hook.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
* feat(web): friendly empty state for templates; contributors no longer tag
- Empty template list: short, playful 'on their way, be the first to
share' state (Space /templates, Core prompt library).
- Share dialogs drop the tags field; Space assigns tags during review.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
* feat(space-share): update an existing item; clearer identifier field
- Share dialogs list the bound account's published items of the same type
(prompts: same kind) and offer 'Update existing': pick an identifier,
metadata is prefilled, a changelog is asked for and the submission
becomes the next version. Sharing something with the same identifier
preselects update mode.
- The identifier field now looks like a normal input with the fixed
'@creator/' prefix and a format hint.
- GET /api/v1/space-share/items proxies the Space owner item list.
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>
MCP tools return list[ContentElement] Pydantic models. The CALL_TOOL
handler passed them through unserialized for both Runner (`result`) and
plugin (`tool_response`) calls, so the Execution API's strict JsonValue
output check failed with "Output does not match call_tool". Serialize
with _serialize_plugin_api_result, as the platform-tool branch already did.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
* 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>
The pipeline debug chat runs on a per-Workspace in-memory RuntimeBot with the
reserved uuid websocket-proxy-bot. It never has a bots row, yet three plugin
guards looked data["bot_uuid"] up in that table, so SEND_MESSAGE (and
call_platform_api send_message), GET_BOT_INFO and authorize_action all
rejected it with "Bot ... not found" / "Bot is not available in this
Workspace". GET_BOT_INFO additionally called bot_service.get_runtime_bot_info,
which queries the table again.
- utils/constants: WEBSOCKET_PROXY_BOT_UUID; replace the 9 hardcoded literals.
- PlatformManager.has_websocket_proxy_bot(workspace_uuid): presence check
that never creates a proxy.
- authorize_action and the handler's new _bot_available() accept the proxy
uuid only while this Workspace has a live proxy; persisted bots still go
through the bots table, and capability checks are unchanged.
- GET_BOT_INFO builds the proxy's info from the live runtime (no adapter
config, no webhook). bot_service / the bot.runtime.get operation are
untouched, so HTTP/MCP/Workspace API behavior does not change.
Closes#2935
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
'Migrate all' with plugin installation could install the target plugin
and still block every pipeline with runner_unavailable: install_plugin
returns once the package is installed, while the plugin worker registers
its Runner a moment later, and the migration checked the registry right
away. Re-running the migration then succeeded.
After installing (or activating a pending installation) the migration now
waits up to 60s, the same window the WebUI Runner installer uses, for the
target Runner to register at the planned version, and only then verifies
and migrates. Declared permissions are still auto-confirmed as before.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
* fix(bots): stop routing to deleted Pipelines and Agents (LANG-357)
Deleting a Pipeline or Agent left Bot event bindings pointing at it, so
every matching message was queued to a missing Pipeline and silently
dropped ('Query dropped before its Pipeline ran' in telemetry).
- Refuse to delete a Pipeline or Agent that a Bot event binding or plugin
processor subscription still uses (409 resource_in_use, lists the bots).
- At route time, a Pipeline target that no longer exists fails the route
with processor_not_found instead of queueing a query that is dropped.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
* test(api): wire BotService into the application resources fixture
pipeline.delete now checks Bot bindings before deleting.
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>
- Document workspace.language.get with exposure 'all' and risk 'read' so
plugins can declare it and Agents/Pipelines can select it as a workspace
tool. It requires workspace.view, takes no arguments and reads the
Workspace only from the trusted context. workspace.language.update stays
member/API-key only.
- Declare the operation in LocalAgent.
- Document it in zh/en/ja plugin Workspace API references and dev-docs.
- Cover grants, denial, invalid input, the unset default and the processor
tool path.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
* feat(api): open marketplace search and install to plugins and Agents
- Add plugin.marketplace.search, a read operation that proxies the configured
Space plugin search, honours plugin.enable_marketplace and returns only the
fields needed to install.
- Expose plugin.install.marketplace to plugins and processors as a dangerous
operation. Plugins and Agents cannot auto-confirm permissions or replace an
installed plugin; new installations stay disabled until a member confirms.
GitHub and local installs keep their current exposure.
- Expose task.get so callers can follow installation progress; non-member
principals receive the public projection, now including
pending_permission_confirmation.
- Declare the new operations in LocalAgent, document them in zh/en/ja and
localize the new errors.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
* test(api): include marketplace search and task status in processor read sweep
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>
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>
* 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>
Fixes#2814
After a session reset, keep the reset generation marker out of provider-facing external conversation state so Runner plugins start a new remote conversation.
- Add migration 0042 to enable incremental vacuum with verified backup and restore
- Enable incremental vacuum before creating tables in new SQLite databases
- Adapt reclamation batches to elapsed time and lock contention
- Cover migration recovery, WAL mode, and concurrent writes with regression tests
- Deduplicate message and history resource URLs using stable catalog references
- Persist renewed URLs with concurrent refresh protection
- Refresh OneBot images via get_msg intervals or NapCat rkey TTL
- Migrate historical payloads and cover SQLite and PostgreSQL behavior
- Refresh images in inputs, outputs, deliveries, and conversation history
- Reuse OneBot refresh logic without rewriting persisted records
- Cover existing image URLs across agent and pipeline execution views
* fix(space): keep dedicated-environment Space login working
A dedicated environment runs the OSS runtime with system.edition=cloud. The
process-level 'LangBot Models' compatibility provider is part of the OSS
single-Workspace contract, but write_space_model_providers() skipped creating it
for every non-community edition. The Space OAuth callback then unconditionally
rewarded the provider row by api key, so provider_service raised
WorkspaceNotFoundError('Provider not found') and the whole callback returned 404
-- after the Account and its Workspace had already been created. Every retry
failed the same way, making dedicated-environment login impossible on 4.11.x.
Gate the compatibility provider on the deployment shape instead of the edition
(genuine multi-tenant Cloud runs in CLOUD_RUNTIME persistence and never reaches
this path), and treat a missing provider row as a model-routing warning rather
than an authentication failure so a data anomaly can never block login.
* fix(agent): bind the first model to the 4.11 runner config
create_llm_model() still wrote the auto-selected model into the pre-4.11
ai['local-agent'] container. On a 4.11 Workspace that key does not exist, so the
assignment raised KeyError and POST /provider/models/llm returned 500 the first
time a user added a model -- and the default pipeline kept primary='', so every
Agent run failed with 'No authorized model for local-agent'.
Delegate to RunnerDefaultConfigService, which resolves the selected runner and
writes the schema-defined model selector into ai.runner_config[<runner id>].
Also default the NOT NULL description column on pipeline and bot creation:
omitting an optional description returned a 500 from the constraint instead of
creating the resource.
* fix(agent): keep seeding the model for pipelines that never migrated
set_pipeline_llm_model_if_empty() returns False when a pipeline has no 4.11
runner selected -- that is exactly the un-migrated shape, which still carries
ai.local-agent. Seed that container, but only when it exists, so the legacy path
keeps its old behaviour without the KeyError.
* fix(platform): enforce credential-session TTL on a timer, not on traffic
The four adapter registration flows (Lark one-click app, DingTalk device flow,
WeCom bot, QQ Official bind) each park a short-lived secret in an in-memory
session dict until the caller persists it: app_secret, client_secret, or the bot
secret.
Each store had a TTL and a cleanup function, but the cleanup only ran at the top
of a route handler. An abandoned flow therefore kept its secret in memory until
some *other* request happened to arrive, which for a quiet instance can be far
past the validity window (15 min for Lark, 10 for DingTalk, 5 for WeCom/QQ).
Changes:
- Move the sweep to module level as _sweep_credential_sessions(stores) so it is
directly testable, and have it scrub app_secret/client_secret/secret as it
evicts, so an evicted session dict no longer retains a readable credential.
- Add a background sweeper task started from the router group's initialize(),
running every 60s, so the TTL holds regardless of traffic.
- Keep the per-route cleanups: they make eviction immediate under load.
Tests: 9 new cases (expiry, fresh sessions survive, secret scrubbing, per-store
TTL, cancelling a pending handshake task, not cancelling a finished one,
malformed session without created_at, multiple evictions, empty stores).
Co-authored-by: multica-agent <github@multica.ai>
* fix(platform): tolerate a task manager without create_task when starting the sweeper
The sweeper is started from the adapter router group's initialize(). Some
embeddings of the app provide a task manager that only exposes create_user_task,
so an unconditional create_task broke those harnesses. Fall back to the per-route
cleanups when create_task is unavailable.
Co-authored-by: multica-agent <github@multica.ai>
---------
Co-authored-by: multica-agent <github@multica.ai>
* LANG-145: bind WebAuthn to server config and make passkeys OSS-only
Two problems in the passkey implementation:
1. The RP ID and expected origin came from the request: a JSON 'origin' field,
then the Origin/Referer headers, then the request URL. WebAuthn's
anti-phishing guarantee depends on values the server chose; trusting the
request lets a sibling host under the same registrable domain obtain a valid
assertion for a victim's credential. Resolution now follows the same rule the
OAuth and invitation links already use: api.webui_url, then
api.webhook_prefix, then the configured port on loopback.
2. Passkeys are now an OSS-only feature. Cloud deployments authenticate through
their own account service, so every passkey route (register options/verify,
auth options/verify, list, rename, delete) refuses with
edition_unsupported, and /account-info advertises neither passkey_login_enabled
nor passkey_supported. Both cloud flavours are covered: system.edition ==
'cloud' and deployment.mode == 'cloud'.
Tests:
- New unit suite for the edition matrix and for origin resolution (including
that client-supplied origin/Origin/Referer are ignored).
- The three 'reverse proxy scenario' tests asserted the old, unsafe behaviour
(server trusting the request). They now assert the server-config contract.
- test_smoke cloud capabilities expectation updated to passkey_* = false.
Co-authored-by: multica-agent <github@multica.ai>
* style(api): drop the typing import left unused by the WebAuthn origin change
Co-authored-by: multica-agent <github@multica.ai>
---------
Co-authored-by: multica-agent <github@multica.ai>
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>
- Add covering indexes through migration 0040
- Preserve PostgreSQL FORCE RLS state when marking historical summaries
- Add query-plan and migration regression tests to CI
Count and paginate lightweight records, then load payloads only for the
selected page to avoid materializing large historical messages.
Add regression coverage for oversized history, ingress deduplication,
stable pagination, and PostgreSQL tenant isolation.
- Maintain counts and display snapshots in source transactions with replay-safe deduplication.
- Read session lists exclusively from summaries and remove execution-only filters.
- Automatically initialize historical summaries in bounded, resumable batches during OSS startup.
- Add behavioral contracts covering accounting, retention, query cost and PostgreSQL concurrency.
Verified with the required session_summary suite and real container upgrade startup.
- Apply media retention to inline images while preserving text and URLs
- Persist per-workspace cursors atomically with payload updates
- Bound candidate scans and verify event ownership before loading payloads
- Add cleanup indexes and regression tests, and fix Windows path assertions
- 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