graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs
Python
Match no-local-tools to the shell catalog and expose Conversations
justrach7754e121ce3a
diff --git a/apps/native/components/primitives/SidebarNav.tsx b/apps/native/components/primitives/SidebarNav.tsxindex 816ddbeb..a2611313 100644--- a/apps/native/components/primitives/SidebarNav.tsx+++ b/apps/native/components/primitives/SidebarNav.tsx@@ -361,6 +361,17 @@ export default function SidebarNav({onClick={() => selectNav(item.key)}/>))}+ {onSeeAll && (+ <RailButton+ icon={<IconMagnifyingGlass size={18} />}+ label="Conversations"+ active={currentNav === "conversations"}+ onClick={() => {+ selectNav("conversations");+ onSeeAll();+ }}+ />+ )}</GlideGroup><div inert={collapsed} aria-hidden={collapsed} className="mt-3 min-h-0 flex-1 overflow-y-auto">diff --git a/apps/native/components/site/HarnessChrome.tsx b/apps/native/components/site/HarnessChrome.tsxindex ae3c231c..6571339c 100644--- a/apps/native/components/site/HarnessChrome.tsx+++ b/apps/native/components/site/HarnessChrome.tsx@@ -61,7 +61,7 @@ export default function HarnessChrome({navigationToggle, sidebarVisible = false,<ActionMenu label="Chat actions" text="More" className="shrink-0">{!sidebarVisible && <button type="button" onClick={newChat}>New chat <span className="ml-auto text-ink-3">⌘T</span></button>}<button type="button" aria-pressed={split} onClick={toggleSplit}>{split ? "Close splits" : "Split view"} <span className="ml-auto text-ink-3">⌘\</span></button>- <button type="button" aria-pressed={conversationsOpen} onClick={openConversations}>All conversations</button>+ <button type="button" aria-label="Conversations" aria-pressed={conversationsOpen} onClick={openConversations}>All conversations</button><button type="button" onClick={onFolder}>Open a folder…</button></ActionMenu>{!sidebarVisible && <AppSettings />}diff --git a/scripts/test-no-local-tools.py b/scripts/test-no-local-tools.pyindex 0ebd596f..a5e72af0 100644--- a/scripts/test-no-local-tools.py+++ b/scripts/test-no-local-tools.py@@ -35,15 +35,22 @@ from typing import Anyfrom codex_ws_mock import CodexMock, RecordedRequest+# The advertised names --no-local-tools must remove. The shell tool is a+# single catalog entry since the run/output/kill unification; `bash` and+# friends are dispatch aliases that are never advertised but are still+# refused at runtime, which the calls below exercise.GATED_TOOLS = (- "bash",- "bash_output",- "bash_kill",+ "shell","read_file","edit_file","write_file","codedb",)+GATED_ALIASES = (+ "bash",+ "bash_output",+ "bash_kill",+)# The marker is split by an empty shell quote, so the whole string only ever# exists because /bin/sh actually ran the command - it is not a substring of the# command text the model sent, which is echoed back in requests and events.@@ -311,7 +318,7 @@ def assert_gated(requests: list[RecordedRequest], events: list[dict]) -> None:# Layer 1, root: nothing local advertised; webfetch, orchestration and the# MCP-sourced sandbox tool all survive.wire = tool_names(root[0])- leaked = [n for n in wire if n in GATED_TOOLS]+ leaked = [n for n in wire if n in GATED_TOOLS or n in GATED_ALIASES]if leaked:raise AssertionError(f"root catalog still advertises {leaked!r}")names = catalog_names(root[0])diff --git a/scripts/test-spill-artifact.py b/scripts/test-spill-artifact.pyindex f9d52bcc..3eb854ab 100755--- a/scripts/test-spill-artifact.py+++ b/scripts/test-spill-artifact.py@@ -41,12 +41,12 @@ from mock_model import ScriptedModel # noqa: E402SESSION = "spill-e2e"NEEDLE = "GRAFF-SPILL-NEEDLE-409"-# The cap is window-proportional (Provider.perOutputCap = context/2 bytes), and-# GRAFF_CONTEXT declares the window for an unknown/local model. 40k tokens ->-# a 20_000-byte cap, with auto-compaction (80% = 32k tokens) far out of reach of-# the ~7.5k tokens this history weighs.+# The cap is Provider.perOutputCap: min(window/2, an absolute 40 KiB ceiling).+# lmstudio is a catalog model with a 200k window, so the ceiling is what binds+# and the seeded output has to clear it to be over-cap at all. Compaction (80%+# of the window) stays far out of reach of this history.CONTEXT_TOKENS = 40_000-OUTPUT_BYTES = 30_000+OUTPUT_BYTES = 60_000# "…the FULL <n> bytes are at <path>; read or grep…" — src/tool_spill.zigMARKER_RE = re.compile(r"the FULL (\d+) bytes are at (\S+?); read or grep")@@ -130,7 +130,8 @@ def main() -> None:# A padded output whose needle sits well past the cap, so nothing but the# artifact can still produce it.- output = ("build step ok\n" * 3000)[:OUTPUT_BYTES - len(NEEDLE) - 1] + NEEDLE + "\n"+ pad = "build step ok\n"+ output = (pad * (OUTPUT_BYTES // len(pad) + 2))[: OUTPUT_BYTES - len(NEEDLE) - 1] + NEEDLE + "\n"assert len(output) == OUTPUT_BYTES, len(output)failures: list[str] = []