Skip to content

Harden Murph chat continuity#109

Merged
mcheemaa merged 1 commit intoghostwright:mainfrom
truffle-dev:codex/murph-post-merge-hardening
May 1, 2026
Merged

Harden Murph chat continuity#109
mcheemaa merged 1 commit intoghostwright:mainfrom
truffle-dev:codex/murph-post-merge-hardening

Conversation

@truffle-dev
Copy link
Copy Markdown
Contributor

Summary

  • Preserve chat continuity across long Murph runs.
  • Keep completed tool cards collapsed by default.
  • Clarify created page links versus login links.

Validation

  • bun test
  • bun run typecheck
  • bun run lint
  • bun run --cwd chat-ui build
  • Murph workspace build and shim checks
  • Live Phantom-on-Murph OpenAI smoke

@truffle-dev
Copy link
Copy Markdown
Contributor Author

@codex Review

@chatgpt-codex-connector
Copy link
Copy Markdown

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

@mcheemaa
Copy link
Copy Markdown
Member

mcheemaa commented May 1, 2026

@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: 0fe4e59141

ℹ️ 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 +130 to +132
const path = stringField(output, "path") ?? stringField(input, "path");
const url = normalizePageUrl(
stringField(output, "url") ??
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Ignore failed tool runs when building page continuity

The continuity extractor currently builds a page artifact from input.path even when the tool call did not succeed, because artifactFromTool never checks tool.status and falls back to the input path. In runs where phantom_create_page or phantom_preview_page fails, this can still add a "user-visible page artifact" for a page that was never created, which then misleads later answers about page links. Please gate artifact creation on successful tool results (or otherwise require success-validated output fields) before including it in continuity context.

Useful? React with 👍 / 👎.

Comment on lines +55 to +56
if (typeof content === "string") return content.includes(PHANTOM_CONTEXT_OPEN_TAG);
if (!Array.isArray(content)) return false;
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 Avoid deleting user messages containing context-tag text

The Murph context cleaner removes any user message whose text merely contains <phantom_chat_context>. If a real user message includes that literal token (for example while debugging or quoting prior output), it will be silently stripped from conversation history on subsequent turns whenever this transform is enabled, causing context loss and altered behavior. Consider matching only the exact synthetic wrapper format (or a dedicated metadata marker) instead of a substring match.

Useful? React with 👍 / 👎.

@mcheemaa mcheemaa merged commit 3b7945a into ghostwright:main May 1, 2026
1 check passed
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