Skip to content

Fix: Slowness of ai coding session given clickable session link feature#267

Merged
tninja merged 2 commits intomainfrom
kang_feat
Mar 30, 2026
Merged

Fix: Slowness of ai coding session given clickable session link feature#267
tninja merged 2 commits intomainfrom
kang_feat

Conversation

@tninja
Copy link
Copy Markdown
Owner

@tninja tninja commented Mar 30, 2026

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

ℹ️ 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 ai-code-session-link.el
Comment on lines +491 to +492
(let ((ai-code-session-link--project-files-cache
(ai-code-session-link--buffer-project-files-cache))
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 per-buffer project file cache between passes

Reusing ai-code-session-link--buffer-project-files-cache across all relinkify passes makes basename resolution stale when the project file set changes during a session. After this commit, newly created files (or deleted/moved files) are not reflected because ai-code-session-link--project-files keeps returning the cached list, so basename-only links like Foo.java:12 can fail to link (or link to removed files) until the buffer is recreated.

Useful? React with 👍 / 👎.

Comment thread ai-code-session-link.el
Comment on lines +659 to +661
(and ai-code-session-link-enabled
(buffer-live-p buffer)
(ai-code-session-link--recent-output-may-contain-links-p output)))
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 Remove chunk-local gate for recent-output relinkify

The new gate only linkifies when the current output chunk matches ai-code-session-link--recent-output-candidate-regexp, but process filters can split tokens arbitrarily across chunks. If a file/URL token spans chunk boundaries and no individual chunk matches, relinkification is skipped entirely, so valid links in the rendered tail are never made clickable.

Useful? React with 👍 / 👎.

@tninja tninja merged commit cd5eb26 into main Mar 30, 2026
0 of 2 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