feat: activate buddy system in open build (#346)
This commit is contained in:
@@ -13,6 +13,7 @@ import { getCwd } from 'src/utils/cwd.js';
|
||||
import { isQueuedCommandEditable, popAllEditable } from 'src/utils/messageQueueManager.js';
|
||||
import stripAnsi from 'strip-ansi';
|
||||
import { companionReservedColumns } from '../../buddy/CompanionSprite.js';
|
||||
import { isBuddyEnabled } from '../../buddy/feature.js';
|
||||
import { findBuddyTriggerPositions, useBuddyNotification } from '../../buddy/useBuddyNotification.js';
|
||||
import { FastModePicker } from '../../commands/fast/fast.js';
|
||||
import { isUltrareviewEnabled } from '../../commands/review/ultrareviewEnabled.js';
|
||||
@@ -309,7 +310,7 @@ function PromptInput({
|
||||
const {
|
||||
companion: _companion,
|
||||
companionMuted
|
||||
} = feature('BUDDY') ? getGlobalConfig() : {
|
||||
} = isBuddyEnabled() ? getGlobalConfig() : {
|
||||
companion: undefined,
|
||||
companionMuted: undefined
|
||||
};
|
||||
@@ -1786,7 +1787,7 @@ function PromptInput({
|
||||
}
|
||||
switch (footerItemSelected) {
|
||||
case 'companion':
|
||||
if (feature('BUDDY')) {
|
||||
if (isBuddyEnabled()) {
|
||||
selectFooterItem(null);
|
||||
void onSubmit('/buddy');
|
||||
}
|
||||
@@ -1981,8 +1982,7 @@ function PromptInput({
|
||||
});
|
||||
}, [effortNotificationText, addNotification, removeNotification]);
|
||||
useBuddyNotification();
|
||||
const companionSpeaking = feature('BUDDY') ?
|
||||
// biome-ignore lint/correctness/useHookAtTopLevel: feature() is a compile-time constant
|
||||
const companionSpeaking = isBuddyEnabled() ?
|
||||
useAppState(s => s.companionReaction !== undefined) : false;
|
||||
const {
|
||||
columns,
|
||||
|
||||
Reference in New Issue
Block a user