Skip to content

refactor(remote-connect): move runtime presentation policies#938

Merged
limityan merged 1 commit into
GCWing:mainfrom
limityan:yanzhn/service-agent-runtime-owner
May 29, 2026
Merged

refactor(remote-connect): move runtime presentation policies#938
limityan merged 1 commit into
GCWing:mainfrom
limityan:yanzhn/service-agent-runtime-owner

Conversation

@limityan
Copy link
Copy Markdown
Collaborator

Summary

  • Move remote chat history presentation assembly into bitfun-services-integrations, including assistant message assembly, thinking/text/tool item ordering, tool preview generation, in-progress assistant history skipping, and tool input exposure policy.
  • Move remote session/model selection normalization into the remote-connect owner crate while keeping core responsible for loading AIConfig and injecting the model-reference resolver.
  • Keep bitfun-core as the concrete runtime adapter for persistence reads, image compression, enhanced remote input cleanup, session restore, terminal pre-warm, scheduler submit, workspace-root lookup, and remote SSH/runtime execution.
  • Update decomposition docs and boundary checks so the new owner boundary is explicit and guarded.

Behavior and Boundary Notes

This PR is intended as structural runtime-owner migration only. It does not change remote-connect wire shapes, remote execution flow, scheduler behavior, terminal lifecycle, remote SSH behavior, workspace persistence, model config loading, or product surface commands.

Core now projects persisted DialogTurnData into owner DTOs and delegates presentation assembly to services-integrations. The owner crate receives focused contract coverage for message shape/order, in-progress assistant skip behavior, and model selection alias/config-reference policy.

Validation

  • cargo test -p bitfun-services-integrations --features remote-connect --test remote_connect_contracts -- --nocapture
  • cargo test -p bitfun-core core_service_agent_runtime_owner -- --nocapture
  • node scripts\check-core-boundaries.mjs
  • cargo check -p bitfun-core --features product-full
  • cargo check --workspace
  • git diff --check

cargo check --workspace still reports the existing parse_clipboard_path_segments dead-code warning in src/apps/desktop/src/api/clipboard_file_api.rs, unrelated to this PR.

Move remote chat history presentation assembly and remote model selection policy into services-integrations. Keep core as the persistence/config adapter so remote execution, scheduler, terminal, SSH, and workspace behavior remain unchanged.
@limityan limityan merged commit 822714c into GCWing:main May 29, 2026
4 checks passed
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