Skip to content

[fork CI] refactor(startup): share the daemon boot - #1

Closed
Tinghecui wants to merge 1 commit into
mainfrom
refactor/shared-daemon-boot
Closed

Tinghecui wants to merge 1 commit into
mainfrom
refactor/shared-daemon-boot

Conversation

@Tinghecui

Copy link
Copy Markdown
Owner

Fork-internal draft so the Test workflow runs on this branch before the upstream PR. Not for merge.

🤖 Generated with Claude Code

…codeg-server

The desktop app's Tauri `setup` hook and `bin/codeg_server.rs` each carried
their own copy of the daemon's startup — the bundled skill installs, the
chat-dir GC, the delegation broker and its tool configs, the persisted
settings, the delegation listener, the chat channels, the LifecycleSubscriber,
the pet state mapper, the idle and office-watch sweeps, the automation and
work-task engines, config sync, the Codex model list refresher — kept in step
by "mirrors lib.rs setup" comments.

Move those steps into `src-tauri/src/boot.rs`, which both hosts call in the
same order. `boot` does not depend on Tauri: events go out through
`EventEmitter`, and the native pieces (browser tabs, computer use) are handed
in by the host. What only one host has stays where it was: the tray, windows,
deep links, close behavior, pet panel, embedded web server and binary-cache
startup sweep on the desktop; the listener, token, proxy-JWT, computer-use
opt-in and upload staging purge in the server.

No HTTP/WS API change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Tinghecui

Copy link
Copy Markdown
Owner Author

Fork CI done (run 42279754798, all green); upstream PR: spacering-net#1100

@Tinghecui Tinghecui closed this Nov 6, 2026
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