Fix: [for cherry-picking] Preserved macOS elevation metadata, prevented - #136
Closed
qodo-code-review[bot] wants to merge 5 commits into
Closed
Conversation
- Ignore separator-only remapped layouts - Validate layout envelope versions
- Keep launch group type private - Preserve inherited Mac terminal hosts
5 tasks
Contributor
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- The new Windows transfer dialog error handling now rethrows most errors; consider ensuring callers explicitly handle these exceptions or preserve some logging so failures don’t silently bubble up without context.
- For the macOS transfer dialog, errors are now swallowed and
nullis returned; consider retaining at least minimal logging so unexpected script failures can still be diagnosed in production. - The "same-as-previous" terminal token is introduced as a magic string; it may be worth centralizing this as a constant or constrained type to avoid typos and to make the intent clearer at the call sites.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The new Windows transfer dialog error handling now rethrows most errors; consider ensuring callers explicitly handle these exceptions or preserve some logging so failures don’t silently bubble up without context.
- For the macOS transfer dialog, errors are now swallowed and `null` is returned; consider retaining at least minimal logging so unexpected script failures can still be diagnosed in production.
- The "same-as-previous" terminal token is introduced as a magic string; it may be worth centralizing this as a constant or constrained type to avoid typos and to make the intent clearer at the call sites.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixed Findings
Automated fix from agentic review of #133
Powered by Qodo
Summary by cubic
Preserves macOS elevation metadata when editing workspaces and hardens import logic to avoid bad layouts and unsupported versions.
runAsAdminwhen saving a workspace and stop force-disabling it on launches.versionhigher thanSCHEMA_VERSIONand skip remapped layouts that contain only separators.Written for commit f0d00d2. Summary will update on new commits.