Skip to content

Revert "Move skills watcher to app-server"#21460

Merged
pakrym-oai merged 1 commit intomainfrom
revert-21287-pakrym/skills-update-available-app-server
May 7, 2026
Merged

Revert "Move skills watcher to app-server"#21460
pakrym-oai merged 1 commit intomainfrom
revert-21287-pakrym/skills-update-available-app-server

Conversation

@pakrym-oai
Copy link
Copy Markdown
Collaborator

Reverts #21287

@pakrym-oai pakrym-oai requested a review from a team as a code owner May 7, 2026 01:44
Copy link
Copy Markdown
Contributor

@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: 1c3adb364c

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

id: sess.next_internal_sub_id(),
msg: EventMsg::SkillsUpdateAvailable,
};
sess.send_event_raw(event).await;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 Badge Clear the skill cache before notifying clients

When a watched skill changes, this listener can now publish SkillsUpdateAvailable to the app-server before the separate cache-clearing task in thread_manager.rs has processed the same broadcast event. In the app-server flow, that immediately becomes SkillsChanged, whose schema tells clients to re-run skills/list; if they do so with forceReload: false, they can still read stale metadata because cache invalidation is racing in another task. The previous app-server watcher cleared the cache and then sent the notification in the same async path, so the notification should be ordered after skills_manager.clear_cache().

Useful? React with 👍 / 👎.

@pakrym-oai pakrym-oai enabled auto-merge (squash) May 7, 2026 01:51
@pakrym-oai pakrym-oai merged commit 103dc2b into main May 7, 2026
37 of 38 checks passed
@pakrym-oai pakrym-oai deleted the revert-21287-pakrym/skills-update-available-app-server branch May 7, 2026 02:24
@github-actions github-actions Bot locked and limited conversation to collaborators May 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants