Repository navigation
Fix: Compact inbound metadata - #72749
sahilsatralkar wants to merge 1 commit into
Conversation
Greptile SummaryThis PR adds an optional Confidence Score: 4/5Safe to merge; findings are P2 quality/coverage concerns with no blocking defects. Both findings are P2: a duplicate type definition that must be kept manually in sync, and a missing test/documentation for the side-effect that src/auto-reply/reply/strip-inbound-meta.ts —
|
70d8bac to
ab9faa5
Compare
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. Close this PR as superseded: it usefully targets the inline inbound-metadata problem, but the same central issue now has a cleaner proof-positive and mergeable path in #90745, while this branch is conflicting, lacks after-fix real behavior proof, and adds a separate config/product surface. Canonical path: The related issue explicitly reports Telegram inline Conversation/Sender metadata degrading model comprehension and lists both this PR and #89428 as closing references; issue comments also point to hidden runtime context as the preferred fix direction. So I’m closing this here and keeping the remaining discussion on #90745 and #89428. Review detailsBest possible solution: Use #90745 as the canonical landing path for keeping inbound metadata available through hidden runtime context rather than adding a parallel compact prompt-format config. Do we have a high-confidence way to reproduce the issue? Yes, at source level. Current main still emits full Conversation/Sender metadata blocks and re-prepends Is this the best way to solve the issue? No. The compact config is a plausible mitigation, but the hidden-runtime-context approach in #90745 is narrower because it solves the inline metadata problem without creating a parallel prompt-format configuration surface. Security review: Security review cleared: The diff changes TypeScript prompt formatting, config schema/help, docs, and tests; it does not add dependencies, workflows, package resolution, secrets, permissions, network calls, or execution surfaces. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against ec737ee74d9b. |
ab9faa5 to
92944b2
Compare
|
ClawSweeper PR egg 🎁 Pass real behavior proof to wake the egg and unlock a hatchable treat. Where did the egg go?
|
|
Adding wire-level evidence and a related deployment scenario in support of this PR. Verified on OpenClaw 2026.5.7: the The wrapper has no current opt-out path for this channel in 2026.5.7, which is the gap this PR addresses for the direct-Telegram case. The same reasoning applies one-to-one to Additional failure mode not yet documented in the linked issues: the wrapper can become self-reinforcing through the memory plugin chain. We observed the following sequence on a pi-runtime agent using a verbose chain-of-thought model (codex/gpt-5.5 family) on the
This is a substrate-level cause for a plugin-layer symptom that's otherwise hard to root-cause. A Concrete ask: in addition to the Happy to provide additional Langfuse trace excerpts on request. |
|
This pull request has been automatically marked as stale due to inactivity. |
|
ClawSweeper applied the proposed close for this PR.
|
Summary
Describe the problem and fix in 2–5 bullets:
If this PR fixes a plugin beta-release blocker, title it
fix(<plugin-id>): beta blocker - <summary>and link the matchingBeta blocker: <plugin-name> - <summary>issue labeledbeta-blocker. Contributors cannot label PRs, so the title is the PR-side signal for maintainers and automation.Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
Root Cause (if applicable)
Regression Test Plan (if applicable)
For bug fixes or regressions, name the smallest reliable test coverage that should catch this. Otherwise write
N/A.User-visible / Behavior Changes
New optional config: messages.inboundMetadataMode: "compact-direct".
Default behavior remains unchanged.
Diagram (if applicable)
For UI changes or non-trivial logic flows, include a small ASCII diagram reviewers can scan quickly. Otherwise write
N/A.Security Impact (required)
Repro + Verification
Environment
Steps
Expected
Actual
Evidence
Attach at least one:
Human Verification (required)
What you personally verified (not just CI), and how:
src/plugins/cli.test.ts src/config/schema.help.quality.test.ts
scope review finding.
Review Conversations
If a bot review conversation is addressed by this PR, resolve that conversation yourself. Do not leave bot review conversation cleanup for maintainers.
Compatibility / Migration
Risks and Mitigations
List only real risks for this PR. Add/remove entries as needed. If none, write
None.