Show Current Working Directory in AI Composer Before Command Execution

Problem:

  • The AI Composer frequently operates from incorrect/inconsistent directories
  • Directory context doesn’t persist reliably between mini-terminal sessions
  • Users waste AI Fast requests on directory navigation and corrections
  • No clear indication of which directory the Composer is operating from before executing commands

Proposed Solution:

  1. Display the current working directory prominently before the AI Composer executes any directory-related or terminal commands
  2. Maintain consistent directory context between mini-terminal sessions
  3. Add visual indication of directory changes

Example Flow:

AI Composer: [Current Directory: ~/projects/SPTax]
Generating command...

Benefits:

  • Reduces wasted AI Fast requests on directory correction
  • Improves user experience by providing clear directory context
  • Prevents frustration from repeated directory navigation issues
  • Allows users to verify correct directory before command execution
2 Likes