Skip to content

feat(desktop): streamline workflow-oriented layout and settings - #796

Merged
yyjeqhc merged 24 commits into
mainfrom
feat/desktop-workflow-layout
Sep 30, 2026
Merged

yyjeqhc merged 24 commits into
mainfrom
feat/desktop-workflow-layout

Conversation

@swjnxyf

@swjnxyf swjnxyf commented Sep 30, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

This PR started as a workflow-oriented Desktop UI cleanup and now also incorporates the native/Desktop regressions found while dogfooding that new surface.

Workflow-oriented Desktop UX

  • reorganize Settings into six task-oriented sections: General, Files & permissions, Network, Runtime, Troubleshooting, and About & updates
  • keep visited settings views mounted so unsaved drafts and in-flight state survive category switches
  • simplify Home into a workspace/runtime overview with Server/Runner/connection state, ChatGPT handoff, projects, activity, and direct recovery actions
  • make Connections, Runtime Console, Extensions, instruction paths, Skill paths, MCP Providers, Coding Agents, native Plugins, diagnostics, and service controls easier to find
  • improve typography, controls, long-path containment, narrow-window behavior, light/dark appearance, and localization, including independent Traditional Chinese copy

Runtime and recovery fixes found during dogfood

  • rebuild the Desktop Vite UI explicitly for production packaging so a fresh native binary cannot accidentally embed stale apps/desktop/dist
  • distinguish Runtime file presence from successful startup/build-info verification; Windows no longer presents path.is_file() as proof that a binary is executable
  • preserve bounded startup diagnostics such as launch phase, executable, exit code, and safe reason code
  • preflight enabled Desktop-managed and operator-owned MCP/ACP provider executables before starting Runtime processes
  • keep provider-specific failures visible on Home and route Desktop-managed failures to the matching provider editor
  • terminalize failed Runtime starts after cleanup instead of leaving stale Starting / Connecting readiness
  • keep user-owned provider configuration intact; removal tombstones remain authoritative across regenerated Runner config

Windows legacy unified-installer upgrade

Fixes #798.

The outer Windows bootstrap now separates candidate-package trust from installed Environment ownership:

  • verified candidate CLI classifies the installed package before delegating any Environment command
  • an Environment-capable installation continues to use its installed owner CLI and existing Environment transaction
  • official pre-Environment v0.4.3 packages and unconfigured Environment-format packages use a separate candidate-owned package transaction
  • the package transaction binds owner, runtime target, verified release candidate, four program backups, prepared receipt, replacement verification, finish, and rollback without inventing an Environment
  • an incomplete/unsupported legacy installation, foreign WebCodex services, changed owner/target, changing old bytes, tampered backups, or mismatched replacement fail closed
  • both official v0.4.3 Windows x64 and Windows ARM64 identities are accepted; other pre-Environment identities remain rejected

Desktop-managed Server defaults

Review also found that Desktop local Servers still inherited the generic direct MCP host profile while the normal deployed Server uses Host Code Mode.

For a Desktop-managed Server with no explicit override, this PR now defaults to:

  • WEBCODEX_MCP_HOST_PROFILE=host_code_mode
  • WEBCODEX_MCP_HOST_BUDGET_SECS=55

Explicit operator values remain authoritative. In particular, an explicit direct profile without a budget keeps the direct profile's built-in budget rather than being rewritten.

WEBCODEX_MCP_COMPACT_SCHEMAS=true remains aligned with the deployed Server. Loopback token-file import stays Desktop-local by design; OAuth/public-URL settings and tool-request tracing remain deployment/operator concerns rather than Desktop defaults.

Review

Reviewed against current origin/main at afcae932.

The review covered:

  • task-oriented Desktop navigation, preserved drafts, responsive layouts, localization, connection/profile actions, Runtime Console, Extensions and service controls
  • Runtime binary probing and bounded error projection
  • provider preflight, Runner reconciliation, failed-operation cleanup, and terminal readiness
  • production Desktop frontend build freshness
  • Windows unified-bootstrap authority selection and the complete legacy package preflight / prepare / receipt / verify / finish / rollback path
  • Desktop local Server defaults versus the currently deployed Server's effective MCP Host configuration

Review follow-up commits:

  • f57978f5 — align Desktop local MCP Host defaults with Host Code Mode while preserving explicit overrides
  • d53783fe — cover the official v0.4.3 Windows ARM64 legacy-upgrade identity in addition to x64

No other merge-blocking review findings remain from this pass.

Validation

Final review validation on OE:

  • Desktop frontend: 15 files / 252 tests passed
  • Desktop TypeScript typecheck: passed
  • Desktop production Vite build: passed
  • Desktop UI smoke: 289 checks / 155 screenshots, fixture backend, passed
  • Desktop Rust: 261 passed, 4 ignored
  • Desktop Rust cargo check --all-targets: passed
  • webcodex-environment library: 108 passed
  • focused Windows legacy-upgrade tests on OE: 6 passed
  • unified-installer/Desktop-build Python tests on OE: 9 run, 8 passed, 1 native-Windows-only skipped
  • MSI native Windows v0.4.3 legacy transaction fixture: 1 passed
  • MSI Desktop Server-default regressions: 3 passed
  • MSI unified Windows installer Python 3.12 suite: 7 passed
  • root cargo fmt --all -- --check: passed
  • git diff --check: passed

Native interactive acceptance is separate from these automated checks. The mini dogfood instance was used to reproduce the stale-UI and obsolete-provider startup failures that motivated the corresponding fixes.

@yyjeqhc
yyjeqhc merged commit c283d70 into main Sep 30, 2026
@yyjeqhc
yyjeqhc deleted the feat/desktop-workflow-layout branch September 30, 2026 12:38
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.

[Bug] Windows unified installer cannot upgrade official v0.4.3 because bootstrap delegates Environment commands to the legacy CLI

2 participants