Skip to content

Refactor wrapper startup through deterministic main.py bootstrap - #25

Merged
MikuHello merged 2 commits into
mainfrom
codex/deterministic-bootstrap-main-py
Apr 2, 2026
Merged

Refactor wrapper startup through deterministic main.py bootstrap#25
MikuHello merged 2 commits into
mainfrom
codex/deterministic-bootstrap-main-py

Conversation

@MikuHello

Copy link
Copy Markdown
Owner

Summary

  • replace module-name startup with a deterministic skills/smart-web-fetch/main.py bootstrap
  • route bash, PowerShell, and CMD wrappers through that bootstrap and remove the old shell/PowerShell core entrypoints
  • add offline/smoke/CI coverage for core.py shadowing regressions and update docs/specs to reflect the new internal contract

Testing

  • spec/tests/offline-regression.sh
  • spec/tests/json-smoke.sh
  • spec/tests/json-smoke.ps1

@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: b77f96db3a

ℹ️ 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 skills/smart-web-fetch/core/cli.py Outdated


def _is_host_like_host(host: str) -> bool:
return host == "localhost" or "." in host or bool(_IPV4_RE.fullmatch(host)) or _is_bracketed_ipv6(host)

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 Accept single-label host:port inputs as URLs

The new URL normalizer only treats hosts as scheme-less when they are localhost, IPv4/IPv6, or contain a dot, so inputs like myservice:8080/path now get parsed as scheme myservice and fail with Unsupported URL scheme instead of being normalized to https://.... This is a regression from the previous behavior (which prefixed https:// for any non-HTTP(S) input) and breaks common intranet/local-DNS usage where hostnames are single-label.

Useful? React with 👍 / 👎.

@MikuHello
MikuHello merged commit 41aa881 into main Apr 2, 2026
2 checks passed
@MikuHello
MikuHello deleted the codex/deterministic-bootstrap-main-py branch April 2, 2026 15:38
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