fix(cli): keep the commit-session trailer dedup working on git 2.39
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 84/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- git, typescript
- Domain
- cli, testing-qa
Research direction
Run cd cli && npx vitest run tests/contexts/telemetry/domain/formats/commit-session-trailer.integration.test.ts and inspect the fixture and trailer-writing delegate around line 72. Ensure the fixture or delegate handles a missing trailing newline so two passes leave one trailer, then confirm the integration test passes on git 2.39.2.
Written by the indexing model from the issue text.
Description
Observed
cli/tests/contexts/telemetry/domain/formats/commit-session-trailer.integration.test.ts:72 ("never doubles a trailer a prior run already wrote") runs the trailer-writing delegate twice and asserts the trailer token appears once.
On git 2.39.2 the test fails with AssertionError: expected 2 to be 1: the fixture message has no trailing newline, so git appends the trailer without a blank-line separator; the second pass then sees no trailer block and --if-exists doNothing appends again. The same delegate on a message ending in a newline dedupes correctly.
Reproduction
git --version-> 2.39.2 (or any version sharing this behavior).cd cli && npx vitest run tests/contexts/telemetry/domain/formats/commit-session-trailer.integration.test.ts-> fails alone, deterministic, also underenv -i.- The same test passes on newer git (CI's).
Impact
The suite reports one failure per run on machines with this git, masking real regressions in the file and eroding trust in the suite's signal. The test and its source are byte-identical to next, so the failure predates any recent change.
Suggested fix
End the fixture message with a newline, or have the delegate normalize the message before appending.
Standalone repro verified on the machine that reported it: message without trailing newline doubles the trailer; message with one dedupes.
- Dominant language
- TypeScript
- Stars
- 481
- Forks
- 45
- Avg merge
- 10h 31m
- Merged PRs (30d)
- 98
Getting set up
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ai-driven-dev/framework
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
ai-driven-dev/framework#952 ·
Maintainers usually reply within 1 day
-
refactor(aidd-orchestrator): the check zone says when to stop, and reviews its axes in one roundOpen
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
ai-driven-dev/framework#887 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
ai-driven-dev/framework#873 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
ai-driven-dev/framework#625 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
ai-driven-dev/framework#467 · 1 comment ·
Maintainers usually reply within 1 day
All issues in ai-driven-dev/framework
Similar issues
-
type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 95/100
lingdojo/kana-dojo#31593 · 1 comment · 5 reactions ·
Maintainers usually reply within 1 day
-
bug
Difficulty 1/5 1-3 hours Newbie friendliness 90/100
apache/fineract-backoffice-ui#697 ·
Maintainers usually reply within 1 day
-
good first issue hacktoberfest help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
libredb/libredb-studio#1291 · 1 comment ·
Maintainers usually reply within 1 day
-
bug P1
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Yeachan-Heo/gajae-code#6295 · 1 comment ·
Maintainers usually reply within 1 day