-
Notifications
You must be signed in to change notification settings - Fork 1
Update Claude agent runtime surfaces #287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -301,10 +301,11 @@ async function summarizeChatSessionForRemote( | |
| reasoningEffort: session.reasoningEffort ?? null, | ||
| codexFastMode: session.codexFastMode === true, | ||
| executionMode: session.executionMode ?? null, | ||
| ...(session.permissionMode ? { permissionMode: session.permissionMode } : {}), | ||
| ...(session.interactionMode !== undefined ? { interactionMode: session.interactionMode } : {}), | ||
| ...(session.claudePermissionMode ? { claudePermissionMode: session.claudePermissionMode } : {}), | ||
| ...(session.codexApprovalPolicy ? { codexApprovalPolicy: session.codexApprovalPolicy } : {}), | ||
| ...(session.permissionMode ? { permissionMode: session.permissionMode } : {}), | ||
| ...(session.interactionMode !== undefined ? { interactionMode: session.interactionMode } : {}), | ||
| ...(session.claudePermissionMode ? { claudePermissionMode: session.claudePermissionMode } : {}), | ||
| ...(session.claudeOutputStyle ? { claudeOutputStyle: session.claudeOutputStyle } : {}), | ||
| ...(session.codexApprovalPolicy ? { codexApprovalPolicy: session.codexApprovalPolicy } : {}), | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Mixed tab and space indentation in session summaryLow Severity Lines 304–308 use hard-tab indentation ( Reviewed by Cursor Bugbot for commit 03e46d5. Configure here. |
||
| ...(session.codexSandbox ? { codexSandbox: session.codexSandbox } : {}), | ||
| ...(session.codexConfigSource ? { codexConfigSource: session.codexConfigSource } : {}), | ||
| ...(session.opencodePermissionMode ? { opencodePermissionMode: session.opencodePermissionMode } : {}), | ||
|
|
@@ -621,6 +622,7 @@ function parseAgentChatCreateArgs(value: Record<string, unknown>): AgentChatCrea | |
| if ("permissionMode" in value) parsed.permissionMode = value.permissionMode == null ? undefined : asTrimmedString(value.permissionMode) as AgentChatCreateArgs["permissionMode"]; | ||
| if ("interactionMode" in value) parsed.interactionMode = value.interactionMode == null ? null : asTrimmedString(value.interactionMode) as AgentChatCreateArgs["interactionMode"]; | ||
| if ("claudePermissionMode" in value) parsed.claudePermissionMode = value.claudePermissionMode == null ? undefined : asTrimmedString(value.claudePermissionMode) as AgentChatCreateArgs["claudePermissionMode"]; | ||
| if ("claudeOutputStyle" in value) parsed.claudeOutputStyle = value.claudeOutputStyle == null ? null : asTrimmedString(value.claudeOutputStyle) ?? null; | ||
| if ("codexApprovalPolicy" in value) parsed.codexApprovalPolicy = value.codexApprovalPolicy == null ? undefined : asTrimmedString(value.codexApprovalPolicy) as AgentChatCreateArgs["codexApprovalPolicy"]; | ||
| if ("codexSandbox" in value) parsed.codexSandbox = value.codexSandbox == null ? undefined : asTrimmedString(value.codexSandbox) as AgentChatCreateArgs["codexSandbox"]; | ||
| if ("codexConfigSource" in value) parsed.codexConfigSource = value.codexConfigSource == null ? undefined : asTrimmedString(value.codexConfigSource) as AgentChatCreateArgs["codexConfigSource"]; | ||
|
|
||


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Preserve explicit
nullforclaudeOutputStylein fallback summaries.At Line 307, the truthy check omits
claudeOutputStylewhen it is explicitlynull, which can drift from the nullable contract shape used by create args and shared types.Suggested fix
As per coding guidelines, "Keep IPC contracts, preload types, shared types, and renderer usage in sync whenever an interface changes in TypeScript".
📝 Committable suggestion
🤖 Prompt for AI Agents