v1.2.1: fix unstyled advisor button (stylesheet install was dropped in the per-session refactor)
This commit is contained in:
1 parent
0f423e3699
commit
42551733d8
2 files changed
+3
-1
No files matched your search
@@ -150,6 +150,7 @@ window.__ModuleLoader__.load({
|
||||
}
|
||||
|
||||
function AdvisorPickerFor({ sessionId, directory, load, t }) {
|
||||
React.useEffect(installCss, []); // idempotent; also installed in apply()
|
||||
const store = storeFor(sessionId);
|
||||
const st = useSettings(store);
|
||||
const dir = React.useSyncExternalStore((f) => directory.subscribe(f), () => directory.getSnapshot());
|
||||
@@ -296,6 +297,7 @@ window.__ModuleLoader__.load({
|
||||
inject: ['slots', 'locale', 'sessions', 'modelDirectories'],
|
||||
apply(ctx) {
|
||||
ctx.effect(() => ctx.locale.register(NS, { en, zh }), 'omp-advisor: dictionaries');
|
||||
installCss(); // styles must exist before the first render of the composer control
|
||||
ctx.slots.inject('conversation.input.right', () => ctx.slots.register({
|
||||
name: 'conversation.input.right',
|
||||
id: 'omp-advisor',
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@local/omp-advisor",
|
||||
"version": "1.2.0",
|
||||
"version": "1.2.1",
|
||||
"description": "oh-my-pi style advisor for DSH: a second model reviews every agent step and injects notes, concerns or blockers.",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
|
||||
Reference in new issue
Block a user