Skip to content

Fix#664

Open
mike1858 wants to merge 1 commit into
mainfrom
prompts/fix-prompts
Open

Fix#664
mike1858 wants to merge 1 commit into
mainfrom
prompts/fix-prompts

Conversation

@mike1858
Copy link
Copy Markdown
Member

@mike1858 mike1858 commented Apr 6, 2026

No description provided.

BenIsLegit pushed a commit to BenIsLegit/tweakcc-fixed that referenced this pull request Apr 18, 2026
…contexts

PR Piebald-AI#664's backslash-doubler runs before every delimiter branch, including
backticks. For template-literal content, escapeDepthZeroBackticks is
already parity-aware for backticks, so pre-doubling turns `\`find\`` into
`\` + closing backtick + `find`, terminating the template early and
breaking cli.js parsing with "Expected CommonJS module to have a function
wrapper" on load. Limit doubling to " and ' contexts.
Affects Piebald-AI#660.
BenIsLegit pushed a commit to BenIsLegit/tweakcc-fixed that referenced this pull request Apr 18, 2026
…doubling fix

The two backtick-context tests from PR Piebald-AI#664 encoded the 'literal text' interpretation of prompt content, which doesn't match tweakcc's data format (markdown files store JS-source-escaped form, extracted from cli.js template literals). The scoped-doubling fix in a3c2f84 preserves already-escaped backticks; update assertions to match.
BenIsLegit pushed a commit to BenIsLegit/tweakcc-fixed that referenced this pull request Apr 18, 2026
…contexts

PR Piebald-AI#664's backslash-doubler runs before every delimiter branch, including
backticks. For template-literal content, escapeDepthZeroBackticks is
already parity-aware for backticks, so pre-doubling turns `\`find\`` into
`\` + closing backtick + `find`, terminating the template early and
breaking cli.js parsing with "Expected CommonJS module to have a function
wrapper" on load. Limit doubling to " and ' contexts.
Affects Piebald-AI#660.
BenIsLegit pushed a commit to BenIsLegit/tweakcc-fixed that referenced this pull request Apr 18, 2026
…doubling fix

The two backtick-context tests from PR Piebald-AI#664 encoded the 'literal text' interpretation of prompt content, which doesn't match tweakcc's data format (markdown files store JS-source-escaped form, extracted from cli.js template literals). The scoped-doubling fix in a3c2f84 preserves already-escaped backticks; update assertions to match.
BenIsLegit pushed a commit to BenIsLegit/tweakcc-fixed that referenced this pull request Apr 18, 2026
Document that this is a temporary tweakcc fork while upstream catches
up. Lists the base version (4.0.11 at upstream 2e1d03e / 2.1.113), the
four cherry-picked open upstream PRs (Piebald-AI#601, Piebald-AI#646, Piebald-AI#655, Piebald-AI#664) with
credits, and the four fork-specific fixes added on top (scoped
backslash-doubling, backtick test realignment, 2.1.113 regex updates,
verbose-destructure guard). Points readers at the upstream README for
full docs.
BenIsLegit pushed a commit to BenIsLegit/tweakcc-fixed that referenced this pull request Apr 18, 2026
The fix list mentioned "PR Piebald-AI#664" three times in prose without linking,
and the fork commit hashes were plain inline code. Hyperlink each
"PR Piebald-AI#664" to the upstream PR and each fork commit hash to its GitHub
page so readers can click through to the full diff. Also add a cross-
link from bcce70a to the originating issue Piebald-AI#660.
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