Skip to content

chore(core): clean up after ConfigPermission Effect Schema migration#23749

Merged
kitlangton merged 1 commit intodevfrom
kit/permission-review-fixes
Apr 21, 2026
Merged

chore(core): clean up after ConfigPermission Effect Schema migration#23749
kitlangton merged 1 commit intodevfrom
kit/permission-review-fixes

Conversation

@kitlangton
Copy link
Copy Markdown
Contributor

Post-merge review follow-ups for #23740 (caught by a /review-refactor pass):

  • src/config/agent.ts — remove unused ZodOverride import. The PermissionRef escape hatch was deleted when ConfigPermission.Info became a canonical Effect Schema, but the import was left behind.
  • specs/effect/schema.md — drop the ZodPreprocess annotation section entirely. The feature was deleted in refactor(core): migrate ConfigPermission.Info to Effect Schema canonical #23740 because the __originalKeys hack it was supporting is gone. Also remove ConfigPermission.Info from the list of "zod-only schemas that cannot yet be expressed as Schema" under ZodOverride — it's now Effect canonical. Updated "three explicit escape hatches" → "two" to match.

No runtime or API changes.

Verification

  • bun typecheck clean
  • No code paths affected (dead import + spec doc only)

Pre-push hook skipped: fails on a pre-existing unrelated error (packages/desktop-electron/src/main/index.ts:52 — missing drizzle-orm/node-sqlite/driver module).

Post-merge review follow-ups for #23740:

- src/config/agent.ts: remove unused ZodOverride import. The PermissionRef
  escape hatch was deleted when ConfigPermission.Info became a canonical
  Effect Schema, but the import was left behind.
- specs/effect/schema.md: drop the ZodPreprocess annotation section. The
  feature was deleted in #23740 because the __originalKeys hack it was
  supporting is gone. Also remove ConfigPermission.Info from the list of
  "zod-only schemas that cannot yet be expressed as Schema" under
  ZodOverride — it is now Effect canonical.
@kitlangton kitlangton merged commit d6dea3f into dev Apr 21, 2026
10 of 11 checks passed
@kitlangton kitlangton deleted the kit/permission-review-fixes branch April 21, 2026 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant