• Will Chen's avatar
    Don't show upgrade button for non AI streaming errors (#1680) · ceed060c
    Will Chen 提交于
    <!-- CURSOR_SUMMARY -->
    > [!NOTE]
    > Show the upgrade button only for AI streaming errors by checking a
    shared error prefix; introduce and use a shared constant for consistent
    error messages.
    > 
    > - **Chat UI**
    > - Update `ChatErrorBox.tsx` to display "Upgrade to Dyad Pro" only when
    `error` includes `AI_STREAMING_ERROR_MESSAGE_PREFIX` and user is not Pro
    (still hides on `TypeError: terminated`).
    > - **IPC/Streaming**
    > - In `chat_stream_handlers.ts`, prefix emitted streaming errors with
    `AI_STREAMING_ERROR_MESSAGE_PREFIX` instead of hardcoded text for
    consistency.
    > - **Shared**
    > - Add `AI_STREAMING_ERROR_MESSAGE_PREFIX` in `src/shared/texts.ts` and
    import where needed.
    > 
    > <sup>Written by [Cursor
    Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
    83b1aa3555a3c1e710ee644f7bfb64cabc0ff5e6. This will update automatically
    on new commits. Configure
    [here](https://cursor.com/dashboard?tab=bugbot).</sup>
    <!-- /CURSOR_SUMMARY -->
    ceed060c
名称
最后提交
最后更新
..
__tests__ 正在载入提交数据...
app 正在载入提交数据...
atoms 正在载入提交数据...
client_logic 正在载入提交数据...
components 正在载入提交数据...
constants 正在载入提交数据...
contexts 正在载入提交数据...
db 正在载入提交数据...
hooks 正在载入提交数据...
ipc 正在载入提交数据...
lib 正在载入提交数据...
main 正在载入提交数据...
neon_admin 正在载入提交数据...
pages 正在载入提交数据...
paths 正在载入提交数据...
pro 正在载入提交数据...
prompts 正在载入提交数据...
routes 正在载入提交数据...
shared 正在载入提交数据...
store 正在载入提交数据...
styles 正在载入提交数据...
supabase_admin 正在载入提交数据...
utils 正在载入提交数据...
backup_manager.ts 正在载入提交数据...
main.ts 正在载入提交数据...
preload.ts 正在载入提交数据...
renderer.tsx 正在载入提交数据...
router.ts 正在载入提交数据...