[Feature & Refactor] Add feishu CLI and enhance context compression#15
Conversation
…essing - physically remove _DEFAULT_ALIASES; ToolRegistry now only resolves via exact/normalized(canonical) matches, unknown tools get structured rejection with suggestions and recovery_hint - router: structured JSON unknown-tool response instead of bare string, dedupe repeated unknown-tool handling branch - gateway_tool: expose real registered platform actions in prompts and capability summaries instead of domain-only hints; unify PLATFORM_CONNECT_ACTIONS as single source of truth for schema enum, namespace guard and prompt text - engine/prompts: clarify platform_connect vs platform_action namespace boundary, strengthen anti-guessing instructions - slash_handlers: render actions view from platform_action_capability_summary - tests: rewrite alias-based tests to assert exact-name execution and structured unknown-tool retry behavior; add coverage for wrong-namespace/unknown-action/unknown-platform responses
There was a problem hiding this comment.
Code Review
This pull request introduces the App Connector feature to LeapFlow, enabling integrations with external platforms like Feishu/Lark via REST or CLI backends. It includes adaptive context compression, terminal-aware TUI modal resizing, idempotency guards for side-effect actions, and a CLI help-based command discovery engine. The review feedback highlights several critical improvements: preventing false positives in command parsing (e.g., matching /apple as /app), resolving potential subprocess leaks on timeout in the CLI backend, avoiding TypeError exceptions when tool_calls is explicitly None, and ensuring the CLI help parser does not terminate prematurely on blank lines.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
New Features
Improvements & Bug Fixes
/applefor/app).tool_callsHandling: Fixed aTypeErrorexception whentool_callsis explicitly set toNone.