Skip to content

Adventure mode#2241

Draft
disconcision wants to merge 9 commits into
devfrom
adventure-mode
Draft

Adventure mode#2241
disconcision wants to merge 9 commits into
devfrom
adventure-mode

Conversation

@disconcision
Copy link
Copy Markdown
Member

No description provided.

disconcision and others added 9 commits January 18, 2026 16:38
Interactive tutorial system with:
- Floating dialog with avatar and speech bubble UI
- Script-based step sequencing (Message, AgentAction, UserGate, Checkpoint)
- Gate predicates for detecting user task completion
- Checkpoint/reset functionality
- Keyboard shortcut Cmd/Ctrl+Shift+A to start

Known issues documented in plans/adventure-mode.md:
- Gate checking not yet triggered (needs calculate() integration)
- Wrong keyboard hint in script (says Ctrl+P, should be Ctrl+E)
- Should create fresh scratch slide instead of using current editor

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Fix gate checking: Add check_gate call in Page.Update.calculate()
  after statics are computed. Gates now auto-advance when satisfied.

- Fix keyboard shortcut hint: Change Ctrl+P to Ctrl+E in tutorial text

- Create fresh scratch slide: When adventure starts in Scratch mode,
  create a new "Adventure Tutorial" slide and switch to it. Original
  slide index is stored for restoration when adventure ends.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Block mode/slide navigation during active adventure
- Fix mode indicator not updating (add Attr.value to select)
- Remove unused original_location and adventure_slide_index fields
- Extract helper functions in Page.re:
  - create_adventure_slide: Creates new scratch slide for adventure
  - apply_adventure_result: Handles checkpoint/reset side effects
- Update plan with current implementation details
- Add TextContains/TextEquals gate predicates
- Add action preview showing upcoming agent actions

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add turn indicator showing Tutor (🌰) and User (👤) with caret icons
- Caret icons match editor caret shape, colored green/red by turn
- Editor caret turns green during tutor's turn
- Space key advances when editor is locked (tutor's turn)
- Add keyboard hint "(Space)" below Next button
- Exit confirmation with contextual message based on whose turn

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add confirming_exit to Core Types documentation
- Update keyboard shortcuts (space to advance)
- Add space-to-advance to completed items
- Document known issue: UserActed never dispatched
- Add Known Issues section for technical debt

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Integrated action counting into check_gate: when the gate predicate
is not satisfied, increments actions_since_gate and triggers the
reset suggestion when threshold is reached. Users will now see
"Stuck? You can reset" after many failed attempts.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The blocking overlay is now fully transparent - it still blocks
clicks during tutor's turn but doesn't gray out the editor.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@disconcision
Copy link
Copy Markdown
Member Author

@copilot resolve the merge conflicts in this pull request

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.

1 participant