style(approvals): prettier on the two lines #610 wrapped (#610 merge-time fix)

format:check failed on src/web/server.ts and src/web/public/approvals-ui.js;
both assignments fit on one line at printWidth 120.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Codeman maintainer
2026-10-13 18:29:09 +02:00
parent 0feb5658ca
commit b15033259a
2 changed files with 2 additions and 4 deletions
+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
@@ -2776,8 +2776,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) {