Skip to content

Add dangerous mode execution shortcut option#518

Merged
bborn merged 2 commits intomainfrom
task/2047-add-dangerous-mode-execution-shortcut-op
Mar 22, 2026
Merged

Add dangerous mode execution shortcut option#518
bborn merged 2 commits intomainfrom
task/2047-add-dangerous-mode-execution-shortcut-op

Conversation

@bborn
Copy link
Owner

@bborn bborn commented Mar 22, 2026

Summary

  • Add X (Shift+X) keybinding to execute tasks in dangerous mode directly from kanban and detail views, without needing to start and then toggle
  • Replace task creation's yes/no queue confirmation with a 3-option select: No / Yes / Yes (dangerous mode)
  • Add Ctrl+D shortcut in retry view to submit retry in dangerous mode
  • Add --dangerous flag to CLI execute, create --execute, and move --execute commands
  • Add dangerous_mode parameter to MCP taskyou_create_task tool
  • Fix CreateTask to persist dangerous_mode in the INSERT statement

Test plan

  • All existing tests pass (go test ./...)
  • New tests for QueueDangerous keybinding default and config override
  • New tests for QueueDangerous in kanban view (queues + sets dangerous mode)
  • New tests for QueueDangerous skipping already-processing tasks
  • New tests for retry model dangerous mode (Ctrl+D sets dangerous, Ctrl+S does not)
  • New tests for CLI execute/create with dangerous mode persistence
  • Manual: Press X on a backlog task in kanban — should queue with dangerous mode enabled
  • Manual: Create a new task, select "Yes — execute in dangerous mode" — should create queued+dangerous
  • Manual: In retry view, press Ctrl+D — should retry in dangerous mode
  • Manual: ty execute 42 --dangerous — should queue task with dangerous mode
  • Manual: ty create "test" -x --dangerous — should create and queue in dangerous mode

🤖 Generated with Claude Code

bborn and others added 2 commits March 18, 2026 10:14
Enable executing tasks in dangerous mode directly without needing to
start a task first and then toggle. Changes:

- TUI: Add 'X' (Shift+X) keybinding to execute in dangerous mode from
  kanban and detail views (configurable via queue_dangerous in keybindings)
- Task creation: Replace yes/no queue confirmation with 3-option select:
  No / Yes / Yes (dangerous mode)
- Retry: Add Ctrl+D shortcut to submit retry in dangerous mode
- CLI: Add --dangerous flag to execute, create, and move commands
- MCP: Add dangerous_mode parameter to taskyou_create_task
- DB: Include dangerous_mode in CreateTask INSERT for proper persistence

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The task creation confirmation dialog now defaults to the user's last
choice for the same project, persisted via DB settings. This avoids
having to re-select "Yes" or "Yes (dangerous mode)" every time when
working on the same project.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@bborn bborn merged commit 8e2a78a into main Mar 22, 2026
3 of 4 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.

1 participant