Skip to content

feat(desktop): localize Plan Mode - #2688

Merged
likun666661 merged 1 commit into
apache:mainfrom
me2seeks:feat/2687-plan-mode-locale
Aug 16, 2026
Merged

likun666661 merged 1 commit into
apache:mainfrom
me2seeks:feat/2687-plan-mode-locale

Conversation

@me2seeks

Copy link
Copy Markdown
Contributor

Summary

  • move Plan Mode chrome into a typed, domain-owned Chinese and English catalog
  • follow the active Renderer locale for proposal status, execution state, actions, accessibility labels, and abandon confirmation
  • leave model-authored plan content and Plan Runtime contracts unchanged

Fixes #2687
Part of #2672

Tests

  • npm --workspace @maka/desktop test
  • npm --workspace @maka/desktop run typecheck
  • npm run lint
  • npm run format:check
中文对照

摘要

  • 将 Plan Mode 界面文案迁移到类型安全、领域自有的中英文 catalog
  • 计划状态、执行状态、操作按钮、无障碍标签和放弃确认框跟随 Renderer 当前语言
  • 保持模型生成的计划内容和 Plan Runtime 契约不变

测试

  • npm --workspace @maka/desktop test
  • npm --workspace @maka/desktop run typecheck
  • npm run lint
  • npm run format:check

@xxhZs xxhZs left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the typed zh/en catalog, useUiLocale wiring for proposal/execution chrome and the abandon confirmation, and the surrounding Plan action paths. Model-authored proposal content and the Plan Runtime/IPC contracts remain untouched. The head merges cleanly with current main; CI is green, git diff --check passes, and Biome reports no issues in the changed files. No blocking findings.

@likun666661
likun666661 merged commit f6632ce into apache:main Aug 16, 2026
10 checks passed
1625567290 added a commit to 1625567290/maka-agent that referenced this pull request Aug 16, 2026
apache#2688 imported Plan Mode locale types from the removed @maka/core root
barrel. Other locale catalogs already use @maka/core/ui-locale and
@maka/core/plan. The root import breaks desktop main typecheck and
cascades through every PR that merges with main.

Generated-by: Grok
1625567290 added a commit to 1625567290/maka-agent that referenced this pull request Aug 16, 2026
apache#2688 imported Plan Mode locale types from the removed @maka/core root
barrel. Other locale catalogs already use @maka/core/ui-locale and
@maka/core/plan. The root import breaks desktop main typecheck and
cascades through every PR that merges with main.

Generated-by: Grok
Astro-Han pushed a commit that referenced this pull request Aug 16, 2026
#2688 imported Plan Mode locale types from the removed @maka/core root
barrel. Other locale catalogs already use @maka/core/ui-locale and
@maka/core/plan. The root import breaks desktop main typecheck and
cascades through every PR that merges with main.

Generated-by: Grok
Astro-Han pushed a commit that referenced this pull request Aug 16, 2026
…3118)

* fix(runtime): keep newly released Grok models on xAI OAuth discovery

xai-oauth model fetch used filter: fallback-models, so ids absent from
the bundled snapshot were dropped. Trust the server listing like xai
API-key connections. fallbackModels remain the bootstrap fallback.

Fixes #3116

Generated-by: Grok

* test(runtime): drop the snapshot-pinned xai-oauth discovery case

After removing the fallback-models filter, xai-oauth uses the same
unfiltered protocol discovery path already covered by the provider
contract matrix. Do not pin grok-4.6 as a snapshot fact.

Generated-by: Grok

* fix(desktop): import Plan Mode copy types from core subpaths

#2688 imported Plan Mode locale types from the removed @maka/core root
barrel. Other locale catalogs already use @maka/core/ui-locale and
@maka/core/plan. The root import breaks desktop main typecheck and
cascades through every PR that merges with main.

Generated-by: Grok
Astro-Han pushed a commit that referenced this pull request Aug 16, 2026
)

* refactor(storage): remove the leftover llm-connections.json store

Delete FileConnectionStore, its relay-profile helper, and the package
export. Desktop e2e and the Computer Use real-model script now seed
connection-catalog.json through the Runtime Policy writer. Existing
user llm-connections.json files stay inert on disk.

Fixes #3107

Generated-by: Grok

* docs: say leftover llm-connections.json files are not imported

Throw if the fixture cannot resolve the zai-live connection id,
and drop the unused extra root resolve in the catalog test.

Generated-by: Grok

* 修复连接目录测试数据迁移

* fix(desktop): import Plan Mode copy types from core subpaths

#2688 imported Plan Mode locale types from the removed @maka/core root
barrel. Other locale catalogs already use @maka/core/ui-locale and
@maka/core/plan. The root import breaks desktop main typecheck and
cascades through every PR that merges with main.

Generated-by: Grok
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Localize the Plan Mode surface

3 participants