Skip to content

feat: em ai runtime switching, extra_args, and em catch#400

Merged
Data-Wise merged 5 commits intodevfrom
feature/em-ai-improvements
Feb 18, 2026
Merged

feat: em ai runtime switching, extra_args, and em catch#400
Data-Wise merged 5 commits intodevfrom
feature/em-ai-improvements

Conversation

@Data-Wise
Copy link
Owner

Summary

  • em ai subcommand: Runtime backend switching (em ai claude|gemini|none|auto|toggle), status display, and live FLOW_EMAIL_AI mutation
  • extra_args support: Configurable CLI flags per backend (e.g., Gemini's -e none for fast startup via FLOW_EMAIL_GEMINI_EXTRA_ARGS)
  • em catch command: Email-to-task capture with AI summary, subject-line fallback, and catch integration
  • fzf picker integration: Ctrl-T keybind in em pick to catch emails inline

Test plan

  • Unit tests: 22/22 em-ai-switch tests passing
  • Unit tests: 9/9 em-catch tests passing
  • E2E tests: 38/38 automated tests passing (1 skipped — no inbox emails)
  • Interactive dogfooding suite: 14 guided QA tests available
  • source flow.plugin.zsh loads cleanly
  • Manual: Run bash tests/cli/em-ai-interactive-tests.sh with himalaya configured

🤖 Generated with Claude Code

Test User and others added 5 commits February 18, 2026 11:38
Three features: runtime AI backend switching (em ai), Gemini
extra_args support, and cross-dispatcher em catch integration.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add `em ai` runtime backend switching (claude/gemini/none/auto/toggle)
- Add `_em_ai_switch`, `_em_ai_toggle`, `_em_ai_status` functions
- Add `gemini_extra_args` / `claude_extra_args` to _EM_AI_BACKENDS
- Fix `_em_ai_backend_for_op` to read live FLOW_EMAIL_AI env var
- Add `em catch <ID>` email-to-task capture with AI summary + fallback
- Add Ctrl-T=catch fzf keybind in email picker
- Update help text, doctor output, and MASTER-DISPATCHER-GUIDE
- Add 31 tests (22 ai-switch + 9 catch) — all passing

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Automated e2e suite (38 tests): file structure, routing, status,
  switch, toggle, extra_args, catch with mocked AI, help, docs, fzf
- Interactive dogfooding suite (14 tests): guided QA with expected
  behavior comparison and judgment logging

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…+ em catch

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Data-Wise Data-Wise merged commit 177e6c4 into dev Feb 18, 2026
1 check passed
Data-Wise pushed a commit that referenced this pull request Feb 18, 2026
- Update v7.2.0 → v7.2.1 across 14 doc files
- Fix em command count 18 → 20 in refcard
- Fix test file count 134 → 137 in CLAUDE.md
- Add [Unreleased] changelog entry for em ai/catch features
- Update .STATUS with merged PR #400

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Data-Wise Data-Wise deleted the feature/em-ai-improvements branch February 21, 2026 18:26
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