Skip to content

feat(tui): add /plan to toggle plan mode - #96

Merged
DevFlex-AI merged 1 commit into
devfrom
plan-toggle
Jul 31, 2026
Merged

feat(tui): add /plan to toggle plan mode#96
DevFlex-AI merged 1 commit into
devfrom
plan-toggle

Conversation

@DevFlex-AI

@DevFlex-AI DevFlex-AI commented Jul 31, 2026

Copy link
Copy Markdown

Issue for this PR

Closes #95

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Ports Codex CLI's plan-mode toggle. Bolt already ships a built-in plan agent, but flipping into it meant opening /agents, picking it, and doing the same dance to get back. /plan now toggles in one keystroke, remembering the agent you came from:

run: () => {
  const current = local.agent.current()?.name
  if (current === "plan") {
    local.agent.set(prior ?? "build")
    toast.show({ variant: "info", message: `Plan mode off, back to ${prior ?? "build"}`, duration: 3000 })
    return
  }
  prior = current
  local.agent.set("plan")
  toast.show({ variant: "info", message: "Plan mode on, the agent will propose before changing files", duration: 3000 })
},

If a custom config removed the plan agent, local.agent.set already surfaces its "Agent not found" warning toast, so no extra guard is needed.

How did you verify your code works?

  • bun typecheck and bun test in packages/tui (198 pass)
  • Ran the TUI: /plan switches to the plan agent with a toast, /plan again restores the prior agent (including non-default agents)

Screenshots / recordings

Terminal UI change; behavior described above.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

View with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is enabled.

@vercel

vercel Bot commented Jul 31, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
bolt-cli-app Skipped Skipped Jul 31, 2026 4:39pm

@coderabbitai

coderabbitai Bot commented Jul 31, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@DevFlex-AI, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 11 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: db04994c-ff09-4dac-b42c-598ce9806821

📥 Commits

Reviewing files that changed from the base of the PR and between 550e405 and 8758faf.

📒 Files selected for processing (1)
  • packages/tui/src/app.tsx

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown

The following comment was made by an LLM, it may be inaccurate:

@DevFlex-AI
DevFlex-AI merged commit 086d09a into dev Jul 31, 2026
18 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.

Add /plan to toggle plan mode

1 participant