ARTEX - AI autonomous penetration testing system (English translation; upstream: Autumn-27/ARTEX, AGPL-3.0)
Go aiai-agentsautonomous-agentsbug-bountydockergolanglinuxllmmcpnextjspenetration-testingpentestpostgresqlreareactred-teamsecuritysecurity-automationsqlitetypescript
fix(web): disable replay when only the body preview is loaded
BaaRai7d87953d9a7f
diff --git a/web/src/app/(main)/function/traffic/_components/replay-panel.tsx b/web/src/app/(main)/function/traffic/_components/replay-panel.tsxindex a0c5902..87f195d 100644--- a/web/src/app/(main)/function/traffic/_components/replay-panel.tsx+++ b/web/src/app/(main)/function/traffic/_components/replay-panel.tsx@@ -124,7 +124,8 @@ export function ReplayPanel({});};- const canSend = !sending && !form.binary && form.method.trim() !== "" && form.url.trim() !== "";+ const canSend =+ !sending && !form.binary && !form.bodyPreviewOnly && form.method.trim() !== "" && form.url.trim() !== "";// Repeated headers (Set-Cookie) share a name, so each keeps its original position as key.const sortedHeaders = (result?.headers ?? []).map((h, position) => ({ ...h, position }))@@ -218,7 +219,8 @@ export function ReplayPanel({/>{form.bodyPreviewOnly && (<p className="text-amber-700 text-xs dark:text-amber-400">- The recorded body was too large to keep inline: only its preview is loaded here.+ The recorded body was too large to keep inline; only its preview is loaded, so replay is disabled for+ this exchange.</p>)}</>