Skip to content

fix(server): cache project favicon resolution - #16

Merged
Zain-Repo merged 2 commits into
mainfrom
codex/next-pr-9080
Sep 1, 2026
Merged

Zain-Repo merged 2 commits into
mainfrom
codex/next-pr-9080

Conversation

@Zain-Repo

Copy link
Copy Markdown
Owner

What changed\n- Cache project favicon discovery with bounded positive and negative TTLs.\n- Re-check cached hits so deleted icons fall back immediately.\n- Keep the existing candidate precedence and add platform-neutral regression coverage.\n\nReviewed against upstream PR #9080: https://github.com/pingdotgg/t3code/pull/9080\n\nValidation: ProjectFaviconResolver tests pass (15 tests) on Windows.

willsheldon and others added 2 commits September 1, 2026 17:48
resolvePath walks up to 12 well-known favicon paths and then reads 7 source
files looking for icon metadata, so a miss costs roughly 20 filesystem probes.
AssetAccess calls it on every project-favicon asset URL and nothing cached the
answer, even though a project's icon does not move.

Traced over 100 minutes on one install: 451 resolvePath calls issued 9,106
findExistingFile probes and spent 313s of the 422s that issueAssetUrl consumed
in total. The slowest asset URL took 67.8s.

Cache the resolved path per workspace root and saved favicon path, 10 minutes
for a hit and 1 minute for a miss. A hit still confirms the file with a single
stat rather than the full walk, so deleting an icon falls back immediately
instead of serving a stale path until the entry expires.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KX8tw6Sqs3h2oYKmi18Ptr
@Zain-Repo

Copy link
Copy Markdown
Owner Author

@codex review Please review the latest commits for cache invalidation, TTL behavior, filesystem safety, and missing validation.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 1, 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-01T21:54:15.377715Z ff2d9ce 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.

@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:M labels Sep 1, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: ff2d9ce1af

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

@Zain-Repo
Zain-Repo merged commit a78e405 into main Sep 1, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants