mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-08-29 04:26:38 +00:00
fix(ui-settings-plugins): place Subagent after Agent loop
This commit is contained in:
@@ -165,12 +165,6 @@ export function apply(ctx: ClientContext): void {
|
||||
}, ConfigurablePluginsTab))
|
||||
|
||||
ctx.slots.inject('settings.plugin.item', function* () {
|
||||
yield ctx.slots.register({
|
||||
name: 'settings.plugin.item',
|
||||
key: SUBAGENT_MODEL_SELECTION_NS,
|
||||
locale: NS,
|
||||
inject: () => subagentModelSelection.inject(),
|
||||
}, SubagentModelSelectionCard)
|
||||
yield ctx.slots.register({
|
||||
name: 'settings.plugin.item',
|
||||
key: SHELL_NS,
|
||||
@@ -183,6 +177,12 @@ export function apply(ctx: ClientContext): void {
|
||||
locale: NS,
|
||||
inject: () => agentLoop.inject(),
|
||||
}, AgentLoopCard)
|
||||
yield ctx.slots.register({
|
||||
name: 'settings.plugin.item',
|
||||
key: SUBAGENT_MODEL_SELECTION_NS,
|
||||
locale: NS,
|
||||
inject: () => subagentModelSelection.inject(),
|
||||
}, SubagentModelSelectionCard)
|
||||
yield ctx.slots.register({
|
||||
name: 'settings.plugin.item',
|
||||
key: WEB_SEARCH_NS,
|
||||
|
||||
@@ -126,7 +126,7 @@ describe('ui-settings-plugins apply', () => {
|
||||
await ctx.plugin({ inject: [...inject], apply }).await()
|
||||
|
||||
expect(slots.entries('settings.plugin.item').map(entry => entry.options.key))
|
||||
.toEqual(['subagent-model-selection', 'shell', 'agent-loop', 'web-search-deepseek'])
|
||||
.toEqual(['shell', 'agent-loop', 'subagent-model-selection', 'web-search-deepseek'])
|
||||
})
|
||||
|
||||
it('dispatches the served namespaces its cards claim, and no others', async () => {
|
||||
|
||||
@@ -1715,9 +1715,9 @@ export const CLIENT_SLOT_API: readonly ClientSlotEntry[] = [
|
||||
slotInject: '',
|
||||
declaredBy: 'an entry in \'settings.plugins.tab\' (client-ui-settings-plugins), so it exists while that entry is mounted',
|
||||
occupants: [
|
||||
'client-ui-settings-plugins SubagentModelSelectionCard',
|
||||
'client-ui-settings-plugins BashCard',
|
||||
'client-ui-settings-plugins AgentLoopCard',
|
||||
'client-ui-settings-plugins SubagentModelSelectionCard',
|
||||
'client-ui-settings-plugins WebSearchCard',
|
||||
],
|
||||
replaceRisk: 'none',
|
||||
|
||||
Reference in New Issue
Block a user