Fully autonomous AI Agents system capable of performing complex penetration testing tasks
Go ai-agentsai-security-toolanthropicautonomous-agentsgolanggptgraphqlmulti-agent-systemoffensive-securityopen-sourceopenaipenetration-testingpenetration-testing-toolsreactsecurity-automationsecurity-testingsecurity-toolsself-hosted
chore(editor): trim review-flagged restatement comments
Sergey Kozyrenkofef780de71ed
diff --git a/frontend/src/components/shared/editor-highlight-regex.test.ts b/frontend/src/components/shared/editor-highlight-regex.test.tsindex 3f861473..28cd0f38 100644--- a/frontend/src/components/shared/editor-highlight-regex.test.ts+++ b/frontend/src/components/shared/editor-highlight-regex.test.ts@@ -3,8 +3,6 @@ import { describe, expect, it } from 'vitest';import { TAG_RE } from './editor-tag-highlight';import { findVariableUseRanges, VARIABLE_RE, variableProbe } from './editor-variable-highlight';-// Assert the highlight regexes match the right spans and — critically — do NOT false-positive on prose-// that merely contains < or {{.const matches = (re: RegExp, text: string) => [...text.matchAll(re)].map((m) => m[0]);describe('VARIABLE_RE — {{ go-template actions }}', () => {diff --git a/frontend/src/features/knowledges/knowledge-form.tsx b/frontend/src/features/knowledges/knowledge-form.tsxindex d019b7cb..7b1887e9 100644--- a/frontend/src/features/knowledges/knowledge-form.tsx+++ b/frontend/src/features/knowledges/knowledge-form.tsx@@ -237,8 +237,7 @@ export function KnowledgeForm({ initialValues, isNew, knowledge, onSubmit }: Kno// `isDirty`/`canSubmit` at submit time.const result = await onSubmit(values, form.formState.dirtyFields as DirtyFlags);- // After save, show the server's canonical (trimmed/normalized) document; fall back to the- // submitted values if the mutation hook didn't return the saved fragment.+ // The backend may trim/normalize fields, so reset to its returned document when present.const resetValues = result.document ? documentToFormValues(result.document) : values;// Reset BEFORE the caller navigates so `isDirty` is false by thediff --git a/frontend/src/pages/settings/settings-prompt.tsx b/frontend/src/pages/settings/settings-prompt.tsxindex 2c4326b0..81d886c8 100644--- a/frontend/src/pages/settings/settings-prompt.tsx+++ b/frontend/src/pages/settings/settings-prompt.tsx@@ -148,7 +148,6 @@ function countVariableUses(template: string, variables: string[]): Record<stringreturn counts;}-// ReactDiffViewer styles aligned with shadcn — Tailwind CSS vars rather than hard-coded colors.const diffStyles = {content: {fontFamily: