Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore(ci): align inherited boundary and formatting gates

Steven Enamakeld1017565d36b
diff --git a/app/src/components/assistant-ui/lib/useDisclosure.ts b/app/src/components/assistant-ui/lib/useDisclosure.ts
index f0b9b659d2..bb77ee8aba 100644
--- a/app/src/components/assistant-ui/lib/useDisclosure.ts
+++ b/app/src/components/assistant-ui/lib/useDisclosure.ts
@@ -55,7 +55,8 @@ export function useDisclosure(
const [local, setLocal] = useState<{ key: string | undefined; choice: boolean | undefined }>(
() => ({ key, choice: key === undefined ? undefined : choices.get(key) })
);
- const choice = local.key === key ? local.choice : key === undefined ? undefined : choices.get(key);
+ const choice =
+ local.key === key ? local.choice : key === undefined ? undefined : choices.get(key);
const setOpen = useCallback(
(open: boolean) => {
if (key !== undefined) remember(key, open);
diff --git a/app/src/features/conversations/aui/SubagentTaskCard.tsx b/app/src/features/conversations/aui/SubagentTaskCard.tsx
index 929b76b45f..c151e4e714 100644
--- a/app/src/features/conversations/aui/SubagentTaskCard.tsx
+++ b/app/src/features/conversations/aui/SubagentTaskCard.tsx
@@ -234,10 +234,7 @@ export const SubagentTaskCard: ToolCallMessagePartComponent = ({
// that choice: a question the user cannot see is a question they cannot
// answer, and the row is normally already mounted (and collapsed) by the
// time the pause arrives, so a one-time `defaultOpen` would be too late.
- const [open, setOpen] = useDisclosure(
- toolCallId ? `subagent:${toolCallId}` : undefined,
- false
- );
+ const [open, setOpen] = useDisclosure(toolCallId ? `subagent:${toolCallId}` : undefined, false);
const disclosureOpen = open || awaiting;
const cancellable =
diff --git a/app/src/features/conversations/components/AssistantUiToolCall.tsx b/app/src/features/conversations/components/AssistantUiToolCall.tsx
index b3cde3a77f..5713470d2f 100644
--- a/app/src/features/conversations/components/AssistantUiToolCall.tsx
+++ b/app/src/features/conversations/components/AssistantUiToolCall.tsx
@@ -1,11 +1,11 @@
import type { ToolCallMessagePart, ToolCallMessagePartProps } from '@assistant-ui/react';
import type { FC, ReactNode } from 'react';
-import { useDisclosure } from '../../../components/assistant-ui/lib/useDisclosure';
import {
ToolCall,
type ToolCallOutcome,
} from '../../../components/assistant-ui/elements/tool-call';
+import { useDisclosure } from '../../../components/assistant-ui/lib/useDisclosure';
import { useT } from '../../../lib/i18n/I18nContext';
import { readOpenHumanToolArtifact } from '../../../providers/assistantUiMessages';
import type {
diff --git a/app/src/store/chatRuntimeSlice.ts b/app/src/store/chatRuntimeSlice.ts
index b0dc2a6335..e292a61208 100644
--- a/app/src/store/chatRuntimeSlice.ts
+++ b/app/src/store/chatRuntimeSlice.ts
@@ -1863,7 +1863,7 @@ const chatRuntimeSlice = createSlice({
? entries.findIndex(e => e.id === pending.spawnEntryId)
: -1;
const spawnSeq = spawnIdx >= 0 ? entries[spawnIdx].seq : undefined;
- seq = spawnSeq ?? (state.toolTimelineSeqByThread[threadId] ?? 0);
+ seq = spawnSeq ?? state.toolTimelineSeqByThread[threadId] ?? 0;
if (spawnSeq === undefined) state.toolTimelineSeqByThread[threadId] = seq + 1;
const row = decorateEntry({
id: rowId,
@@ -1998,7 +1998,13 @@ const chatRuntimeSlice = createSlice({
for (const entry of subagentRows(state, threadId, e => e.id === rowId)) {
if (!entry.subagent || entry.subagent.toolCalls.some(c => c.callId === callId)) continue;
entry.subagent.toolCalls.push({
- callId, toolName, status: 'running', iteration, args, displayName, detail,
+ callId,
+ toolName,
+ status: 'running',
+ iteration,
+ args,
+ displayName,
+ detail,
});
}
},
@@ -2089,9 +2095,9 @@ const chatRuntimeSlice = createSlice({
if (!entry.subagent) continue;
const transcript = (entry.subagent.transcript ??= []);
const last = transcript[transcript.length - 1];
- // Extend the trailing item only when it's the same kind AND the same
- // iteration — otherwise two same-kind chunks from different turns (with
- // no tool call between them) would fuse into one transcript entry.
+ // Extend the trailing item only when it's the same kind AND the same
+ // iteration — otherwise two same-kind chunks from different turns (with
+ // no tool call between them) would fuse into one transcript entry.
if (
last &&
(last.kind === 'text' || last.kind === 'thinking') &&
diff --git a/scripts/ci/agent-runtime-boundary-baseline.json b/scripts/ci/agent-runtime-boundary-baseline.json
index f6dd82e4ed..bed6a007b3 100644
--- a/scripts/ci/agent-runtime-boundary-baseline.json
+++ b/scripts/ci/agent-runtime-boundary-baseline.json
@@ -1150,8 +1150,8 @@
{
"rule": "openhuman-upstream-reexport",
"path": "crates/openhuman-core/src/tools/mod.rs",
- "line": 70,
- "text": "pub use tinytools::{PermissionLevel, ToolCategory, ToolResult, ToolScope, ToolSpec};",
+ "line": 73,
+ "text": "pub use tinytools::{PermissionLevel, Tool, ToolCategory, ToolResult, ToolScope, ToolSpec};",
"occurrence": 1
},
{