Skip to content

Commit ee8fef2

Browse files
committed
fix(e2e): repair tools-test deny onClick syntax and format
Missing closing brace on the deny-button handler broke prettier parse.
1 parent 948d42f commit ee8fef2

2 files changed

Lines changed: 11 additions & 7 deletions

File tree

packages/ai-client/src/chat-client.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,11 @@ function mergeQueuedMessages(items: Array<InternalQueuedMessage>): {
200200
* interrupt payloads do not.
201201
*/
202202
function readApprovalApproved(payload: unknown): boolean | undefined {
203-
if (payload === null || typeof payload !== 'object' || Array.isArray(payload)) {
203+
if (
204+
payload === null ||
205+
typeof payload !== 'object' ||
206+
Array.isArray(payload)
207+
) {
204208
return undefined
205209
}
206210
if (!('approved' in payload) || typeof payload.approved !== 'boolean') {
@@ -793,8 +797,8 @@ export class ChatClient<
793797
// `activeResumeRunId`, so match that too.
794798
const isActiveStreamRunTerminal = Boolean(
795799
this.isLoading &&
796-
runId &&
797-
(runId === this.activeResumeRunId || runId === this.currentRunId),
800+
runId &&
801+
(runId === this.activeResumeRunId || runId === this.currentRunId),
798802
)
799803
const isCurrentStreamTerminal =
800804
this.isLoading && chunk.type === 'RUN_FINISHED' && !runId
@@ -804,9 +808,9 @@ export class ChatClient<
804808
// keeps showing a stale prompt and blocks follow-up turns.
805809
const isActiveInterruptSubmissionTerminal = Boolean(
806810
this.activeInterruptSubmission &&
807-
this.isLoading &&
808-
chunk.type === 'RUN_FINISHED' &&
809-
chunk.outcome?.type !== 'interrupt',
811+
this.isLoading &&
812+
chunk.type === 'RUN_FINISHED' &&
813+
chunk.outcome?.type !== 'interrupt',
810814
)
811815
if (
812816
isRunlessSessionError ||

testing/e2e/src/routes/tools-test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ function ToolsTestPage() {
551551
toolCallId: tc.id,
552552
})
553553
interrupt.resolveInterrupt(false)
554-
}
554+
}}
555555
style={{
556556
padding: '5px 15px',
557557
backgroundColor: '#dc3545',

0 commit comments

Comments
 (0)