[Bug] The status bar truncates mid-word at exactly 80 columns
Description
development-mode-indicator.tsx runs a careful segment-drop-order budget against actualWidth but it's rendered inside a wrapper with marginLeft={3} in user-input.tsx, and the budget math never subtracts that margin. At exactly 80 columns, the status line silently overflows by those 3 unaccounted columns, cutting text off mid-word instead of cleanly dropping an optional segment.
Parent: #907
Steps to Reproduce
- Use a terminal that's exactly 80 columns wide (the most common default).
- Cycle to auto-accept mode (Shift+Tab) and give the session a moderately long name (
/rename <long name>). - Look at the status bar.
Expected Behavior
Either the full text fits, or an optional segment is cleanly dropped per the component's own documented priority order.
Actual Behavior
Text truncates mid-word: auto-accept mode on renders as auto-accept mode o, and a long session name loses its last character too.
Recording
Root Cause
source/components/development-mode-indicator.tsx's budget math computes against actualWidth directly; source/components/user-input.tsx renders it inside <Box marginLeft={3}>, a 3-column offset the budget never accounts for.
Suggested Fix
Subtract the wrapper's marginLeft from the budget (actualWidth - 3), or pass the already-reduced width in as a prop.
Additional Context
- [x] I have searched existing issues to ensure this is not a duplicate
- [x] I can reproduce this issue consistently
- [x] This issue occurs on the latest
main
hey @akramcodez, could you assign this to me ?