Skip to content

feat: log enabled experimental flags#357

Merged
kermanx merged 1 commit into
mainfrom
xtr/log-enabled-flags
Jun 3, 2026
Merged

feat: log enabled experimental flags#357
kermanx merged 1 commit into
mainfrom
xtr/log-enabled-flags

Conversation

@kermanx
Copy link
Copy Markdown
Collaborator

@kermanx kermanx commented Jun 3, 2026

Related Issue

No linked issue; this change addresses the need to make active experimental flags visible in startup diagnostics.

Problem

Experimental flags are resolved from environment variables at process startup, but the diagnostic log did not provide a single summary of which flags were enabled. That made feature-gated behavior harder to confirm from logs.

What changed

Added resolver helpers to expose the full flag snapshot and enabled flag ids, reused that snapshot for the existing RPC response, and logged one experimental flags enabled entry during core startup when at least one flag is active. The existing KIMI_CODE_EXPERIMENTAL_FLAG master switch remains the only all-flags environment variable.

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue, or explained the problem above.
  • I have added tests that prove my feature works.
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jun 3, 2026

🦋 Changeset detected

Latest commit: 14149ff

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@moonshot-ai/agent-core Minor
@moonshot-ai/kimi-code Minor
@moonshot-ai/migration-legacy Patch

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

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Jun 3, 2026

pnpm dlx https://pkg.pr.new/@moonshot-ai/kimi-code@14149ff
npx https://pkg.pr.new/@moonshot-ai/kimi-code@14149ff

commit: 14149ff

@kermanx kermanx merged commit 179aecf into main Jun 3, 2026
9 checks passed
@kermanx kermanx deleted the xtr/log-enabled-flags branch June 3, 2026 03:35
@github-actions github-actions Bot mentioned this pull request Jun 3, 2026
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