[aidan] chore/backend: remove stale explanatory comments

This commit is contained in:
abccodes
2026-06-19 18:20:26 -07:00
parent e3df0c44de
commit 9e207a4991
4 changed files with 0 additions and 13 deletions
-3
View File
@@ -13,8 +13,6 @@ import time
logger = logging.getLogger(__name__)
# Soft per-session throttle so the integration suggestion can fire on any turn
# without nagging every message; only stamped when a suggestion actually emits.
MCP_SUGGEST_COOLDOWN_S = 300.0
p_mcp_suggest_cooldown: dict[str, float] = {}
@@ -80,7 +78,6 @@ async def send_message(session_id: str, body: dict):
raise HTTPException(status_code=400, detail="prompt is required")
# Run MCP-suggestion classifier in parallel with the agent launch; fails open.
# Fires on any turn, but a per-session cooldown keeps it from nagging every message.
try:
last_suggested = p_mcp_suggest_cooldown.get(session_id, 0.0)
if time.monotonic() - last_suggested >= MCP_SUGGEST_COOLDOWN_S:
-5
View File
@@ -116,11 +116,6 @@ class AgentSession(BaseModel):
dashboard_id: Optional[str] = None
browser_id: Optional[str] = None
parent_session_id: Optional[str] = None
# For workflow Test Agent sessions: "running" while the test drives the
# steps, then "complete"/"error" when it finishes. Drives the test card's
# footer (red Force Stop -> green "workflow complete, close"). None for
# ordinary sessions. A dedicated signal because per-turn status oscillates
# completed/running between steps, so it can't mark "the whole test done".
workflow_test_state: Optional[Literal["running", "complete", "error"]] = None
# Browser memory signals, drive the subtle "remembered/learned" card chip so
# the user feels the agent getting smarter without lifting a finger.
-4
View File
@@ -53,10 +53,6 @@ class NotePosition(BaseModel):
class DashboardLayout(BaseModel):
# Accept whatever the FE serialises (workflow_cards, configure_panels,
# workflows_hub etc). Pydantic was silently stripping these because
# they weren't declared, which made the dashboard re-render WITHOUT
# the workflow card the user just placed.
model_config = ConfigDict(extra="allow")
cards: dict[str, CardPosition] = Field(default_factory=dict)
view_cards: dict[str, ViewCardPosition] = Field(default_factory=dict)
-1
View File
@@ -299,7 +299,6 @@ class DismissMcpSuggestionPayload(BaseModel):
@settings.router.put("/dismiss-mcp-suggestion")
async def put_dismiss_mcp_suggestion(body: DismissMcpSuggestionPayload):
"""MERGE dismissed integration suggestions; the general PUT replaces the whole object and would blank secrets."""
current = load_settings()
now = datetime.now(timezone.utc).isoformat()
for tool_id in body.ids: