Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Converting to fx drops a tool result when its user message also has text #102

Open

Description

@JaynouOliver

What happened?

txcript continue <id> --with fx loses a tool result when the user message that carries it also has text. The call is written with tool_results: [] and the text becomes the next prompt. I expected the result to stay with its call.

How to reproduce

Save the four-line session below as ~/.claude/projects/-work-repo/11111111-2222-4333-8444-555555555555.jsonl, then:

txcript continue 11111111 --with fx --out /tmp/fx-out

In the written events.jsonl the cargo test call has no result, and 2 failed is nowhere in the file.

Versions

  • txcript: main at c60e686 (0.14.4)
  • Agents and their versions: Claude Code session as source, fx as target (fx not run)
  • Operating system: Linux

Session file:

{"type": "user", "uuid": "u1", "parentUuid": null, "sessionId": "11111111-2222-4333-8444-555555555555", "cwd": "/work/repo", "timestamp": "2026-01-02T03:04:05.000Z", "message": {"role": "user", "content": "run the tests"}}
{"type": "assistant", "uuid": "a1", "parentUuid": "u1", "sessionId": "11111111-2222-4333-8444-555555555555", "cwd": "/work/repo", "timestamp": "2026-01-02T03:04:06.000Z", "message": {"role": "assistant", "content": [{"type": "tool_use", "id": "t1", "name": "Bash", "input": {"command": "cargo test"}}]}}
{"type": "user", "uuid": "u2", "parentUuid": "a1", "sessionId": "11111111-2222-4333-8444-555555555555", "cwd": "/work/repo", "timestamp": "2026-01-02T03:04:07.000Z", "message": {"role": "user", "content": [{"type": "tool_result", "tool_use_id": "t1", "content": "2 failed"}, {"type": "text", "text": "fix the parser test first"}]}}
{"type": "assistant", "uuid": "a2", "parentUuid": "u2", "sessionId": "11111111-2222-4333-8444-555555555555", "cwd": "/work/repo", "timestamp": "2026-01-02T03:04:08.000Z", "message": {"role": "assistant", "content": [{"type": "text", "text": "Fixing it."}]}}

Activity

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