Skip to content

refactor: remove low-memory desktop mode - #1296

Merged
appergb merged 4 commits into
betafrom
appergb/high-end-ui-followups-20261030
Oct 30, 2026
Merged

appergb merged 4 commits into
betafrom
appergb/high-end-ui-followups-20261030

Conversation

@appergb

@appergb appergb commented Oct 30, 2026

Copy link
Copy Markdown
Collaborator

What changed

Remove the low-memory desktop mode as a product capability. The regular desktop window/capsule path is now the only supported path.

  • Remove the low-memory preference from client and Core preference models, sync registry, UI and translations.
  • Remove low-memory runtime status/restart messaging and low-memory IPC exposure.
  • Stop bundling/building the native capsule sidecar from the macOS/Windows Tauri configs.
  • Keep normal warm-capture behavior independent of the removed mode.
  • Tighten streaming transcript pill clipping so its rounded edge cannot be sharpened by child masks.
  • Delete obsolete low-memory/native-capsule design docs and contracts.

Validation

  • cargo check --locked --manifest-path src-tauri/Cargo.toml passed on macOS with a temporary empty frontend dist used only for Tauri config expansion; the temporary directory was removed afterward.
  • git diff --check passed.
  • Required GitHub CI and Codex review must pass before merge.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T15:12:57.026755Z 4a3826f Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@appergb appergb added branch-retained Keep source branch while the pull request remains open needs-review Needs review labels Oct 30, 2026
@appergb

appergb commented Oct 30, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d876d66894

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 34 to +36
"format": "prettier --write \"src/**/*.{ts,tsx,css}\" \"android/frontend/**/*.{ts,tsx}\" \"scripts/**/*.{js,mjs,sh}\" \"*.{ts,json,html,sh}\" \"assets/remote-input/*.{js,css,html}\"",
"format:check": "prettier --check \"src/**/*.{ts,tsx,css}\" \"android/frontend/**/*.{ts,tsx}\" \"scripts/**/*.{js,mjs,sh}\" \"*.{ts,json,html,sh}\" \"assets/remote-input/*.{js,css,html}\"",
"test:ui-motion": "playwright test",
"build:native-capsule": "node scripts/build-native-capsule.mjs",
"build:native-capsule:dev": "node scripts/build-native-capsule.mjs --debug"
"test:ui-motion": "playwright test"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Remove stale native-capsule CI references

This removes both build:native-capsule scripts, but .github/workflows/ci.yml still runs npm run build:native-capsule:dev in the Tauri and MSRV jobs, so those jobs now fail immediately with an npm “missing script” error. The frontend test suite also still discovers scripts/native-capsule-build.test.mjs, which expects bundle.externalBin to contain the removed helper and will fail against these configs. Update or remove those workflow and contract-test references as part of removing the capsule.

Useful? React with 👍 / 👎.

@appergb

appergb commented Oct 30, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6cde548d7e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

);
}

// Autostart state is owned by the operating system; it is intentionally not mirrored in prefs.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Remove the obsolete native-capsule health contract test

After deleting LowMemoryRuntimeNotice, scripts/native-capsule-health.test.mjs still parses RecordingInputSection.tsx, looks up that function, and asserts that its useEffect exists. The frontend test runner automatically discovers every *.test.mjs under scripts, so npm test now fails at assert.ok(effect, 'execute the production health subscription'); delete or update this test as part of removing the feature.

Useful? React with 👍 / 👎.

Comment on lines 835 to 838
desktop_resources::configure(
&mut context,
core_backend.get_preferences().low_memory_background_enabled,
false,
);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Stop building and bundling the disabled native capsule

The runtime is now unconditionally configured with false, so desktop_resources::active() can never enable the native capsule, but both macOS and Windows Tauri configs still run build:native-capsule/build:native-capsule:dev and include binaries/openless-native-capsule as an external binary. Every desktop build therefore continues to require and package an unused sidecar (and can fail on machines lacking its Rust target/toolchain), contrary to this refactor's removal of the low-memory/native-capsule path; remove those hooks and externalBin entries.

Useful? React with 👍 / 👎.

@appergb

appergb commented Oct 30, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 89fa0fe8f3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 126 to 129
object.remove("lowLatencyDictationEnabled");
object.remove("echoCancellationEnabled");
object.remove("audioDsp");
object.remove("lowMemoryBackgroundEnabled");
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Keep obsolete low-memory preference out of cloud sync

For upgraded installations that still have lowMemoryBackgroundEnabled in their persisted preferences, preferences_json_preserving_unknown retains this now-unknown key, but removing it from strip_local_only_preferences allows sync_snapshot to export it as an unregistered preference document. This republishes a device-local setting that the refactor removed; keep stripping or explicitly migrate the legacy key before syncing.

Useful? React with 👍 / 👎.

@appergb

appergb commented Oct 30, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Something went wrong. Try again later by commenting “@codex review”.

An unknown error occurred
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@appergb

appergb commented Oct 30, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: 4a3826f79d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@appergb
appergb merged commit 85b243a into beta Oct 30, 2026
16 checks passed
@appergb
appergb deleted the appergb/high-end-ui-followups-20261030 branch October 30, 2026 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

branch-retained Keep source branch while the pull request remains open needs-review Needs review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant