Codex mid-turn delivery deletes input before the steer is accepted
This commit is contained in:
@@ -168,14 +168,14 @@ func (m *Manager) dropSnapshots(repo, taskID string) error {
|
||||
|
||||
func (m *Manager) afterTool(l *live) claude.HookFunc {
|
||||
return func(ctx context.Context, input json.RawMessage) (map[string]any, error) {
|
||||
text := m.deliverMidTurn(ctx, l)
|
||||
if text == "" {
|
||||
mt := m.deliverMidTurn(ctx, l)
|
||||
if mt.text == "" {
|
||||
return map[string]any{}, nil
|
||||
}
|
||||
return map[string]any{
|
||||
"hookSpecificOutput": map[string]any{
|
||||
"hookEventName": "PostToolUse",
|
||||
"additionalContext": text,
|
||||
"additionalContext": mt.text,
|
||||
},
|
||||
}, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user