Skip to content

Restore mocked chat initialization and S7 lifecycle hooks - #118

Merged
maciekbanas merged 3 commits into
r-world-devs:fix/s7-compatibilityfrom
t-kalinowski:fix/s7-compatibility-20261012
Oct 19, 2026
Merged

maciekbanas merged 3 commits into
r-world-devs:fix/s7-compatibilityfrom
t-kalinowski:fix/s7-compatibility-20261012

Conversation

@t-kalinowski

Copy link
Copy Markdown
Contributor

The mocked set_llm() tests currently stop at chat initialization because no model is supplied. Forward the selected model to ChatMocked$new() and build an ellmer::Model for ellmer 0.5.0 and later.

Forwarding model configuration changes test fixtures only.

Add guarded S7 load, unload, and build hooks to clean up method registrations and foreign generic aliases. The build hook runs after method declarations. Released S7 continues to use methods_register(), and the minimum S7 version is unchanged.

Keep released S7 compatibility by guarding the new hooks and retaining
methods_register() when S7_on_load() is not exported.
@maciekbanas
maciekbanas changed the base branch from main to fix/s7-compatibility October 19, 2026 09:23
@maciekbanas
maciekbanas merged commit c3029a5 into r-world-devs:fix/s7-compatibility Oct 19, 2026
0 of 7 checks passed
@t-kalinowski

Copy link
Copy Markdown
Contributor Author

Thanks for including these compatibility updates in GitAI 0.1.4 on CRAN! I wanted to let you know that I'm planning to submit the next version of S7 to CRAN on November 16 (see RConsortium/S7#786). Please let me know if anything else comes up before then.

@maciekbanas

Copy link
Copy Markdown
Member

Hi @t-kalinowski, thanks for letting us know. Do you want us to test any specific S7 dev version (before CRAN submit) in our GitAI checks?

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.

2 participants