Commit Graph
100 Commits
Author SHA1 Message Date
Dave 697217d8a2 story-kit: start 53_story_qa_agent_role 2026-02-20 17:37:52 +00:00
DaveandClaude Opus 4.6 bd0e7b0017 Accept story 52: Mergemaster Agent Role
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 17:37:03 +00:00
DaveandClaude Opus 4.6 9dab18d597 Story 52: Mergemaster agent role with merge_agent_work MCP tool
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 17:36:35 +00:00
DaveandClaude Opus 4.6 9be55ad198 Update story 55: scope to Upcoming panel only
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 17:28:53 +00:00
Dave 9c2a4e3550 story-kit: start 52_story_mergemaster_agent_role 2026-02-20 17:25:51 +00:00
DaveandClaude Opus 4.6 38f2656aee Accept story 60: Status-Based Directory Layout
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 17:24:40 +00:00
DaveandClaude Opus 4.6 e15fbffbb8 Fix 25 tests for work/ directory restructure (story 60)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 17:24:26 +00:00
DaveandClaude Opus 4.6 e1e0d49759 Story 60: Status-Based Directory Layout with work/ pipeline
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 17:17:12 +00:00
DaveandClaude Opus 4.6 5fc085fd9e Accept story 54: Cross-Platform Binary Distribution
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 17:15:48 +00:00
DaveandClaude Sonnet 4.6 158550e889 Story 54: add cross-platform binary distribution support
- Add Makefile with build-macos and build-linux targets
  - build-macos: cargo build --release (native macOS binary)
  - build-linux: cross build --release --target x86_64-unknown-linux-musl
    (produces a fully static binary via Docker/cross; zero dynamic deps)
- Document cross-platform build process in README.md including
  how to verify macOS dynamic deps (otool -L) and Linux static
  linking (file + ldd)
- reqwest 0.13 already uses rustls by default (no OpenSSL); verified
  in Cargo.lock – no Cargo.toml changes needed
- Add unit tests to http/assets.rs covering:
  - SPA fallback routing for non-asset paths
  - 404 for missing assets/ paths
  - Panic-free behaviour on empty path
  - rust-embed EmbeddedAssets iter compiles and runs correctly

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-20 17:15:28 +00:00
Dave d496b9a839 story-kit: set test_plan to approved for story 54_cross_platform_binary_distribution 2026-02-20 17:10:07 +00:00
DaveandClaude Opus 4.6 9ff6548bc0 Add .git/ to .ignore to prevent cargo watch restarts on commits
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 17:04:02 +00:00
Dave b6d239d857 story-kit: start 54_cross_platform_binary_distribution 2026-02-20 16:58:58 +00:00
DaveandClaude Opus 4.6 8568e868a6 Fix ls permission pattern: use space instead of colon
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 16:58:00 +00:00
DaveandClaude Opus 4.6 6a9fb1cbc4 Update stories 52, 53, 59 with work/ directory paths
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 16:57:04 +00:00
DaveandClaude Opus 4.6 7663d0ddc3 Simplify story 60: accept moves from 2_current to 5_archived only
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 16:55:29 +00:00
DaveandClaude Opus 4.6 ee20791a18 Update story 60: add numbered work/ directory structure
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 16:53:28 +00:00
Dave 9d884eaf28 story-kit: start 60_status_based_directory_layout 2026-02-20 16:44:53 +00:00
DaveandClaude Opus 4.6 4e3428f591 Broaden Claude Code permissions to reduce approval prompts
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 16:44:26 +00:00
DaveandClaude Opus 4.6 dd4fa1f851 Accept story 49: Deterministic Bug Lifecycle Management
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 16:41:39 +00:00
DaveandClaude Opus 4.6 2d28304a41 Story 49: Deterministic Bug Lifecycle Management
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 16:41:04 +00:00
DaveandClaude Opus 4.6 b76b5df8c9 Add story 60: Status-Based Directory Layout
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 16:39:41 +00:00
DaveandClaude Opus 4.6 5375be27b1 Add .gitkeep to .story_kit/current/
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 16:28:48 +00:00
DaveandClaude Opus 4.6 4e0fdb2abc Remove stories/current/ — replaced by unified .story_kit/current/
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 16:28:34 +00:00
DaveandClaude Opus 4.6 8c7a2b9c83 Accept story 50: migrate to unified .story_kit/current/, add stories 55-59
- Move stories/current/ → .story_kit/current/
- Archive story 50
- Add story 55: Live Story Panel Updates
- Add story 57: Live Test Gate Updates
- Add story 58: Live Agent Panel Updates
- Add story 59: Current Work Panel

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 16:25:43 +00:00
DaveandClaude Opus 4.6 7f672cae5f Story 50: Unified Current Work Directory
- Move current/ to .story_kit/current/ (out of stories/)
- Type-aware routing for bugs, spikes, stories
- close_bug_to_archive() for bug lifecycle
- All path references updated across agents.rs, workflow.rs, mcp.rs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 16:25:08 +00:00
Dave b689466a61 Updated toml a bit - still more to go 2026-02-20 16:13:05 +00:00
DaveandClaude Opus 4.6 94ec5ddf7d Deduplicate story numbers, add stories 52-56
- Remove duplicate 52 (was renumbered copy of story 50)
- Renumber agent-created stories: 50→54, 53→55
- Add story 52: Mergemaster Agent Role
- Add story 53: QA Agent Role
- Add story 56: Auto-Increment Work Item IDs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 16:11:28 +00:00
DaveandClaude Opus 4.6 9d41cdddd2 Add story 53: WebSocket push notifications for panel auto-refresh
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 16:03:09 +00:00
DaveandClaude Opus 4.6 3e22654681 Fix leftover merge conflict markers in Chat.test.tsx
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 15:59:45 +00:00
DaveandClaude Opus 4.6 024fb2b4b8 Accept story 48: Two Column Layout
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 15:56:34 +00:00
DaveandClaude Opus 4.6 e7d4590997 Story 48: Two Column Layout — Chat Left, Panels Right
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 15:56:28 +00:00
DaveandClaude Opus 4.6 6f6f9983a7 Renumber story 50 (unified current work directory) to 52 to avoid duplicate
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 15:54:51 +00:00
Dave 8bdf7d1484 story-kit: start story 49_deterministic_bug_lifecycle_management 2026-02-20 15:54:15 +00:00
DaveandClaude Opus 4.6 20fa5b3a3c story-kit: close bug bug-5-fix_collect_coverage_button_error
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 15:52:53 +00:00
DaveandClaude Opus 4.6 97dcab3b98 Fix failing Chat tests: correct tool call badge assertions
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 15:51:47 +00:00
DaveandClaude Opus 4.6 01e7d67f1f Fix bug 5: truncate coverage error output to last 5 lines
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 15:45:56 +00:00
DaveandClaude Opus 4.6 2f42bb3288 Update story 50: ensure agent prompts match new directory layout
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 15:44:24 +00:00
DaveandClaude Opus 4.6 6d601823a4 Add story 51: Deterministic Spike Lifecycle Management
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 15:43:44 +00:00
DaveandClaude Opus 4.6 26023bcb06 Update story 50: add integration tests and lifecycle coverage
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 15:43:17 +00:00
DaveandClaude Opus 4.6 b1b9799e9e Add story 50: Unified Current Work Directory
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 15:42:41 +00:00
DaveandClaude Opus 4.6 cb29601c55 Add story 49: Deterministic Bug Lifecycle Management
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 15:41:13 +00:00
DaveandClaude Opus 4.6 bd09add399 Update bug 5 with root cause, repro steps, and expected result
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 15:40:27 +00:00
DaveandClaude Opus 4.6 e7c4f31e34 Add story 50: cross-platform binary distribution with musl
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 15:38:03 +00:00
DaveandClaude Opus 4.6 1331992724 Accept story 46: Deterministic Story Mutations with Auto-Commit
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 15:34:47 +00:00
DaveandClaude Opus 4.6 928cc64bfa Story 46: Deterministic Story Mutations with Auto-Commit
- Add git_stage_and_commit() helper for deterministic commits
- move_story_to_current() auto-commits on start_agent
- accept_story auto-commits move to archived/
- New MCP tools: check_criterion, set_test_plan (total: 21)
- create_story MCP always auto-commits
- Tests for check_criterion and set_test_plan

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 15:34:41 +00:00
DaveandClaude Opus 4.6 ee844c0fa9 Move stories 46 and 48 to current (agents working on them)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 15:30:49 +00:00
Dave 968e44f4c1 Renamed bug file 2026-02-20 15:25:25 +00:00
DaveandClaude Opus 4.6 efb0f65f98 Move bug 47 to .story_kit/bugs/
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 15:24:45 +00:00
DaveandClaude Opus 4.6 95364cdd74 Move bug 47 to bugs/ folder
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 15:23:48 +00:00
DaveandClaude Opus 4.6 dd40b248e3 Add bug 47: Fix Collect Coverage button error
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 15:20:02 +00:00
DaveandClaude Opus 4.6 e8ea361a6c Fix: export unused EditorCommand component to fix TS build
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 15:13:30 +00:00
DaveandClaude Opus 4.6 5c164f4855 Accept story 45: Deterministic Story Lifecycle Management
- accept_story MCP tool moves current/ to archived/
- move_story_to_archived helper with idempotent behavior
- start_agent auto-moves upcoming/ to current/

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 15:09:39 +00:00
DaveandClaude Opus 4.6 42640fba6a Accept story 44: Agent Completion Report via MCP
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 15:02:41 +00:00
DaveandClaude Opus 4.6 1b71449dd0 Story 44: Agent Completion Report via MCP
- report_completion MCP tool for agents to signal done
- Rejects if worktree has uncommitted changes
- Runs acceptance gates (clippy, tests) automatically
- Stores completion status on agent record
- 10 new tests

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 15:02:34 +00:00
DaveandClaude Opus 4.6 679370e48a Add story 46: Deterministic Story Mutations with Auto-Commit
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 14:58:14 +00:00
DaveandClaude Opus 4.6 7aa337d81b Update story 45: accept_story needs MCP tool not just REST
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 14:55:28 +00:00
DaveandClaude Opus 4.6 8003a98a35 Update story 44: server auto-commits instead of rejecting uncommitted changes
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 14:51:57 +00:00
DaveandClaude Opus 4.6 fc93475c78 Accept story 37: Editor Command for Worktrees
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 14:49:57 +00:00
DaveandClaude Opus 4.6 ed5f34b776 Story 37: Editor Command for Worktrees
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 14:49:36 +00:00
DaveandClaude Opus 4.6 53d9795e31 Move story 45 to current
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 14:32:57 +00:00
DaveandClaude Opus 4.6 258d1c6b8b Move stories 37 and 44 to current
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 14:32:20 +00:00
DaveandClaude Opus 4.6 7bcc87fcfe Add story 45: Deterministic Story Lifecycle Management
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 14:32:01 +00:00
DaveandClaude Opus 4.6 de3c204165 Accept story 43: Unified Chat UI for Claude Code and Regular Chat
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 14:26:53 +00:00
DaveandClaude Opus 4.6 44bc82d23a Story 43: Unified chat UI for Claude Code and regular chat
Integrate Claude Code provider into the chat UI alongside regular
Ollama/Anthropic providers. Updates AgentPanel and Chat components.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 14:26:40 +00:00
DaveandClaude Opus 4.6 42c21f680b Accept story 42: Deterministic Worktree Management via REST/MCP API
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 14:22:24 +00:00
DaveandClaude Opus 4.6 a9d45bbcd5 Story 42: Deterministic worktree management via REST/MCP API
Add REST and MCP endpoints for creating, listing, and removing worktrees.
Includes worktree lifecycle management and cleanup operations.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 14:22:09 +00:00
DaveandClaude Opus 4.6 91534b4a59 Accept story 38: Auto-Open Project on Server Startup
Server detects .story_kit/ in cwd or parent directories at startup and
automatically opens the project. MCP tools work immediately without
manual project-open step. Falls back to cwd when no .story_kit/ found.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 14:11:53 +00:00
DaveandClaude Opus 4.6 54d34d1a85 Add story 44: Agent Completion Report via MCP
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 14:09:11 +00:00
DaveandClaude Opus 4.6 f6f4d84c54 Add coder-3 agent to project config
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 13:37:10 +00:00
DaveandClaude Opus 4.6 ea30faff95 Move story 43 to current: Unified Chat UI
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 13:36:00 +00:00
DaveandClaude Opus 4.6 90e90f4428 Add story 43: Unified chat UI for Claude Code and regular chat
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 13:34:10 +00:00
DaveandClaude Opus 4.6 e23d723ac2 Move story 38 to current: Auto-Open Project on Server Startup
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 13:29:15 +00:00
DaveandClaude Opus 4.6 c9b33b2107 Move story 42 to current: Deterministic Worktree Management
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 13:29:05 +00:00
DaveandClaude Opus 4.6 4c5bfe9bce Accept story 40: MCP Server Obeys STORYKIT_PORT
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 13:27:18 +00:00
DaveandClaude Opus 4.6 022ba4ed47 Accept story 33: Copy-paste diff commands for agent worktrees
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 13:26:34 +00:00
DaveandClaude Opus 4.6 c1eaa2da2e Accept story 33: Copy-paste diff commands for agent worktrees
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 13:25:52 +00:00
DaveandClaude Opus 4.6 a3c20eb4d4 Accept story 40: MCP Server Obeys STORYKIT_PORT
Agent worktrees now get a .mcp.json written with the correct port from
the running server. AgentPool receives the port at construction and
passes it through to create_worktree, which writes .mcp.json on both
new creation and reuse.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 13:24:35 +00:00
DaveandClaude Opus 4.6 ce37a70f9a Archive bugs 2-3, file bug 4: Run button does not start agent
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 13:17:48 +00:00
DaveandClaude Opus 4.6 1eae2410f3 Fix bugs 2 and 3: agent panel expand and stale worktree references
Bug 2: Expand triangle now works when no agents are started - shows
"No agents started" message. AgentPanel moved to top of panels.

Bug 3: Run `git worktree prune` before `git worktree add` to clean
stale references from externally-deleted worktree directories.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 13:17:20 +00:00
DaveandClaude Opus 4.6 c6a04f5e53 Accept story 41: Agent Completion Notification via MCP
Add wait_for_agent MCP tool that blocks until an agent reaches a terminal
state (completed, failed, stopped). Returns final status with session_id,
worktree_path, and git commits made by the agent.

- Subscribe-before-check pattern avoids race conditions
- Handles lagged receivers, channel closure, and configurable timeout
- Default timeout 5 minutes, includes git log of agent commits in response
- 11 new tests covering all paths

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 13:16:04 +00:00
DaveandClaude Opus 4.6 fa5d013fe2 Add auto-commit criterion to story 42
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 13:13:55 +00:00
DaveandClaude Opus 4.6 665d27b779 Add story 42: Deterministic worktree management via REST/MCP API
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 13:02:35 +00:00
DaveandClaude Opus 4.6 0d48370ac0 Move story 41 to current: Agent Completion Notification via MCP
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 12:54:07 +00:00
DaveandClaude Opus 4.6 4605db13de Add story 41: Agent Completion Notification via MCP
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 12:52:10 +00:00
DaveandClaude Opus 4.6 39b67ff754 Story 33: Copy-paste diff commands for agent worktrees
- Add base_branch detection to WorktreeInfo (from project root HEAD)
- Expose base_branch in AgentInfo API response
- Add {{base_branch}} template variable to agent config rendering
- Show git difftool command with copy-to-clipboard in AgentPanel UI
- Add diff command instruction to coder agent prompts
- Add AgentPanel tests for diff command rendering and clipboard

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 12:48:50 +00:00
DaveandClaude Opus 4.6 1cd1d318d3 Log bugs 2 and 3: agent panel expand and stale worktree issues
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 12:47:01 +00:00
DaveandClaude Opus 4.6 1064b50f86 Update agent prompts: read README, commit work, tiered acceptance
- Supervisor reads CLAUDE.md and README before coordinating
- Coders commit their work before finishing
- All agents stop at "gates green" - never accept or merge
- Human always does final acceptance and merge to master

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 12:42:19 +00:00
DaveandClaude Opus 4.6 00f8d16bb0 Move story 33 to current
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 12:26:57 +00:00
DaveandClaude Opus 4.6 b3800beb61 Move story 40 to current: MCP Server Obeys STORYKIT_PORT
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 12:25:54 +00:00
DaveandClaude Opus 4.6 dcc254f9aa Add story 40: MCP Server Obeys STORYKIT_PORT
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 12:24:03 +00:00
DaveandClaude Opus 4.6 6e359c6bfe Rewrite story 33: copy-paste diff commands using git difftool
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 12:15:08 +00:00
DaveandClaude Opus 4.6 db2d055f60 Spike 3: Sub-agent infrastructure fixes for multi-agent coordination
- Fix CLAUDECODE env var blocking nested Claude Code sessions
- Add drain-based event_log for reliable get_agent_output polling
- Add non-SSE get_agent_output fallback (critical for MCP tool calls)
- Preserve worktrees on agent stop instead of destroying work
- Reap zombie processes with child.wait() after kill
- Increase broadcast buffer from 256 to 1024
- Engineer supervisor and coder prompts in project.toml
- Point .mcp.json to test port 3002

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 12:14:36 +00:00
DaveandClaude Opus 4.6 b089d314ba Add user testing step to bug workflow before merge
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 12:03:22 +00:00
DaveandClaude Opus 4.6 3e99929d03 Fix bug 1: Only fetch Anthropic models when API key exists
getAnthropicModels() was called unconditionally on mount, causing a
console error when no API key was set. Now chains the call after
getAnthropicApiKeyExists() confirms a key is present.

Includes regression test added before the fix per bug workflow.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 12:01:47 +00:00
DaveandClaude Opus 4.6 e12985f40c Add bugs directory structure to .story_kit
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 11:57:18 +00:00
DaveandClaude Opus 4.6 44fdaf4fd6 Update bug workflow: require failing test first and worktree
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 11:54:55 +00:00
DaveandClaude Opus 4.6 cde75bd7fb Accept story 39: Persistent Claude Code Sessions in Web UI
Use --resume <session_id> with claude -p so the web UI claude-code-pty
provider maintains full conversation context across messages, identical
to a long-running terminal Claude Code session.

Changes:
- Capture session_id from claude -p stream-json system event
- Pass --resume on subsequent messages in same chat session
- Thread session_id through ProviderConfig, ChatResult, WsResponse
- Frontend stores sessionId per chat, clears on New Session
- Unset CLAUDECODE env to allow nested spawning from server
- Wait for clean process exit to ensure transcript flush to disk

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 11:51:19 +00:00
DaveandClaude Opus 4.6 cff7f5fe7f Add worktree port configuration docs to STACK.md
Documents STORYKIT_PORT env var for running multiple instances
in parallel worktrees without port conflicts.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 11:37:29 +00:00
DaveandClaude Opus 4.6 8724ec1cbc Move Claude Code permissions to committed settings for worktree sharing
Agents running in git worktrees weren't inheriting permissions from
settings.local.json since it's path-specific. Moving the allowlist to
the committed settings.json ensures all worktrees get pre-approved
permissions automatically.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 11:30:28 +00:00