Skip to content

fix(analyze): ACP-only path, tape, dedupe ChatModel callbacks#31

Open
STRRL wants to merge 1 commit intomasterfrom
tape-composer-2.0
Open

fix(analyze): ACP-only path, tape, dedupe ChatModel callbacks#31
STRRL wants to merge 1 commit intomasterfrom
tape-composer-2.0

Conversation

@STRRL
Copy link
Owner

@STRRL STRRL commented Mar 20, 2026

  • Drop eino filesystem middleware so ToolsNode never runs; ACP executes tools
  • acpToolCallingModel reports IsCallbacksEnabled to skip callbackInjectedModel
  • Wire tape JSONL + SlogEinoHandler on analyze; remove local backend adapter
  • go mod tidy (drop unused eino-ext/local backend)

Made-with: Cursor

- Drop eino filesystem middleware so ToolsNode never runs; ACP executes tools
- acpToolCallingModel reports IsCallbacksEnabled to skip callbackInjectedModel
- Wire tape JSONL + SlogEinoHandler on analyze; remove local backend adapter
- go mod tidy (drop unused eino-ext/local backend)

Made-with: Cursor
@STRRL STRRL marked this pull request as ready for review March 20, 2026 05:08
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 55bb3dd419

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +46 to +47
sc := bufio.NewScanner(f)
for sc.Scan() {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Support JSONL entries larger than scanner token limit

scanMaxID uses bufio.Scanner with the default 64 KiB token size, so reopening .tape.jsonl will fail with bufio.Scanner: token too long once any single tape line exceeds that size. This is likely with large tool outputs, and after that OpenJSONL fails and workspace analyze cannot start for that workspace until the tape is manually edited.

Useful? React with 👍 / 👎.

if msg != nil {
h.write(Message(messageToMap(msg), h.baseMeta()))
}
runData := map[string]any{"status": "ok"}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Mark stream runs failed when callback stream read errors

In OnEndWithStreamOutput, stream read errors only log and break the receive loop, but the handler still emits a run event with "status": "ok". When ACP streaming fails mid-response (transport/process errors), tape records the run as successful, which makes debugging and run auditing inaccurate.

Useful? React with 👍 / 👎.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant