- remove departure_date from update_trip_field enum
- remove departure_date handling in _build_trip_field_update
- update tool descriptions to warn model date is immutable
replace numbered trip list with trip cards for driver delete/modify/list
- initiate_trip_action and check_driver_trips now send format_trip_card
per trip (like passenger search) instead of a numbered text list
- Driver replies to a trip card to delete (bypass LLM) or modify
(set session, route to LLM for update_trip_field)
- Remove delete_trip_by_number / modify_trip_by_number handlers
and their tool schemas (replaced by card reply flow)
- Remove dead interactive list code (_handle_trip_interactive_reply)
- Clean up trip_selection.py: remove unused builders/parsers
- Update list_driver_trips query to include drivers(*)
- create_booking_lead -> select_trip across tools, schemas, handlers, prompts
- booking_leads table -> trip_selections (with migration)
- update Arabic notifications and prompts to reflect 'interest' not 'booking'
- add selection_count to trip cards and summaries
- update README and falsa_info.md to reflect new coordination model
switch to driver immediately if account exists; only ask name on first time
- prompts/system_new_user.md: try switch_to_driver first, only collect
name on error (no account yet)
- prompts/system_passenger.md: same fix — previously told AI to always
ask for name before switching
Auto-detect trip card replies by context_message_id, bypassing AI for reliable trip selection
When a passenger replies to a trip card via WhatsApp's reply feature,
the context_message_id already identifies which trip was selected.
Instead of relying on the LLM to interpret the reply text (which
fails for short replies like '.'), detect the trip card reply
automatically and call create_booking_lead directly.
compress tool descriptions and deduplicate error string
- Add suppress_llm_reply flag to ToolResult (not serialized to LLM)
- search_trips handler now sends a 'choose a card' prompt and sets
suppress_llm_reply=True when trips are found
- Orchestrator returns empty string immediately when flag is set,
avoiding a second LLM call
- Guard conversation service against sending empty replies
- Update system prompt and tool schema to reflect new behavior
- Send each trip as a separate WhatsApp message with trip_id metadata
- Resolve trip_id automatically when customer replies to a trip card
- Store phone_number on customer upsert
- Parse context_message_id and phone_number from inbound messages
- Add get_message_by_whatsapp_id to repository
- Translate driver booking notification to Arabic
- Increase conversation context window to 8 messages
refactor: consolidate and deduplicate prompt files
- system.md becomes the base prompt with shared instructions + operational context (date, day, timezone)
- Mode files (passenger, new_user, driver) now contain only mode-specific instructions
- _system_prompt concatenates base + mode prompt at runtime
- Adds current day (day_name) to operational context