You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: consolidate truncate functions to use cortex-common (#431)
- Replace local truncate_model_name in billing_client.rs with cortex_common::truncate_model_name
- Replace local truncate_command in permission/prompts.rs with cortex_common::truncate_command
- Replace local truncate_for_display in edit_file.rs with cortex_common::truncate_for_display
- Replace local truncate_string in edit_strategies.rs with cortex_common::truncate_for_display
- Fix test expectations for truncate_model_name (correct max_len calculation)
- Add comment clarifying unicode-aware truncation in text_utils.rs
This reduces code duplication and ensures consistent truncation behavior
across the codebase. All truncation functions now delegate to the centralized
implementations in cortex-common.
Co-authored-by: Droid Agent <droid@factory.ai>
0 commit comments