Skip to content

[3940 by GPT-6.2 Sol] Agent summaries link to /home/node/workspace paths (404 on GitHub); rewrite to PR-head blob links - #3943

Merged
integry merged 2 commits into
3758-epic-runtime-abstraction-sc0from
3940/gpt-6.2-sol-agent-summaries-link-to-h-20261130-2329-3qd
Dec 1, 2026
Merged

integry merged 2 commits into
3758-epic-runtime-abstraction-sc0from
3940/gpt-6.2-sol-agent-summaries-link-to-h-20261130-2329-3qd

Conversation

@propr-dev

@propr-dev propr-dev Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #3940

Branch: 3940/gpt-6.2-sol-agent-summaries-link-to-h-20261130-2329-3qd
Commits: ✅ Changes committed (abef467)


AI Processing Completed

Execution Details:

Summary:
Implemented #3940. Task summaries, follow-up comments, and review digests now link workspace files to the exact GitHub commit, including fork PR heads. Line numbers and ranges become GitHub anchors, filenames with spaces or encoded characters are handled, and outside-workspace links render as inline code.

Agent prompts now ask for repository-relative file citations. Type checking and 471 tests passed, and a Chromium preview verified the rendered follow-up summary.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (23 files)
    • packages/core/src/agents/runtime/agentRunSpec.ts (+2/−1)
    • packages/core/src/claude/prompts/promptGenerator.ts (+2/−1)
    • packages/core/src/goals.ts (+2/−0)
    • packages/core/src/utils/github/logFiles.ts (+6/−3)
    • packages/core/src/workflow/reviewDigestMarkdown.ts (+8/−6)
    • packages/shared/src/agentSummary.ts (added, +145/−0)
    • packages/shared/src/index.ts (+1/−0)
    • src/jobs/followupHandoffMessages.ts (+6/−2)
    • src/jobs/goalPullRequestCompletion.ts (+9/−3)
    • src/jobs/issueJobHelpers.ts (+4/−3)
    • src/jobs/issueJobPostProcessing.ts (+2/−1)
    • src/jobs/issueJobPush.ts (+4/−4)
    • src/jobs/mergeConflictAgentRunner.ts (+1/−0)
    • src/jobs/mergeConflictHelpers.ts (+4/−2)
    • src/jobs/prCommentJobUtils.ts (+2/−1)
    • src/jobs/prCommentPostExecution.ts (+5/−0)
    • src/jobs/prCommentReviewJob.ts (+2/−1)
    • src/jobs/prCompletionComment.ts (+5/−2)
    • src/jobs/prGitTarget.ts (+10/−4)
    • src/jobs/prPublication.ts (+1/−0)
    • src/jobs/prReviewRunner.ts (+7/−3)
    • src/jobs/processGoalJob.ts (+1/−1)
    • src/jobs/reviewPromptBuilder.ts (+2/−1)
  • Low risk (4 files)
    • test/agentSummaryWorkspaceLinks.test.ts (added, +68/−0)
    • test/prCompletionCommentVisualPreview.test.ts (+3/−0)
    • test/prReviewRunnerBudget.test.ts (+18/−1)
    • test/reviewDigestPublication.test.ts (+16/−0)

Diff size: 27 files changed, +336/−40 lines

View task for the run's logs and conversation.


This PR was created automatically by ProPR after processing issue #3940.


💡 Need changes?

Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!


Visual preview

Follow-up summary file citations

Follow-up summary file citations

The rendered follow-up comment links repository files to the published commit and displays the outside-workspace test log as inline code.

Original unavailable: managed storage is unavailable or the upload has expired.

Implemented #3940. Task summaries, follow-up comments, and review digests now link workspace files to the exact GitHub commit, including fork PR heads. Line numbers and ranges become GitHub anchors, filenames with spaces or encoded characters are handled, and outside-workspace links render as inline code.

Agent prompts now ask for repository-relative file citations. Type checking and 471 tests passed, and a Chromium preview verified the rendered follow-up summary.

ProPR-Agent: codex/gpt-6.2-sol
@propr-dev propr-dev Bot changed the title 🔨 [3940 by GPT-6.2 Sol] Agent summaries link to /home/node/workspace paths (404 on GitHub); rewrite to PR-head blob links ✅ [3940 by GPT-6.2 Sol] Agent summaries link to /home/node/workspace paths (404 on GitHub); rewrite to PR-head blob links Dec 1, 2026

integry commented Dec 1, 2026

Copy link
Copy Markdown
Owner

/review

@propr-dev propr-dev Bot changed the title ✅ [3940 by GPT-6.2 Sol] Agent summaries link to /home/node/workspace paths (404 on GitHub); rewrite to PR-head blob links 🔨 [3940 by GPT-6.2 Sol] Agent summaries link to /home/node/workspace paths (404 on GitHub); rewrite to PR-head blob links Dec 1, 2026
@propr-dev

propr-dev Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

This PR centralizes workspace citation rewriting and integrates it across publication paths. It needs a localized correctness fix before merge.

✅ Fork-aware citations — Review publication passes the reviewed head SHA and head repository to the rewriter, with a focused test covering fork URLs.

✅ Published commit tracking — Issue publication now propagates the push result’s commit hash, including successful salvage retries.

✅ Markdown-aware handling — The parser preserves code examples and images, and tests cover encoded filenames, workspace containment, and reference-style citations.

The supplied current-head status reports 23 passed checks and no failed or pending checks. This review used static analysis only; no commands were run.

Merge blockers

Every finding below was introduced by this PR and must be resolved before merging.

F1: 🔴 Preserve fragments in workspace citations

  • Category: correctness

  • Required behavior: Rewriting a workspace citation must preserve its file destination and line anchor rather than turning the anchor into part of the filename.

  • Evidence: packages/shared/src/agentSummary.ts:38-53 — localTarget

    1. An agent summary contains [source](/home/node/workspace/src/main.ts#L7), a file citation using a Markdown URL fragment.
    2. A publication caller supplies the repository and head SHA to rewriteWorkspaceLinks. The Markdown parser supplies the destination, including #L7, to localTarget.
    3. localTarget recognizes only colon-style line suffixes, so it retains #L7 inside target.path.
    4. replaceLink encodes that path segment, publishing a URL ending in /src/main.ts%23L7 instead of /src/main.ts#L7. Readers are directed to a nonexistent filename rather than the cited source line.

    Static trace: this follows directly through localTarget and replaceLink; the same shared helper affects summaries, completion comments, and reviews. Workspace containment succeeds and does not prevent the error. Existing added tests cover colon-style anchors and encoded literal hash characters, but not URL fragments. Proposed regression: cover both main.ts#L7-L9 and a filename containing an encoded %23, ensuring they remain distinct.

  • Minimum fix: Separate an unencoded URL fragment from the destination before decoding and normalizing the filesystem path, then preserve the fragment in the generated URL. Keep encoded %23 characters within filenames.

Suggestions

These are optional follow-ups and are not sent to /fix.

S1: 🟢 Clarify relative citation behavior

The new prompt guidance requests repository-relative inline code, but the rewriter deliberately leaves inline code unchanged. Clarifying that this format produces readable text rather than clickable commit links would make the intended behavior easier to understand. This is optional because the supplied scope does not explicitly require converting inline-code citations.

Score

The implementation has useful shared handling and passing checks, but a standard fragment-bearing citation is rewritten into a broken GitHub destination. The correction is localized.

Score: 6/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 1m 5s
  • Tokens: 58,837 (57,338 in / 1,499 out)
  • Cost: $0.54

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix F1 S1

🤖 Review by ProPR

@propr-dev propr-dev Bot changed the title 🔨 [3940 by GPT-6.2 Sol] Agent summaries link to /home/node/workspace paths (404 on GitHub); rewrite to PR-head blob links ⚠️❻ [3940 by GPT-6.2 Sol] Agent summaries link to /home/node/workspace paths (404 on GitHub); rewrite to PR-head blob links Dec 1, 2026

integry commented Dec 1, 2026

Copy link
Copy Markdown
Owner

/fix F1

@propr-dev propr-dev Bot changed the title ⚠️❻ [3940 by GPT-6.2 Sol] Agent summaries link to /home/node/workspace paths (404 on GitHub); rewrite to PR-head blob links 🔨 [3940 by GPT-6.2 Sol] Agent summaries link to /home/node/workspace paths (404 on GitHub); rewrite to PR-head blob links Dec 1, 2026
@propr-dev

propr-dev Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ Applied the requested follow-up changes in commit 3e14b05

Addressed 1 AI review comment (IDs: 7296259403)

Addressed finding F1

Summary of Changes

Fixed F1 in PR #3943. Workspace citations now preserve line fragments such as #L7-L9 in GitHub links, while %23 remains part of the filename.

Regression coverage includes PR summaries, review digests, follow-up completion comments, and review comments. All eight targeted test suites and TypeScript type checking passed.

Review digest

Risk-tiered paths

  • High risk: none
  • Normal risk (1 file)
    • packages/shared/src/agentSummary.ts (+9/−4)
  • Low risk (4 files)
    • test/agentSummaryWorkspaceLinks.test.ts (+19/−2)
    • test/prCompletionCommentVisualPreview.test.ts (+1/−1)
    • test/prReviewRunnerBudget.test.ts (+1/−1)
    • test/reviewDigestPublication.test.ts (+2/−2)

Diff size: 5 files changed, +32/−10 lines


🤖 Implementation Details

  • Model: GPT-6.2 Sol (medium)
  • Requested By: @integry
  • Time: 7m 15s
  • Tokens: 1,055,589 (1,050,288 in / 5,301 out)
  • Cost: $0.25

Undo Changes • View Task Execution


💡 ProPR Slash Commands
Command Description Example
/merge Merge target branch into this PR and resolve conflicts /merge
/review Request an AI code review /review or /review claude-sonnet
/fix Address review blockers, or blockers and suggestions with /fix all /fix, /fix all, or /fix F3 S5
/switch Change the AI model for this PR /switch claude-opus
/use Override the model for a single follow-up run /use claude-sonnet
/ultrafix Loop review→fix cycles until score goal is met /ultrafix or /ultrafix goal=8 max=10

🤖 Generated by ProPR
Processing comment ID: 7296676765✓

Fixed F1 in PR #3943. Workspace citations now preserve line fragments such as `#L7-L9` in GitHub links, while `%23` remains part of the filename.

Regression coverage includes PR summaries, review digests, follow-up completion comments, and review comments. All eight targeted test suites and TypeScript type checking passed.

PR: #3943
Comment by: @integry (ID: 7296676765)
Model: GPT-6.2 Sol

ProPR-Agent: codex/gpt-6.2-sol

integry commented Dec 1, 2026

Copy link
Copy Markdown
Owner

/review

@propr-dev

propr-dev Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-6-astra

Overall Evaluation

Ready to merge within the reviewed scope. The PR centralizes workspace-link conversion and carries repository identity and commit information through publication paths.

✅ Commit-pinned citations — Review publication uses the reviewed head and fork repository; implementation publication adopts the SHA returned by the push, including successful salvage retries.

✅ Markdown-aware rewriting — The parser preserves code examples and images while converting workspace citations and degrading unavailable local targets to inline code.

✅ Focused coverage — Added tests cover encoded filenames, line anchors, custom worktree roots, fork reviews, and summary/template/digest publication.

This assessment is based on static review of the supplied code. No commands were run. Current-head checks report 23 passed, 18 skipped, and no failures.

Merge blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S2: 🟢 Test post-push SHA propagation

Add a focused regression test where pushImplementationBranch returns a different SHA after rebasing or a successful salvage retry, and verify that the published description uses that SHA. The return-value propagation through issueJobPostProcessing.ts is correct by static trace, but the supplied publication tests use a fixed commit. This is optional coverage for an important boundary, not a demonstrated defect.

Score

The implementation addresses the objective with a shared helper, appropriate publication context, and focused tests. No merge-blocking regression was established, and current checks are passing.

Score: 9/10


🤖 Review Details

  • Model: GPT-6 Astra
  • Time: 36s
  • Tokens: 59,371 (58,661 in / 710 out)
  • Cost: $0.51

View Task


💡 Next step: Comment /fix to address every F# merge blocker, /fix all for every pending blocker and suggestion, or name records explicitly, as in /fix F3 S5.
F# and S# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. S# suggestions stay optional: they are implemented only when you name them or request /fix all, and they never relax a merge blocker.

Copy and edit to choose records from this review:

/fix S2

🤖 Review by ProPR

@propr-dev propr-dev Bot changed the title 🔨 [3940 by GPT-6.2 Sol] Agent summaries link to /home/node/workspace paths (404 on GitHub); rewrite to PR-head blob links ✅❾ [3940 by GPT-6.2 Sol] Agent summaries link to /home/node/workspace paths (404 on GitHub); rewrite to PR-head blob links Dec 1, 2026
@integry
integry merged commit c2f45db into 3758-epic-runtime-abstraction-sc0 Dec 1, 2026
41 checks passed
@propr-dev propr-dev Bot changed the title ✅❾ [3940 by GPT-6.2 Sol] Agent summaries link to /home/node/workspace paths (404 on GitHub); rewrite to PR-head blob links [3940 by GPT-6.2 Sol] Agent summaries link to /home/node/workspace paths (404 on GitHub); rewrite to PR-head blob links Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant