---
id: T-259
name: "htmx 2.0+ upgrade and SSE extension"
description: >
  Verify current htmx version in web/static/htmx.min.js. If <2.0, upgrade to 2.0+.
  Add htmx SSE extension (sse.js) to static/. Load in base.html. Test existing htmx
  interactions still work after upgrade. See docs/reports/T-254-llm-assisted-qa-research.md
  RQ-3 (htmx version check needed). Predecessor: none (can run in parallel).

status: work-completed
workflow_type: build
owner: agent
horizon:
tags: []
components: []
related_tasks: [T-254]
created: 2026-02-23T20:38:59Z
last_update: '2026-06-11T22:24:17Z'
date_finished: 2026-02-23T20:51:04Z
bvp_scores_proposed:
  - ts: '2026-06-11T22:24:17Z'
    estimator: bvp-estimator-v1-heuristic
    scores:
      D1: 0
      D2: 0
      D3: 0
      D4: 0
      F-RECALL: 2
      F-ORCH: 0
      F3: 0
      F1: 0
      F2: 0
    rationale: D1=0 (no-signal); D2=0 (no-signal); D3=0 (no-signal); D4=0 
      (no-signal); F-RECALL=2 (body:lightly-promoted); F-ORCH=0 (no-signal); 
      F3=0 (no-signal); F1=0 (no-signal); F2=0 (no-signal)
    rubric_sha: e4a00f38e801
---

# T-259: htmx 2.0+ upgrade and SSE extension

## Context

htmx SSE extension needed for T-256/T-257 streaming Q&A. See `docs/reports/T-254-llm-assisted-qa-research.md` RQ-3. htmx already v2.0.4 — only SSE extension needed.

## Acceptance Criteria

### Agent
- [x] htmx is 2.0+ (already v2.0.4 — verified)
- [x] SSE extension (`htmx-ext-sse.js`) present in `web/static/`
- [x] SSE extension loaded in `base.html` after htmx
- [x] Existing htmx interactions still work (search page loads, navigation works)

## Verification

# SSE extension file exists
test -f web/static/htmx-ext-sse.js
# SSE extension loaded in base.html
grep -q "htmx-ext-sse" web/templates/base.html
# Search page still works
curl -sf http://localhost:3000/search | grep -q "Search"

## Decisions

<!-- Record decisions ONLY when choosing between alternatives.
     Skip for tasks with no meaningful choices.
     Format:
     ### [date] — [topic]
     - **Chose:** [what was decided]
     - **Why:** [rationale]
     - **Rejected:** [alternatives and why not]
-->

## Updates

### 2026-02-23T20:38:59Z — task-created [task-create-agent]
- **Action:** Created task via task-create agent
- **Output:** /opt/999-Agentic-Engineering-Framework/.tasks/active/T-259-htmx-20-upgrade-and-sse-extension.md
- **Context:** Initial task creation

### 2026-02-23T20:51:04Z — status-update [task-update-agent]
- **Change:** status: captured → started-work

### 2026-02-23T20:51:04Z — status-update [task-update-agent]
- **Change:** status: started-work → work-completed

## Reviewer Verdict (v1.5)

- **Scan ID:** R-aab55e61
- **Timestamp:** 2026-06-02T15:01:46Z
- **Catalogue:** v1.3-seed
- **Overall:** CONCERN
- **Needs Human:** no
- **Findings:** 1

**Verification-level findings:**

  1. **l387-sigpipe-risk** (partial, heuristic) @ Verification:line 6
     - evidence: `curl -sf http://localhost:3000/search | grep -q "Search"`
