Skip to content

Polish Private Context output and receipt closure - #35

Merged
gavinjudd merged 6 commits into
mainfrom
fix/v0.4.1-private-context-output
Aug 25, 2026
Merged

Polish Private Context output and receipt closure#35
gavinjudd merged 6 commits into
mainfrom
fix/v0.4.1-private-context-output

Conversation

@gavinjudd

Copy link
Copy Markdown
Owner

Closes the v0.4.0 Private Context presentation defects without changing scoring, public winner selection, evidence, or private data boundaries.

Key changes:

  • closes default and opt-in private aggregate support
  • removes numeric private quality scores from ordinary surfaces while preserving labeled details and JSON
  • settles transient progress before every persistent boundary
  • centralizes deterministic count grammar and clarifies the two authorization flows
  • prepares gitmog 0.4.1 and its exact package/CI acceptance matrices

Verification:

  • complete public verify passed on Node 24.19.0
  • packed acceptance passed on Node 22.23.2, 24.19.0, and 26.7.0
  • PTY matrix passed at 60, 80, and 100 columns with color, no color, no motion, and piped output
  • canonical JSON SHA-256 ed5b10d16ce02f72e6335a997cf1409f71a3377c8d481f0754bad31f6178c08d
  • canonical battle SHA-256 36361adb2e14d3a89cf43b473940ec8247be950e47116b0ef03c7ad58b66cf12
  • bounded live selected-repository acceptance passed with unchanged persistent cache fingerprint

Publication remains separately gated; this PR does not publish npm or create a release.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

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: 24c698d21a

ℹ️ 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 thread packages/cli/src/share.ts
: [
`Mixed context: @${terminalSafe(result.subject)} included ${String(result.repositorySelection.analyzedRepositories)} selected private repos.`,
`Mixed context: @${terminalSafe(result.subject)} included ${selectedPrivateRepositoryText(result)}.`,
`${privateQualitySampleText(result)}.`,

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 Keep mixed X shares within the character limit

When Private Context belongs to a participant with a long but valid GitHub handle, the additional quality-sample line can make the mandatory disclosure plus canonical command exceed 280 characters. For two 39-character handles and maximum bounded sample counts, these required lines are 296 characters, so renderX reaches its existing overflow throw and the CLI returns a generic internal error for --private-context --share x; provide a shorter disclosure fallback rather than making this valid invocation fail.

Useful? React with 👍 / 👎.

["ci-repositories", "sustained-repositories"].includes(receipt.metric),
)
.map((receipt) => receipt.claim),
`${privateQualitySampleText(input.privateContext)}.`,

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 Include the sample summary in insufficient exports

When no supported private source qualifies, status is insufficient, so the preceding ternary branch bypasses this newly added sample summary entirely. As a result, HTML and SVG are the only updated ordinary mixed-context surfaces that omit the repository/file/coverage scope in this common limitation case, while terminal, card, and share output still show the zero-sized sample; add the summary to the insufficient branch as well.

Useful? React with 👍 / 👎.

@gavinjudd
gavinjudd merged commit 512d3e5 into main Aug 25, 2026
20 checks 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.

1 participant