diff --git a/src/components/ui/alert-dialog.tsx b/src/components/ui/alert-dialog.tsx
index 3125da8..d66de52 100644
--- a/src/components/ui/alert-dialog.tsx
+++ b/src/components/ui/alert-dialog.tsx
@@ -28,7 +28,7 @@ function AlertDialogOverlay({
@@ -383,7 +382,6 @@ export function HuntClient({
-
+
)
}
diff --git a/src/routes/-hunt/use-hunt-run.ts b/src/routes/-hunt/use-hunt-run.ts
index d9281fa..233fc1c 100644
--- a/src/routes/-hunt/use-hunt-run.ts
+++ b/src/routes/-hunt/use-hunt-run.ts
@@ -22,10 +22,8 @@ import {
type SimplifyStats,
} from "@/lib/recent-results"
import {
- createThroughputBus,
type SimplifyProgressSnapshot,
type SimplifyWarning,
- type ThroughputBus,
} from "@/lib/simplify/stub"
import {
OpenRouterInsufficientCreditsError,
@@ -38,7 +36,6 @@ import {
runTimeoutMsForEngine,
type RunController,
} from "@/lib/simplify/run-deadline"
-import type { SimplifyPipelineStepId } from "@/lib/simplify/types"
const KEY_CREDITS_NOTICE =
"OpenRouter reported insufficient credits. Add credits to your account or use a different API key."
@@ -84,16 +81,9 @@ export type SimplifyReplayFrame = {
snapshot: SimplifyProgressSnapshot
}
-export type SimplifyReplayChunk = {
- timeMs: number
- stepId: SimplifyPipelineStepId
- chars: number
-}
-
export type SimplifyReplay = {
engineId: SimplifyEngineId
frames: SimplifyReplayFrame[]
- chunks: SimplifyReplayChunk[]
durationMs: number
} | null
@@ -143,9 +133,7 @@ export function useHuntRun({
>(null)
const [replay, setReplay] = useState(null)
const replayFramesRef = useRef([])
- const replayChunksRef = useRef([])
const replayStartRef = useRef(0)
- const [throughputBus] = useState(() => createThroughputBus())
const [warnings, setWarnings] = useState([])
const [outputFeedbackVote, setOutputFeedbackVote] = useState<
"up" | "down" | null
@@ -183,13 +171,11 @@ export function useHuntRun({
setActiveRunDag(null)
setReplay(null)
replayFramesRef.current = []
- replayChunksRef.current = []
- throughputBus.reset()
setWarnings([])
outputFeedbackLockedRef.current = false
setOutputFeedbackVote(null)
setStep("input")
- }, [setStep, throughputBus])
+ }, [setStep])
const simplify = useCallback(async () => {
const trimmed = rawInput.trim()
@@ -214,8 +200,6 @@ export function useHuntRun({
setProgress(null)
setReplay(null)
replayFramesRef.current = []
- replayChunksRef.current = []
- throughputBus.reset()
replayStartRef.current = performance.now()
outputFeedbackLockedRef.current = false
setOutputFeedbackVote(null)
@@ -228,19 +212,6 @@ export function useHuntRun({
setProgress(snapshot)
}
- const captureChunk = (
- stepId: SimplifyPipelineStepId,
- chars: number,
- atMs: number
- ) => {
- throughputBus.report(stepId, chars, atMs)
- replayChunksRef.current.push({
- timeMs: atMs - replayStartRef.current,
- stepId,
- chars,
- })
- }
-
try {
const result = await engine.run({
apiKey,
@@ -248,7 +219,6 @@ export function useHuntRun({
resolvedModelId,
signal: run.controller.signal,
onProgress: captureProgress,
- onChunk: captureChunk,
provider: openRouterProvider,
providerLatencyPolicy: openRouterLatencyPolicy,
providerEndpoints: openRouterEndpoints,
@@ -283,7 +253,6 @@ export function useHuntRun({
setWarnings(result.warnings)
captureProgress(result.progress)
const finalFrames = replayFramesRef.current
- const finalChunks = replayChunksRef.current
const finalDuration =
finalFrames.length > 0
? finalFrames[finalFrames.length - 1].timeMs
@@ -291,7 +260,6 @@ export function useHuntRun({
setReplay({
engineId: engine.id,
frames: finalFrames.slice(),
- chunks: finalChunks.slice(),
durationMs: finalDuration,
})
@@ -426,7 +394,6 @@ export function useHuntRun({
resolvedModelDisplay,
setStats,
setStep,
- throughputBus,
])
const copyOutput = useCallback(async () => {
@@ -467,7 +434,6 @@ export function useHuntRun({
progress,
activeRunDag,
replay,
- throughputBus,
warnings,
outputFeedbackVote,
submitOutputFeedback,