Skip to content

Feat/fixes#11

Merged
rekurt merged 3 commits into
masterfrom
feat/fixes
Jun 4, 2026
Merged

Feat/fixes#11
rekurt merged 3 commits into
masterfrom
feat/fixes

Conversation

@rekurt
Copy link
Copy Markdown
Owner

@rekurt rekurt commented Jun 4, 2026

What does this PR do?

Type of change

  • Bug fix
  • New feature
  • Refactoring (no behavior change)
  • Documentation
  • CI / build
  • Other:

Checklist

  • cargo test --workspace passes
  • cargo clippy --workspace --all-targets has no warnings
  • cargo fmt --all -- --check passes
  • I added tests for new functionality
  • I updated documentation if needed (README, CHANGELOG)
  • New i18n strings added to all 3 languages (en, ru, zh)

Screenshots / demo

Related issues

@rekurt rekurt merged commit 2412c03 into master Jun 4, 2026
3 checks passed
@rekurt rekurt deleted the feat/fixes branch June 4, 2026 08:34
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: 068cd060e1

ℹ️ 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 crates/prt/src/app.rs
Comment on lines +287 to +296
if let Some((pid, _)) = self.detail_cache.as_ref() {
if !self
.session
.entries
.iter()
.any(|entry| entry.entry.process.pid == *pid)
{
self.detail_cache = None;
}
}
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 Invalidate process details on refresh

When the Processes/Detail view is open, get_process_detail() only re-fetches if the selected PID changes, so this new refresh path keeps the cached detail forever as long as that PID is still present in session.entries. That leaves CPU/RSS, cwd, env, and open-file data stale across auto-refreshes for long-lived processes (and even for Gone entries during the retention window), which regresses the previous per-refresh invalidation behavior. Please either clear the cache each refresh or add a freshness/TTL check before reusing it.

Useful? React with 👍 / 👎.

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