Merge 5389f26d516a3dedf301f0d55e25ff2c8fc84f7b into 598f1826d8b2bc969aace2c6459824737667218c

This commit is contained in:
John Schneider 2026-03-21 04:32:09 +01:00 committed by GitHub
commit 16634efe55
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 30 additions and 14 deletions

View File

@ -2759,11 +2759,14 @@
.exec-approval-card {
width: min(540px, 100%);
max-height: calc(100vh - 48px);
background: var(--card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 20px;
animation: scale-in 0.2s var(--ease-out);
display: flex;
flex-direction: column;
}
.exec-approval-header {
@ -2771,6 +2774,16 @@
align-items: center;
justify-content: space-between;
gap: 16px;
flex-shrink: 0;
}
.exec-approval-content {
overflow-y: auto;
overflow-x: hidden;
flex: 1 1 auto;
min-height: 0;
margin-right: -4px;
padding-right: 4px;
}
.exec-approval-title {
@ -2835,6 +2848,7 @@
display: flex;
flex-wrap: wrap;
gap: 8px;
flex-shrink: 0;
}
/* ===========================================

View File

@ -45,21 +45,23 @@ export function renderExecApprovalPrompt(state: AppViewState) {
: nothing
}
</div>
<div class="exec-approval-command mono">${request.command}</div>
<div class="exec-approval-meta">
${renderMetaRow("Host", request.host)}
${renderMetaRow("Agent", request.agentId)}
${renderMetaRow("Session", request.sessionKey)}
${renderMetaRow("CWD", request.cwd)}
${renderMetaRow("Resolved", request.resolvedPath)}
${renderMetaRow("Security", request.security)}
${renderMetaRow("Ask", request.ask)}
<div class="exec-approval-content">
<div class="exec-approval-command mono">${request.command}</div>
<div class="exec-approval-meta">
${renderMetaRow("Host", request.host)}
${renderMetaRow("Agent", request.agentId)}
${renderMetaRow("Session", request.sessionKey)}
${renderMetaRow("CWD", request.cwd)}
${renderMetaRow("Resolved", request.resolvedPath)}
${renderMetaRow("Security", request.security)}
${renderMetaRow("Ask", request.ask)}
</div>
${
state.execApprovalError
? html`<div class="exec-approval-error">${state.execApprovalError}</div>`
: nothing
}
</div>
${
state.execApprovalError
? html`<div class="exec-approval-error">${state.execApprovalError}</div>`
: nothing
}
<div class="exec-approval-actions">
<button
class="btn primary"