feat: harden company resume, external sessions, and Office UI i18n

Improve suspend/resume identity continuity and external broker session handling, add Office UI internationalization with rebuilt assets, and expand company org configs.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
小东
2026-07-16 09:20:40 +08:00
parent eb934cf2bd
commit cb6b8ed6e1
32 changed files with 2562 additions and 446 deletions
+17
View File
@@ -3952,6 +3952,23 @@ class OPCStore:
current = {}
if token_record is None:
current.pop(agent, None)
legacy_agent = str(
current.get("external_resume_agent_type")
or (
current.get("selected_execution_agent")
if current.get("external_resume_session_id")
else ""
)
or ""
).strip()
if legacy_agent == agent:
for key in (
"external_resume_session_id",
"external_resume_session_scope_id",
"external_resume_agent_type",
"resume_source_session",
):
current.pop(key, None)
else:
current[agent] = {
str(k): v for k, v in dict(token_record).items()