Skip to content

Quick pass at burning down KCL-P&C drift#12314

Merged
pierremtb merged 7 commits into
mainfrom
pierremtb/adhoc/codex-first-pass-kcl-pc-drift
Jul 4, 2026
Merged

Quick pass at burning down KCL-P&C drift#12314
pierremtb merged 7 commits into
mainfrom
pierremtb/adhoc/codex-first-pass-kcl-pc-drift

Conversation

@pierremtb

@pierremtb pierremtb commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Implemented a pass that removes the low-risk omittedStdLibArgs and threads them through P&C submit/edit paths.

Burned down:

  • Extrude.direction will be done in Extrude accepts edges as targets #12218
  • Sweep/Loft/Revolve/Fillet tolerance
  • Translate.xyz
  • Rotate.axis / Rotate.angle
  • Boolean Subtract/Union/Intersect tolerance
  • Join Surfaces.tolerance

Left intentionally omitted because they’re structural selection-derived args, not simple KCL fields:

  • Shell.solids
  • Hole.solid
  • Fillet/Chamfer.solid and raw edges
  • Delete Face.body / faceIndices

Also updated edit-flow extraction so existing KCL with these args preserves them, and added targeted edit-flow coverage for Extrude.direction and Sweep.tolerance.

@vercel

vercel Bot commented Jul 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
modeling-app Ready Ready Preview, Comment Jul 4, 2026 3:42pm

Request Review

Comment thread src/lib/commandBarConfigs/modelingCommandConfig.ts Outdated
@pierremtb pierremtb changed the title Codex: Pass at burning down KCL-P&C drift Quick pass at burning down KCL-P&C drift Jul 3, 2026
@pierremtb pierremtb marked this pull request as ready for review July 3, 2026 18:16
@pierremtb pierremtb requested a review from a team as a code owner July 3, 2026 18:16
@pierremtb pierremtb enabled auto-merge (squash) July 3, 2026 18:16
@pierremtb pierremtb marked this pull request as draft July 3, 2026 18:32
auto-merge was automatically disabled July 3, 2026 18:32

Pull request was converted to draft

@pierremtb

Copy link
Copy Markdown
Contributor Author

Need to fix Rotate.angle before marking ready

@pierremtb pierremtb marked this pull request as ready for review July 3, 2026 19:31
Comment thread src/lib/operations.ts
Comment on lines +265 to +282
function extractRequiredStringArgument(
code: string,
operation: StdLibCallOp,
argName: string
): string | { error: string } {
const arg = operation.labeledArgs?.[argName]
if (!arg?.sourceRange) {
return { error: `Missing or invalid ${argName} argument` }
}

const value = code.slice(...arg.sourceRange.map((r) => toUtf16(r, code)))
if (!value) {
return { error: `Couldn't retrieve ${argName} argument` }
}

return value
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made this to make Patterns and Rotate.axis consistent!

@max-mrgrsk max-mrgrsk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requesting changes.

Comment thread src/lib/operations.ts Outdated
@max-mrgrsk

Copy link
Copy Markdown
Contributor
Screenshot 2026-07-03 at 22 17 38 this one aint working

@pierremtb

Copy link
Copy Markdown
Contributor Author

Screenshot 2026-07-03 at 22 17 38 this one aint working

As discussed on Slack this isn't an issue with this PR, let's bring all Pattern3D.axis and Rotate.axis to support this in a stacked PR at #12337

@pierremtb pierremtb merged commit 5413fe2 into main Jul 4, 2026
69 of 70 checks passed
@pierremtb pierremtb deleted the pierremtb/adhoc/codex-first-pass-kcl-pc-drift branch July 4, 2026 15:52
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.

2 participants