Skip to content

feat: streamline remote metro open flow#240

Merged
thymikee merged 2 commits into
mainfrom
codex/remote-config-open-flow
Mar 20, 2026
Merged

feat: streamline remote metro open flow#240
thymikee merged 2 commits into
mainfrom
codex/remote-config-open-flow

Conversation

@thymikee
Copy link
Copy Markdown
Member

Summary

Replace the public runtime workflow with an open-centric remote-config flow.
Keep Metro preparation as the debug path, remove the public runtime command surface, and update replay/session handling plus docs/skills to match.
Add focused smoke coverage for open --remote-config and preserve remote env/config defaults through CLI finalization.

Validation

pnpm format
pnpm typecheck
pnpm test:unit
pnpm test:smoke

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 20, 2026

PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://callstackincubator.github.io/agent-device/pr-preview/pr-240/

Built to branch gh-pages at 2026-03-20 12:52 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

Copy link
Copy Markdown

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

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: 1693e6dd52

ℹ️ 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 thread src/utils/remote-config.ts Outdated
Comment on lines +147 to +148
if (options.command !== 'open' || !options.cliFlags.remoteConfig) {
return {};
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 Load --remote-config defaults for non-open commands

The guard here returns early unless the command is open, so a profile passed via --remote-config is never loaded for metro prepare or other commands that should reuse remote host/session defaults. As a result, metro prepare --remote-config <path> still fails the --public-base-url requirement and follow-up commands run without the profile bindings, which breaks the documented remote workflow and the runtime-removal guidance.

Useful? React with 👍 / 👎.

Comment thread src/utils/cli-options.ts Outdated
Comment on lines +38 to +39
if (rawParsed.command === 'open' && rawParsed.flags.remoteConfig) {
mergeDefinedFlags(finalized.flags, pickRemoteOpenDefaults(defaultFlags));
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 Preserve CLI precedence over remote profile defaults

This post-finalization merge reapplies remote-profile defaults after parsing, which overwrites user-specified CLI values for keys in REMOTE_OPEN_FLAG_KEYS (for example --session, --platform, or --daemon-base-url). That reverses the normal precedence order (CLI should win over defaults) and prevents one-off overrides when launching with --remote-config.

Useful? React with 👍 / 👎.

@thymikee thymikee merged commit aebc59b into main Mar 20, 2026
7 checks passed
@thymikee thymikee deleted the codex/remote-config-open-flow branch March 20, 2026 13:07
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