mirror of
https://github.com/stablyai/orca.git
synced 2026-11-03 18:47:40 +00:00
style: format the 22 files main merged unformatted (fix red main) (#30918)
* fix(ssh): move the managed tunnel's is-current check beside its record (fix red main) orcad-managed-tunnel-manager.ts reached 301 counted lines when #30891 landed on #30888, failing every PR's static analysis. The six-field check that the recorded tunnel already matches the connection and deployment moves, unchanged, into orcad-managed-tunnel-active.ts, which owns that record. * style: format the 22 files main merged unformatted (fix red main) CI's format check fails every PR on these files. Formatting pushes NativeChatStructuredSession.tsx one line past its 400-line limit, so its one-use question list is inlined where questionBody is already non-null (identical behavior: agentSessionPromptQuestions is pure and ran on every render).
This commit is contained in:
@@ -206,7 +206,6 @@ export function NativeChatStructuredSession(
|
||||
composerReady: composerShown && install.slot.kind !== 'install'
|
||||
})
|
||||
const questionBody = prompt?.body.kind === 'question' ? prompt.body : null
|
||||
const questions = questionBody ? agentSessionPromptQuestions(questionBody) : []
|
||||
const structuredTransport = useNativeChatStructuredComposerTransport({
|
||||
props,
|
||||
controller,
|
||||
@@ -378,7 +377,7 @@ export function NativeChatStructuredSession(
|
||||
{prompt && questionBody ? (
|
||||
<NativeChatStructuredQuestionCard
|
||||
key={`${prompt.itemId}:${prompt.revision}`}
|
||||
questions={questions}
|
||||
questions={agentSessionPromptQuestions(questionBody)}
|
||||
onAnswer={(response) => void promptResponse.respond(prompt, response)}
|
||||
isSubmitting={promptResponse.holds(prompt)}
|
||||
onCancel={cancelPrompt}
|
||||
|
||||
Reference in New Issue
Block a user