You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat(codex): auto-upgrade outdated CLI by checking npm registry in codex setup
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* docs: document codex setup auto-upgrade via npm registry check
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* fix(codex): surface registry-unavailability in setup output, report resolved version on fresh install
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* docs(codex-plugin): add network-access reference + SKILL.md hook for Codex sandbox guidance
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* feat(codex): add check-network step with Codex config.toml hint when offline
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* fix(codex): strip pre-release in compareVersions, relax version regex to accept semver pre-release
- export compareVersions and strip pre-release/build metadata before
numeric comparison so '3.7.3' vs '3.8.0-rc.1' correctly returns -1
- remove '$' anchor from fetchLatestPublishedVersion regex so pre-release
versions from the npm registry are accepted instead of silently falling
back to VERSION
- add 6 unit tests covering the fixed cases
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* fix(codex): auto-skip install when offline, repair warn renderer, hasWarnings JSON field, remove dead null guard
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* fix(codex): re-verify installed version after npm install-g to report accurate version in success message
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* fix: check actual keychain credentials via get --json, mark reset as DESTRUCTIVE_LOCAL
- check-credentials.js: replace tryKeychainDescribe (auth keychain describe
--json) with tryKeychainGet (auth keychain get --json, inspects present===true)
so a fresh-install machine with no stored token is no longer falsely reported
as authenticated
- capabilities.ts: reclassify 'reset' from ACTION_LOCAL to DESTRUCTIVE_LOCAL
since it permanently removes credentials, config, audit logs, quota data,
history, and caches
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* fix(codex-plugin): update keychain mocks from describe to get --json with present field
---------
Co-authored-by: chenliuyun <chenliuyun@onero.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
`codex setup` checks the npm registry for the latest CLI version and upgrades automatically if your global install is outdated — no manual `npm install -g` step needed.
81
+
80
82
**Or run directly (if CLI is already installed):**
Copy file name to clipboardExpand all lines: packages/codex-plugin/skills/switchbot/SKILL.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,14 @@ CLI doesn't know about it, refuse and explain — don't paper over it.
50
50
51
51
---
52
52
53
+
## Network requirements
54
+
55
+
`codex setup` requires outbound internet access (npm registry + GitHub). Codex workspaces are offline by default. If setup reports a network error or the `check-network` step warns:
56
+
57
+
→ Read `references/codex-network.md` for the exact `~/.codex/config.toml` fix.
58
+
59
+
---
60
+
53
61
## Required bootstrap (run this first, every session)
Read this file when `switchbot codex setup` fails with a network error, or when the user asks why setup is failing or how to enable network access in Codex.
4
+
5
+
## Why network access is required
6
+
7
+
`switchbot codex setup` performs three network operations:
8
+
9
+
1.**npm registry probe** — checks for the latest `@switchbot/openapi-cli` version
10
+
2.**npm install -g** — installs or upgrades the CLI if outdated
11
+
3.**codex plugin marketplace add** — clones the plugin from GitHub
12
+
13
+
All three require outbound internet access. Codex workspaces are offline by default.
14
+
15
+
## How to enable network access in Codex
16
+
17
+
Add the following to `~/.codex/config.toml` (create the file if it does not exist):
18
+
19
+
```toml
20
+
[sandbox_workspace_write]
21
+
network_access = true
22
+
```
23
+
24
+
Then **restart Codex** and re-run setup:
25
+
26
+
```
27
+
switchbot codex setup
28
+
```
29
+
30
+
## Notes
31
+
32
+
-`network_access = true` enables outbound internet for `workspace-write` sandbox mode only.
33
+
- It does **not** reduce approval prompts on its own. Set `approval_policy = "on-request"` separately if you want fewer prompts.
34
+
- If setup still fails after enabling network, run `switchbot codex doctor` to see which checks are failing.
0 commit comments