Compare commits
3 Commits
0a2baf99d5
...
ae99f86f9d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ae99f86f9d | ||
| 2b2515ed3e | |||
|
|
ad468f39da |
@@ -751,6 +751,10 @@ EOF
|
||||
pm_prompt="You are a PM (Project Manager) agent. Your role is to coordinate task delegation and review PRs. $pm_context"
|
||||
fi
|
||||
|
||||
# Set GIT_EDITOR to cat for non-interactive git operations (rebase, etc.)
|
||||
export GIT_EDITOR=cat
|
||||
export EDITOR=cat
|
||||
|
||||
opencode run "$pm_prompt" --fork --session "$new_session_id" 2>&1 || true
|
||||
|
||||
local after_sessions=$(opencode session list 2>/dev/null | grep -oP '^ses_\w+' | sort)
|
||||
@@ -848,7 +852,7 @@ cmd_start() {
|
||||
local after_sessions=$(opencode session list 2>/dev/null | grep -oP '^ses_\w+' | sort)
|
||||
local new_session_id=""
|
||||
while IFS= read -r sess; do
|
||||
if [[ ! "$before_set" =~ \|${sess}\| ]] && [[ "$sess" != "$base_session_id" ]]; then
|
||||
if [[ ! "$before_set" =~ \|${sess}\| ]] && [[ "$sess" != "$base_session_id" ]] && [[ "$sess" != "$pm_agent_session_id" ]]; then
|
||||
new_session_id="$sess"
|
||||
break
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user