Skip to content

[Bug]: Failed file_change turn items omit error/denial output in orchestration_v2_projection_turn_items #47135

Done

Description

@Luzivog

Note

Filed with agent assistance (Gemini 4 Neon on Antigravity ACP in T3 Code) from direct SQLite/transcript observations on a stock T3 Code nightly install.

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

  1. Run a turn on T3 Code (0.1.14-nightly.20261201.5530) using either the Antigravity ACP provider or Claude Code provider.
  2. Trigger a failed file-edit tool call (for example: an edit_file target-not-found error, a missing-file edit, or a PreToolUse hook denial on write_file).
  3. Inspect the resulting row in statev2.sqlite (orchestration_v2_projection_turn_items where type = 'file_change' AND status = 'failed').

Expected behavior

Failed file_change turn items should include the tool failure/error message (e.g., an output or error field, matching dynamic_tool failed items which record output) so the thread timeline, API subscribers, and post-mortem tooling can see why the file edit failed (target mismatch vs file missing vs PreToolUse hook denial).

Actual behavior

Across all 1,654 failed file_change rows observed in statev2.sqlite (1,583 antigravity, 71 claudeAgent), 0 rows include any error/output/detail field. The payload_json keys are limited to:

id, threadId, runId, nodeId, providerThreadId, providerTurnId, nativeItemRef,
parentItemId, ordinal, status, title, startedAt, completedAt, updatedAt, type, fileName

By contrast, failed dynamic_tool rows in the same table store toolName, input, and output.

Impact

Minor bug or occasional failure

Version or commit

0.1.14-nightly.20261201.5530

Environment

Linux (Ubuntu, x86_64), T3 Code 0.1.14-nightly.20261201.5530, Antigravity ACP and Claude Code 2.1.333 providers.

Logs or stack traces

Sanitized sample row from orchestration_v2_projection_turn_items:

{
  "id": "turn-item:provider:antigravity:native-item:...",
  "status": "failed",
  "title": "Changed files",
  "type": "file_change",
  "fileName": "/path/to/worktree/src/example.py"
}

(No error, output, or detail field is present; the failure text such as tool call denied by pre-tool hook: ... or target content not found in the file only appears in the provider's raw local transcript.)

Workaround

Parse the provider's native transcript JSONL files directly on disk and match by tool call ID to recover failure reasons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions