fabro/docs/plans/2026-05-22-002-remove-session-sandboxes-feature-flag-plan.md
Bryan Helmkamp 352b7c5de4
refactor: remove devcontainer support (#433)
## Summary

Remove devcontainer support from the product surface and codebase: the
parser crate, workflow bridge, lifecycle execution path, typed events,
CLI progress rendering, generated client field, and public/internal
documentation references are all gone.

## What Changed

- Deleted the dedicated parser crate and removed its Cargo dependencies
and lockfile entries.
- Removed workflow initialization paths that resolved repository
devcontainer metadata, applied Daytona snapshots from it, merged
environment variables from it, or ran its lifecycle commands.
- Removed the typed event variants and CLI progress handlers for the
retired lifecycle events while leaving shared unknown-event handling
intact.
- Cleaned the generated TypeScript client and tracked docs so repository
search has no remaining devcontainer references outside git history.

## Verification

- `cargo +nightly-2026-04-14 fmt --all`
- `cargo +nightly-2026-04-14 fmt --check --all`
- `cargo build --workspace`
- `cargo nextest run -p fabro-types`
- `cargo nextest run -p fabro-workflow`
- `cargo nextest run -p fabro-cli run_progress`
- `cd lib/packages/fabro-api-client && bun run generate && bun run
typecheck`
- `cargo metadata --no-deps --format-version 1 | rg -i
"fabro-devcontainer|devcontainer"`
- `rg -n -i "devcontainer|dev
container|dev-container|dev_container|fabro-devcontainer|\\.devcontainer"
. --glob '!target/**' --glob '!.worktrees/**'`

---

[![Compound
Engineering](https://img.shields.io/badge/Compound_Engineering-6366f1)](https://github.com/EveryInc/compound-engineering-plugin)
🤖 Generated with GPT-5 via [Codex](https://openai.com/codex)
2026-05-27 12:48:40 -04:00

55 lines
3.4 KiB
Markdown

# Remove `features.session_sandboxes`
## Summary
Remove the `session_sandboxes` feature flag and the now-empty `[features]` settings namespace entirely. Behavior should be as if `session_sandboxes = true` was always set: Ask Fabro is never disabled by a feature flag, and UI controls previously hidden behind the flag are always shown.
## Key Changes
- Remove the settings namespace from config:
- Delete `FeaturesNamespace`, `FeaturesLayer`, `resolve_features`, and `[features]` defaults.
- Remove `features` from resolved `ServerSettings` and `UserSettings`.
- Remove `features` from the top-level settings parser allow-list, so old `[features]` config is rejected as unknown.
- Remove the runtime gate:
- Simplify Ask Fabro readiness to check only sandbox presence/runtime and LLM configuration.
- Remove `AskFabroUnavailableReason::FeatureDisabled` and the "Ask Fabro is disabled" tooltip.
- Update frontend behavior:
- Run detail page no longer handles `FEATURE_DISABLED`.
- Start page always renders the project/branch controls and no longer fetches system info just for this flag.
- Remove public API surfaces:
- `/api/v1/settings` `ServerSettings` no longer includes `features`.
- `/api/v1/system/info` no longer includes `features`.
- OpenAPI removes `FeaturesNamespace`, `SystemFeatures`, `ServerSettings.features`, `SystemInfoResponse.features`, and `feature_disabled`.
- Regenerate Rust API types and TypeScript Axios client.
- Update current docs:
- Remove `[features]` from active configuration docs, generated options docs, API docs, and unknown-key guidance.
- Do not touch unrelated meanings of "features" such as Cargo features or LLM model features.
## Test Plan
- Update or remove tests that assert `features.session_sandboxes` in config, settings, system info, and Ask Fabro readiness.
- Add or adjust coverage for:
- Ask Fabro unavailable reasons are only `no_sandbox`, `sandbox_not_ready`, or `llm_unconfigured`.
- Settings parsing rejects top-level `[features]`.
- `/api/v1/settings` response contains only `server` at the top level.
- `/api/v1/system/info` has no `features` field.
- Start page renders project/branch controls without consulting `SystemInfo.features`.
- Run:
- `cargo build -p fabro-api`
- `cd lib/packages/fabro-api-client && bun run generate`
- `cargo dev docs refresh && cargo dev docs check`
- `cargo nextest run -p fabro-config -p fabro-api -p fabro-server -p fabro-cli`
- `cd apps/fabro-web && bun test && bun run typecheck`
- `cargo +nightly-2026-04-14 fmt --check --all`
- `cargo +nightly-2026-04-14 clippy --workspace --all-targets -- -D warnings`
## Acceptance Checks
- `rg -n "session_sandboxes|FeaturesNamespace|SystemFeatures|feature_disabled|Ask Fabro is disabled" lib apps docs/public` returns no relevant matches.
- `rg -n "\\[features\\]" docs/public lib/crates/fabro-config/src lib/crates/fabro-types/src lib/crates/fabro-server/src apps/fabro-web/app` returns no settings-namespace matches.
- Existing sandbox runtime behavior remains unchanged; only the feature flag and schema surface are removed.
## Assumptions
- This is intentionally a breaking config/API cleanup: existing user config containing `[features]` should fail validation until removed.
- Historical internal plans may still contain old text unless they are part of active public docs; implementation should prioritize product code, generated clients, and current docs.