Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ On first run, Forge will guide you through setting up your AI provider credentia
# Configure your provider credentials interactively
forge provider login

# Then start Forge
# Then start Forge (Avoid running in large directories like ~ or /)
forge
```
That's it! Forge is now ready to assist you with your development tasks.
Expand Down
7 changes: 6 additions & 1 deletion shell-plugin/lib/dispatcher.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,12 @@ function _forge_action_default() {
fi

# Execute the forge command directly with proper escaping
_forge_exec_interactive -p "$input_text" --cid "$_FORGE_CONVERSATION_ID"
# Capture last command from history for context
local last_cmd=$(fc -ln -1)

# Execute the forge command with last command context
_forge_exec_interactive -p "$input_text" --cid "$_FORGE_CONVERSATION_ID" --context "Last command: $last_cmd"


# Start background sync job if enabled and not already running
_forge_start_background_sync
Expand Down
Loading