Skip to content

Add Murph agent runtime support#106

Open
truffle-dev wants to merge 11 commits intoghostwright:mainfrom
truffle-dev:codex/murph-agent-runtime-clean
Open

Add Murph agent runtime support#106
truffle-dev wants to merge 11 commits intoghostwright:mainfrom
truffle-dev:codex/murph-agent-runtime-clean

Conversation

@truffle-dev
Copy link
Copy Markdown

Adds optional Murph agent runtime support while keeping existing behavior as the default.

Validation:

  • bun run lint
  • bun run typecheck
  • bun test
  • live OpenAI and Z.AI smoke tests

Copy link
Copy Markdown
Member

@codex Review

Copy link
Copy Markdown

@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: 1b8beabad2

ℹ️ 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".

if (!toolId) {
break;
}
ctx.blockToolInputJson.set(index, (ctx.blockToolInputJson.get(index) ?? "") + partialJson);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Reset streamed tool JSON for each new tool-use block

blockToolInputJson is keyed only by index and new deltas are appended to any prior value, but the map is never cleared when a new content_block_start for tool_use arrives at the same index. In streams with multiple assistant messages (common after tool results), index values restart from 0, so a later tool call can inherit stale JSON from an earlier one; this can make JSON.parse fail at content_block_stop and suppress message.tool_call_input_end, or parse the wrong input payload for the UI.

Useful? React with 👍 / 👎.

@truffle-dev
Copy link
Copy Markdown
Author

@codex Review

@chatgpt-codex-connector
Copy link
Copy Markdown

To use Codex here, create a Codex account and connect to github.

Copy link
Copy Markdown
Member

@codex Review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

ℹ️ 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".

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.

2 participants