style: apply prettier to approvals-ui and server

This commit is contained in:
DDT committed 2026-10-13 23:59:10 +08:00
1 parent f5e59283f9
commit 43568775e6
2 files changed
+2 -4

No files matched your search

+1 -2
View File
@@ -264,8 +264,7 @@ Object.assign(CodemanApp.prototype, {
} else if (item.answerInTerminal) {
// Supervised-hook CLIs (DeepSeek Harness): keystrokes are unverifiable, so
// Approve/Deny would hit the answer route and fail. Offer only Open session.
actions =
`<span class="approval-terminal-hint" data-i18n-skip>Answer in the terminal</span>`;
actions = `<span class="approval-terminal-hint" data-i18n-skip>Answer in the terminal</span>`;
} else if (item.options && item.options.length) {
actions = item.options
.map(
+1 -2
View File
@@ -2747,8 +2747,7 @@ export class WebServer extends EventEmitter {
// strips their action buttons — buttons without an id can never answer.
approvalId: approvalsEnabled && typeof data.approvalId === 'string' ? data.approvalId : undefined,
urgency: template.urgency,
actions:
approvalsEnabled && typeof data.approvalId === 'string' ? template.actions : undefined,
actions: approvalsEnabled && typeof data.approvalId === 'string' ? template.actions : undefined,
});
for (const sub of subscriptions) {