Skip to content

Commit 7712837

Browse files
committed
fix(subflows): add loops/parallels to accessible list of blocks in the tag dropdown when contained withitn a subflow
1 parent a7fe1d3 commit 7712837

2 files changed

Lines changed: 2 additions & 12 deletions

File tree

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/hooks/use-accessible-reference-prefixes.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export function useAccessibleReferencePrefixes(blockId?: string | null): Set<str
3838
loopValues.forEach((loop) => {
3939
if (!loop?.nodes) return
4040
if (loop.nodes.includes(blockId)) {
41+
accessibleIds.add(loop.id) // Add the loop block itself
4142
loop.nodes.forEach((nodeId) => accessibleIds.add(nodeId))
4243
}
4344
})
@@ -46,6 +47,7 @@ export function useAccessibleReferencePrefixes(blockId?: string | null): Set<str
4647
parallelValues.forEach((parallel) => {
4748
if (!parallel?.nodes) return
4849
if (parallel.nodes.includes(blockId)) {
50+
accessibleIds.add(parallel.id) // Add the parallel block itself
4951
parallel.nodes.forEach((nodeId) => accessibleIds.add(nodeId))
5052
}
5153
})

apps/sim/providers/utils.test.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,6 @@ describe('Model Capabilities', () => {
147147
'azure/model-router',
148148
// GPT-5.1 models don't support temperature (removed in our implementation)
149149
'gpt-5.1',
150-
'gpt-5.1-mini',
151-
'gpt-5.1-nano',
152-
'gpt-5.1-codex',
153150
'azure/gpt-5.1',
154151
'azure/gpt-5.1-mini',
155152
'azure/gpt-5.1-nano',
@@ -228,9 +225,6 @@ describe('Model Capabilities', () => {
228225
expect(getMaxTemperature('deepseek-r1')).toBeUndefined()
229226
// GPT-5.1 models don't support temperature
230227
expect(getMaxTemperature('gpt-5.1')).toBeUndefined()
231-
expect(getMaxTemperature('gpt-5.1-mini')).toBeUndefined()
232-
expect(getMaxTemperature('gpt-5.1-nano')).toBeUndefined()
233-
expect(getMaxTemperature('gpt-5.1-codex')).toBeUndefined()
234228
expect(getMaxTemperature('azure/gpt-5.1')).toBeUndefined()
235229
expect(getMaxTemperature('azure/gpt-5.1-mini')).toBeUndefined()
236230
expect(getMaxTemperature('azure/gpt-5.1-nano')).toBeUndefined()
@@ -325,9 +319,6 @@ describe('Model Capabilities', () => {
325319
it.concurrent('should have correct models in MODELS_WITH_REASONING_EFFORT', () => {
326320
// Should contain GPT-5.1 models that support reasoning effort
327321
expect(MODELS_WITH_REASONING_EFFORT).toContain('gpt-5.1')
328-
expect(MODELS_WITH_REASONING_EFFORT).toContain('gpt-5.1-mini')
329-
expect(MODELS_WITH_REASONING_EFFORT).toContain('gpt-5.1-nano')
330-
expect(MODELS_WITH_REASONING_EFFORT).toContain('gpt-5.1-codex')
331322
expect(MODELS_WITH_REASONING_EFFORT).toContain('azure/gpt-5.1')
332323
expect(MODELS_WITH_REASONING_EFFORT).toContain('azure/gpt-5.1-mini')
333324
expect(MODELS_WITH_REASONING_EFFORT).toContain('azure/gpt-5.1-nano')
@@ -354,9 +345,6 @@ describe('Model Capabilities', () => {
354345
it.concurrent('should have correct models in MODELS_WITH_VERBOSITY', () => {
355346
// Should contain GPT-5.1 models that support verbosity
356347
expect(MODELS_WITH_VERBOSITY).toContain('gpt-5.1')
357-
expect(MODELS_WITH_VERBOSITY).toContain('gpt-5.1-mini')
358-
expect(MODELS_WITH_VERBOSITY).toContain('gpt-5.1-nano')
359-
expect(MODELS_WITH_VERBOSITY).toContain('gpt-5.1-codex')
360348
expect(MODELS_WITH_VERBOSITY).toContain('azure/gpt-5.1')
361349
expect(MODELS_WITH_VERBOSITY).toContain('azure/gpt-5.1-mini')
362350
expect(MODELS_WITH_VERBOSITY).toContain('azure/gpt-5.1-nano')

0 commit comments

Comments
 (0)