Repository navigation
Commit 0bd81a2
authored
Open Plan approval forms automatically (#4929)
## Human comments
## What was wrong
Plan approval cards started collapsed, hiding both the plan and the
decision buttons. A thread could be waiting for approval while showing
only a small “Plan review” strip above the composer.
## What changed
Open Plan approval cards automatically, matching the existing question
behavior. Users can still collapse the card, and each new plan request
starts expanded. Ordinary command approvals retain their current
collapsed default. No CLI, SDK, server/daemon wire, or protocol changes.
## How you verified
The expanded-default and next-plan regression tests fail on origin/main
before the fix and pass afterward. `pnpm exec turbo run test
--filter=@bb/app -- src/components/thread/pending-interactions` passes
all 17 tests; app lint and typecheck pass (lint has existing warnings).
In an isolated built BB app, use real Claude Code to request a Plan
approval. The base build shows the collapsed strip; the changed build
opens the plan and decisions automatically. Browser checks cover manual
collapse/reopen and a compact viewport; clicking Approve plan resolves
the actual server interaction and Claude replies APPROVED. A fresh
pending plan is retained privately for review. Matching before/after
captures use the same prompt and viewport in separate real threads
because stopping the base server cancelled its pending interaction.
The first CI run exposed a workspace route budget overage also
reproduced on unchanged main: both builds contained exactly 1,087,984
raw bytes, 120 over the prior limit. Main subsequently fixed that budget
in #4933. This PR is rebased onto that fix and contains only the two
Plan UI files; no separate budget allowance remains. The local bundle
check passes with unchanged payload. Final-head checks: 30 passed, 0
failed, 3 skipped; only the contributor gate remains queued waiting for
a GitHub runner (requeued once).
> AGENT GENERATED1 parent 7fd6ee9 commit 0bd81a2
2 files changed
Lines changed: 25 additions & 4 deletions
File tree
- apps/app/src/components/thread/pending-interactions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
281 | | - | |
| 281 | + | |
282 | 282 | | |
283 | 283 | | |
284 | | - | |
285 | | - | |
286 | 284 | | |
287 | 285 | | |
288 | 286 | | |
289 | 287 | | |
290 | 288 | | |
291 | 289 | | |
| 290 | + | |
292 | 291 | | |
293 | 292 | | |
294 | 293 | | |
| |||
305 | 304 | | |
306 | 305 | | |
307 | 306 | | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
308 | 329 | | |
309 | 330 | | |
310 | 331 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | | - | |
| 226 | + | |
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| |||
0 commit comments