langgenius/dify · error · Error

The Build session is no longer active.

Error message

The Build session is no longer active.

What it means

Error "The Build session is no longer active." thrown in langgenius/dify.

Source

Thrown at web/features/agent-v2/agent-detail/configure/use-agent-configure-session-controller.ts:104

  const waitForPendingBuildDraftPreparation = useCallback(async () => {
    const pendingBuildDraftPreparation = pendingBuildDraftPreparationRef.current
    if (!pendingBuildDraftPreparation) return

    await pendingBuildDraftPreparation.catch(() => undefined)
  }, [])

  const runBuildPreparation = useCallback(
    async <T>({
      generation,
      markBuildChatStarted = false,
      prepare,
    }: {
      generation: symbol
      markBuildChatStarted?: boolean
      prepare: () => Promise<T>
    }) => {
      if (!isBuildCallbackCurrent(generation))
        throw new Error('The Build session is no longer active.')

      if (markBuildChatStarted) {
        setHasStartedBuildChat(true)
        setBuildDraftActionsDisabled(true)
      }

      const preparation = (async () => {
        const result = await prepare()
        if (!isBuildCallbackCurrent(generation))
          throw new Error('The Build session is no longer active.')
        return result
      })()
      pendingBuildDraftPreparationRef.current = preparation

      try {
        return await preparation
      } catch (error) {
        if (markBuildChatStarted && isBuildCallbackCurrent(generation)) {

View on GitHub (pinned to ef8544b173)

When it happens

Trigger: Thrown at web/features/agent-v2/agent-detail/configure/use-agent-configure-session-controller.ts:104 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of langgenius/dify@ef8544b173 (2026-08-12). Data as JSON: /api/errors/567bde7c63698293. Report an issue: GitHub.