test(KB-323): add end-to-end verification test for steering comments injection

- Add comprehensive e2e test for steering comments injection in executor
- Verify system prompt steering comments are correctly injected
- Test covers executor initialization and prompt construction
This commit is contained in:
gsxdsm
2026-03-31 12:51:06 -07:00
parent a9b0cb55f9
commit 210328000c
17 changed files with 5379 additions and 56 deletions

View File

@@ -1,5 +1,5 @@
import { useState, useEffect, useRef, useCallback } from "react";
import { Settings, Pause, Play, Square, LayoutGrid, List, Terminal, Lightbulb, Search, X, Activity, MoreHorizontal, Clock, Folder, History, GitBranch, Workflow } from "lucide-react";
import { Settings, Pause, Play, Square, LayoutGrid, List, Terminal, Lightbulb, Search, X, Activity, MoreHorizontal, Clock, Folder, History, GitBranch, Workflow, Bot } from "lucide-react";
// GitHub logo icon (Octocat mark) - uses currentColor for theme compatibility
function GitHubLogo({ size = 16 }: { size?: number }) {
@@ -25,6 +25,7 @@ interface HeaderProps {
onOpenSchedules?: () => void;
onOpenGitManager?: () => void;
onOpenWorkflowSteps?: () => void;
onOpenAgents?: () => void;
onToggleTerminal?: () => void;
/** Opens the top-level workspace-aware file browser modal. */
onOpenFiles?: () => void;
@@ -65,6 +66,7 @@ export function Header({
onOpenSchedules,
onOpenGitManager,
onOpenWorkflowSteps,
onOpenAgents,
onToggleTerminal,
onOpenFiles,
filesOpen,
@@ -365,6 +367,18 @@ export function Header({
</button>
)}
{/* Agents - desktop only */}
{!isMobile && onOpenAgents && (
<button
className="btn-icon"
onClick={onOpenAgents}
title="Manage Agents"
data-testid="agents-btn"
>
<Bot size={16} />
</button>
)}
{/* Settings - always inline on desktop */}
{!isMobile && (
<button className="btn-icon" onClick={onOpenSettings} title="Settings">
@@ -451,6 +465,17 @@ export function Header({
<span>Workflow Steps</span>
</button>
)}
{onOpenAgents && (
<button
className="mobile-overflow-item"
onClick={() => handleOverflowAction(onOpenAgents)}
role="menuitem"
data-testid="overflow-agents-btn"
>
<Bot size={16} />
<span>Manage Agents</span>
</button>
)}
<button
className="mobile-overflow-item"
onClick={() => handleOverflowAction(onOpenSettings)}