Skip to content

Fix desktop app running stale code and deps after updates#448

Merged
yondonfu merged 1 commit intomainfrom
fix/desktop-stale-code-and-deps
Feb 11, 2026
Merged

Fix desktop app running stale code and deps after updates#448
yondonfu merged 1 commit intomainfrom
fix/desktop-stale-code-and-deps

Conversation

@yondonfu
Copy link
Copy Markdown
Contributor

@yondonfu yondonfu commented Feb 11, 2026

Summary

  • Add PYTHONPATH pointing at projectRoot/src so Python always reads current source code before site-packages, fixing stale editable-install imports.
  • Remove --no-sync from uv run spawn args so uv's default inexact sync installs missing packages from uv.lock on each launch. Inexact sync does not remove extra packages, so plugins remain safe.

Test plan

  • Build the desktop app and confirm the server starts normally
  • Verify that after updating source code, the desktop app runs the new code
  • Install a plugin, restart the app, and confirm the plugin persists (not removed by sync)

🤖 Generated with Claude Code

Remove --no-sync from uv run args and add PYTHONPATH to ensure the
desktop app always uses current source code and up-to-date dependencies.

- PYTHONPATH=projectRoot/src ensures Python reads project source before
  site-packages, fixing stale editable-install imports.
- Dropping --no-sync lets uv's default inexact sync install missing
  packages from uv.lock on each launch. Inexact sync does not remove
  extra packages, so plugins remain safe.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Signed-off-by: Yondon Fu <[email protected]>
@yondonfu yondonfu merged commit 7c69440 into main Feb 11, 2026
6 checks passed
@yondonfu yondonfu deleted the fix/desktop-stale-code-and-deps branch February 11, 2026 22:52
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.

1 participant