Skip to content

feat(tui): add AI drafting flows - #108

Merged
aksOps merged 2 commits into
mainfrom
codex/issue-92-ai-draft
Aug 18, 2026
Merged

feat(tui): add AI drafting flows#108
aksOps merged 2 commits into
mainfrom
codex/issue-92-ai-draft

Conversation

@aksOps

@aksOps aksOps commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add abortable Draft with AI controls to the TUI card editor; generated fields remain in the form for review and manual save
  • add a separate ADR split overlay with bounded paste/file input, configurable story count, editable review rows, destination selection, and per-row batch results
  • call the shared internal/ai runner directly with ScopeReadOnly, operation/session guards, terminal-safe errors, and cancellation on every close path
  • preserve TUI comments and link management (parity+) #91 detail action ownership and async completion routing

User impact

TUI users can draft a card or split an ADR without using the web UI. AI output never writes a card until the user reviews it and explicitly saves or adds the selected rows.

Validation

  • go test -race ./... -count=1 (1,537 tests, 11 packages)
  • GOFLAGS=-buildvcs=false sh scripts/check-go-coverage.sh (96.6% statements; required 96.4%)
  • CGO_ENABLED=0 GOFLAGS=-buildvcs=false go vet ./...
  • CGO_ENABLED=0 GOFLAGS=-buildvcs=false go build ./...
  • npm test (695 tests; 98.26% statements)
  • npm run build
  • gofmt -l and git diff --check
  • independent standards and spec/integration reviews: no remaining findings

GOFLAGS=-buildvcs=false works around the known linked-worktree VCS stamping failure in unmodified go list/build commands.

Closes #92

@sonarqubecloud

Copy link
Copy Markdown

@aksOps
aksOps marked this pull request as ready for review August 18, 2026 02:29
@aksOps
aksOps merged commit 75a0832 into main Aug 18, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TUI AI flows: story draft and ADR split

1 participant