Repository navigation
Conversation
🦋 Changeset detectedLatest commit: 3b61607 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1369e1c32d
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| } catch { | ||
| return []; |
There was a problem hiding this comment.
Add the required CLI changeset
Returning [] makes the kimi web --host 0.0.0.0 startup fix user-visible, but this commit adds no .changeset entry. Add a short English patch changeset for @moonshot-ai/kimi-code so the fix is represented in release notes, as required for CLI behavior changes.
AGENTS.md reference: AGENTS.md:L169-L170
Useful? React with 👍 / 👎.
|
Added the patch changeset for @moonshot-ai/kimi-code\ (.changeset/web-network-interfaces-eacces.md) as requested. |
Closes #5529
Summary
On Android/Termux and other restricted environments where
os.networkInterfaces()fails withERR_SYSTEM_ERROR(uv_interface_addresses/EACCES), runningkimi web --host 0.0.0.0crashed during startup while formatting access URLs.Changes
apps/kimi-code/src/cli/sub/web/networks.ts: WrapnetworkInterfaces()intry/catchinsidelistNetworkAddresses()and return[]on failure soaccessUrlLines()still prints theLocal:URL and the web server starts normally.apps/kimi-code/test/cli/web/networks.test.ts: Add a unit test verifyinglistNetworkAddresses()returns[]whenos.networkInterfaces()throwsERR_SYSTEM_ERROR(EACCES).Testing
vitest run test/cli/web/networks.test.ts: 1 passed, 0 failed.