Skip to content

clip: load metadata params within OpenpilotPrefix#37634

Merged
adeebshihadeh merged 1 commit intocommaai:masterfrom
TheSecurityDev:fix-clip-params
Mar 10, 2026
Merged

clip: load metadata params within OpenpilotPrefix#37634
adeebshihadeh merged 1 commit intocommaai:masterfrom
TheSecurityDev:fix-clip-params

Conversation

@TheSecurityDev
Copy link
Copy Markdown
Contributor

@TheSecurityDev TheSecurityDev commented Mar 10, 2026

When running the clip tool, it pollutes the main params with all the params from the route (dongle ID, firehose stats, etc).

The fix is to move the metadata loading to within the OpenpilotPrefix context.

Copilot AI review requested due to automatic review settings March 10, 2026 19:18
@github-actions github-actions Bot added the tools label Mar 10, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adjusts the clip tool to avoid polluting the user’s/main Params namespace by loading route metadata only after entering an OpenpilotPrefix (isolated params directory) context.

Changes:

  • Move load_route_metadata(route) invocation inside the OpenpilotPrefix(...) context so Params writes are isolated/cleaned up.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@adeebshihadeh adeebshihadeh merged commit 40b61a8 into commaai:master Mar 10, 2026
12 of 14 checks passed
@TheSecurityDev TheSecurityDev deleted the fix-clip-params branch March 11, 2026 00:24
FrogAi pushed a commit to FrogAi/FrogPilot that referenced this pull request Apr 3, 2026
fix: move metadata loading inside OpenpilotPrefix context
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants