Skip to content
This repository was archived by the owner on Jul 16, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions src/agent-api.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,29 @@ def do_GET(self):
lines = section.strip().split('\n')
title = lines[0].strip()
body = '\n'.join(lines[1:])
# The "## Open" section holds questions as top-level
# bullet items — the format the proactive loop writes
# (see CLAUDE.md / the proactive-loop skill). Surface
# each bullet as its own question so loop-written
# questions are not invisible to the web UI Asks panel.
if title.lower() == 'open':
for j, bullet in enumerate(
re.findall(r'^- (.+)$', body, flags=re.MULTILINE)
):
# Skip bullets already annotated fixed/resolved.
if re.search(r'\b(FIXED|RESOLVED|ANSWERED)\b', bullet):
continue
m = re.match(r'\*\*(.+?)\*\*', bullet)
b_title = m.group(1).strip() if m else bullet[:80].strip()
questions.append({
"id": f"Q{i}-{j}",
"text": b_title,
"detail": bullet.strip(),
})
continue
# The "## Resolved" section is never surfaced.
if title.lower() == 'resolved':
continue
# Skip preamble (sections without question metadata)
if '**Status:**' not in body and '**Options:**' not in body:
continue
Expand Down
Loading