Skip to content

Fix #6828: 隐藏父实例缺失的实例 - #6832

Merged
Glavo merged 4 commits into
HMCL-dev:mainfrom
Glavo:parent
Sep 7, 2026
Merged

Fix #6828: 隐藏父实例缺失的实例#6832
Glavo merged 4 commits into
HMCL-dev:mainfrom
Glavo:parent

Conversation

@Glavo

@Glavo Glavo commented Sep 6, 2026

Copy link
Copy Markdown
Member

No description provided.

@github-actions github-actions Bot added the 10+ label Sep 6, 2026
@Glavo

Glavo commented Sep 6, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 6, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-07T13:06:03.468345Z 631c12f Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@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: 3356e5d274

ℹ️ 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 HMCLCore/src/main/java/org/jackhuang/hmcl/game/DefaultGameRepository.java Outdated
@github-actions github-actions Bot removed the 10+ label Sep 7, 2026
@Glavo

Glavo commented Sep 7, 2026

Copy link
Copy Markdown
Member Author

@codex review

@github-actions github-actions Bot added the 40+ label Sep 7, 2026

@github-actions github-actions 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.

🤖 Static analysis found the following issues (max count 10):

import javafx.beans.property.ObjectProperty;
import javafx.beans.property.ReadOnlyObjectProperty;
import javafx.beans.property.SimpleObjectProperty;
import javafx.scene.effect.Bloom;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[ERROR] [com.puppycrawl.tools.checkstyle.checks.imports.UnusedImportsCheck]

Unused import - javafx.scene.effect.Bloom.

@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: d0ff44a827

ℹ️ 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".


HashSet<GameInstanceID> visited = null;
loop:
for (DefaultGameInstance instance : newSnapshot.getInstances()) {

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 Prune invalid children after draft commits

When a user deletes a registered parent instance, removeInstanceFromDisk publishes a draft snapshot directly, and DefaultGameRepositoryDraft.buildCommittedSnapshot() removes only the requested ID without invoking this new pruning pass. Consequently, every child that inherits from the deleted instance remains visible and throws NoSuchGameInstanceException during manifest resolution until the repository is explicitly refreshed or the launcher restarts. Apply the same inheritance validation when publishing draft snapshots, particularly after removals.

Useful? React with 👍 / 👎.

@Glavo

Glavo commented Sep 7, 2026

Copy link
Copy Markdown
Member Author

@codex review

@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: 631c12f244

ℹ️ 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".

: repository.createInstance(committedSnapshot, manifest.id(), manifest);
committedSnapshot.put(updated);
}
committedSnapshot.removeInvalidInstances();

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 Restore hidden children when their missing parent is added

When a refresh hides child C because its parent P is missing, C is excluded from baseSnapshot; a later save(P) or normal game-builder installation constructs this successor only from that snapshot and the newly modified parent. This validation therefore cannot rediscover C even though its on-disk manifest is now valid, so the child remains invisible until an explicit repository refresh or launcher restart. The commit path needs to rescan previously hidden manifests, or otherwise trigger a refresh when adding a parent.

Useful? React with 👍 / 👎.

@Glavo
Glavo merged commit 1a258a2 into HMCL-dev:main Sep 7, 2026
3 checks passed
@Glavo
Glavo deleted the parent branch September 7, 2026 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant