Skip to content

conflict support 7 - handle conflicts for special operations#8

Merged
polyphilz merged 1 commit into
mainfrom
polyphilz/3-pane-5
Apr 27, 2026
Merged

conflict support 7 - handle conflicts for special operations#8
polyphilz merged 1 commit into
mainfrom
polyphilz/3-pane-5

Conversation

@polyphilz
Copy link
Copy Markdown
Owner

No description provided.

Copy link
Copy Markdown

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

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: fc664b24fd

ℹ️ 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 lua/glance/git.lua
Comment on lines +957 to +961
if entry.path ~= base_path
and (entry.stage == 2 or entry.stage == 3)
and by_path[entry.path]
and not by_path[entry.path][1]
then
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Pair each stage-1 conflict with its own rename candidates

The grouping loop currently adds all stage-2/3-only paths for every base_path, so multiple structural conflicts in the same index get cross-wired into the same group. In that case classify_conflict_entries ends up using whichever stage-2/3 entry was seen last, and grouped_paths can hide or duplicate unrelated conflicts, which breaks filetree conflict entries and special-resolution targeting. This should only pair candidates that belong to the current base conflict, not every stage-2/3 orphan path in the repo.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved in polyphilz/3-pane-7

Comment thread lua/glance/git.lua

callback(build_status_snapshot(output, head_oid, {
root = root,
enrich_conflicts = opts.schedule_callback ~= false,
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 Preserve conflict enrichment on async poll snapshots

This ties conflict enrichment to callback scheduling, so when schedule_callback=false the snapshot skips enrich_conflict_files. The poll fast-path (lua/glance/repo_sync.lua sets schedule_callback=false) will therefore publish raw conflict entries without conflict_class/conflict_paths; for rename/delete and rename/rename states that means get_conflict_info cannot reconstruct a logical conflict from a single filetree entry, and the new special conflict flow becomes unavailable in poll-driven refreshes.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved in polyphilz/3-pane-7

@polyphilz polyphilz force-pushed the polyphilz/3-pane-4 branch 3 times, most recently from ffb3e09 to ea69fc9 Compare April 27, 2026 00:51
@polyphilz polyphilz changed the base branch from polyphilz/3-pane-4 to main April 27, 2026 00:53
@polyphilz polyphilz changed the title handle conflicts for special operations conflict support 7 - handle conflicts for special operations Apr 27, 2026
@polyphilz polyphilz force-pushed the polyphilz/3-pane-5 branch from fc664b2 to bcdaff0 Compare April 27, 2026 00:54
@polyphilz polyphilz merged commit cdbba7c into main Apr 27, 2026
3 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