Commit Graph

260 Commits

Author SHA1 Message Date
Will Chen
5694934183 Lower o3/o4 mini max output tokens to maximize input tokens (#424) 2025-06-17 10:31:24 -07:00
Will Chen
d69284e3b0 Update gemini 2.5 models to GA variants (#425)
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
2025-06-17 10:24:54 -07:00
Will Chen
2fc33d04c1 Make delete app better handled & revamp error toast (#422)
Fixes #395 
Fixes #270 
Fixes #268
2025-06-16 23:36:43 -07:00
Will Chen
f25f6c7631 debounce GitHub repo name check & show create repo error details (#418)
Fixes #366
2025-06-16 23:18:11 -07:00
Will Chen
d6d6918d1b Safe send (#421) 2025-06-16 21:58:20 -07:00
Will Chen
30b5c0d0ef Replace thinking with native Gemini thinking summaries (#400)
This uses Gemini's native [thinking
summaries](https://cloud.google.com/vertex-ai/generative-ai/docs/thinking#thought-summaries)
which were recently added to the API.

Why? The grafted thinking would sometimes cause weird issues where the
model, especially Gemini 2.5 Flash, got confused and put dyad tags like
`<dyad-write>` inside the `<think>` tags.

This also improves the UX because you can see the native thoughts rather
than having the Gemini response load for a while without any feedback.

I tried adding Anthropic extended thinking, however it requires temp to
be set at 1, which isn't ideal for Dyad's use case where we need precise
syntax following.
2025-06-16 17:29:32 -07:00
Will Chen
67dc9f4c42 Print engine/gateway URL more clearly (#396) 2025-06-13 10:05:12 -07:00
Will Chen
99e6592abc commit upgrade (#391) 2025-06-11 15:42:10 -07:00
Will Chen
c1aa6803ce Click to edit UI (#385)
- [x] add e2e test - happy case (make sure it clears selection and next
prompt is empty, and preview is cleared); de-selection case
- [x] shim - old & new file
- [x] upgrade path
- [x] add docs
- [x] add try-catch to parser script
- [x] make it work for next.js
- [x] extract npm package
- [x] make sure plugin doesn't apply in prod
2025-06-11 13:05:27 -07:00
Will Chen
fa80014e16 Remove budget saver mode (#378)
This code was quite complex and hairy and resulted in very opaque errors
(for both free and pro users). There's not much benefit to budget saver
because Google removed 2.5 Pro free quota a while ago (after it
graduated the model from experimental to preview). Dyad Pro users can
still use 2.5 Flash free quota by disabling Dyad Pro by clicking on the
Dyad Pro button at the top.
2025-06-10 13:54:27 -07:00
Will Chen
534cbad909 Allow manual context management (#376) 2025-06-10 13:52:20 -07:00
Will Chen
34ea593928 Fix bug with copy app (#371)
Fixes #361
2025-06-09 14:58:55 -07:00
Will Chen
c2696cf1f9 Better error logs when reporting bug/uploading chat session (#370)
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
2025-06-09 14:56:22 -07:00
Will Chen
8d9962ddfc do not show release notes under e2e tests (#369) 2025-06-09 14:16:50 -07:00
Will Chen
ddce3c65d3 Lower max tokens for anthropic (#367) 2025-06-09 13:44:13 -07:00
Will Chen
1a39238ecf Use max retries 3 when there's no backup clients (#339)
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-06-09 13:43:54 -07:00
Will Chen
d3fbb48472 Copy app (#349)
Fixes #12
2025-06-05 22:26:17 -07:00
Will Chen
16bf0828f5 Fix stale app UI (supabase) & overall E2E test infra improvements (#337)
Fixes #269
2025-06-04 23:07:59 -07:00
Will Chen
3558663ab7 Support native Git (experimental) (#338) 2025-06-04 21:37:05 -07:00
Will Chen
2ba22e83e7 dyad pro users who disable it shouldn't see nudge messages (#330)
Fixes #272
2025-06-03 23:58:34 -07:00
Will Chen
9d1a0f7ad7 pro: show remaining credits (#329)
Fixes #265
2025-06-03 23:46:35 -07:00
Will Chen
e060f780b9 Use npm install --legacy-peer-deps (#326)
Fixes #309 

Unfortunately a lot of React.js apps have this problem with peer deps
because older dependencies specify pre-v19. Because Dyad app templates
do (and should) explicitly specify React as a dependnecy, using
`--legacy-peer-deps` gives us the right behavior where it effectively
does not install peer deps and avoids the React version errors.

For pnpm, we have an explicit lockfiles for our templates so there isn't
an issue.

Context:
https://stackoverflow.com/questions/66239691/what-does-npm-install-legacy-peer-deps-do-exactly-when-is-it-recommended-wh

---------

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-06-03 22:26:39 -07:00
Will Chen
7235eab227 Make CI run cross-platform (#295) 2025-06-03 13:04:16 -07:00
Will Chen
8a743ca4f5 LM studio e2e test (#297) 2025-05-31 23:04:28 -07:00
Will Chen
af7d6fa9f8 Create ollama e2e test (#296) 2025-05-31 22:01:48 -07:00
Will Chen
d6c71ef808 Normalize Windows-style path for dyad tags to prevent Git issues (#262) 2025-05-27 14:47:49 -07:00
Will Chen
a915d892f7 Support Next.js template & template hub (#241) 2025-05-27 00:16:30 -07:00
Will Chen
8cfd476ea9 Fix engine enabled (#255) 2025-05-27 00:10:49 -07:00
Will Chen
2bb8902b08 Remove force from git checkout & unselect version if checkout fails (#248)
#247
2025-05-26 11:35:36 -07:00
Will Chen
9e50aa259e Add Claude Sonnet 4 + o4-mini (#237) 2025-05-23 15:45:20 -07:00
Will Chen
e119a670ec Provide a button to clear session data (#231)
Fixes #214

---------

Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
2025-05-22 16:36:45 -07:00
Will Chen
f4c7d614bd Escape dyad tags inside thinking blocks (#229) 2025-05-22 16:06:28 -07:00
Will Chen
0f6f069e43 Update Flash to 05-20 (#226) 2025-05-22 10:37:26 -07:00
Will Chen
ae351c5ea0 Add staging engine (+ logs) (#225) 2025-05-22 10:33:09 -07:00
Will Chen
4d2b4783bc Fix scaffold copy and better error handling for create app (#202)
I was over-eager in https://github.com/dyad-sh/dyad/pull/200 and removed
copyDirectoryRecursive which is actually needed to copy the scaffold
out.
2025-05-19 17:58:49 -07:00
Will Chen
b4b9556e2c Add a keep going suggestion (#201) 2025-05-19 15:38:33 -07:00
Will Chen
68cb6b3d7d Robust app folder rename (#200)
Fixes #89
2025-05-19 14:59:55 -07:00
Will Chen
cbfe26bac1 Rename branch (#199)
This is more important now that import app is available and not every
git repo will be initialized with `main` as the default branch. This
handles the other common case which is the `master` branch.
2025-05-19 14:41:18 -07:00
Will Chen
6e08bc5c62 Import app (#189)
Fixes #163
2025-05-19 14:03:10 -07:00
Will Chen
b5671c0a59 Auto-commit extra files (#197)
Whenever Dyad does a commit from a proposal, it will automatically amend
the commit with outside changes (e.g. made outside of Dyad).

This helps avoid a lot of user confusion, e.g.
https://github.com/dyad-sh/dyad/issues/187

https://www.reddit.com/r/dyadbuilders/comments/1kjysc0/error_pushing_images/

Edge cases:
If a user adds a file outside of Dyad, and then they hit retry, it will
revert these outside changes, but it's still technically in the version
history, so I think it's OK. This should also be a pretty unusual
situation.

Fixes #164 
Fixes #187
2025-05-19 13:42:27 -07:00
Will Chen
59c18c3859 Extract AI rules (#188) 2025-05-17 23:04:48 -07:00
Will Chen
5966dd7f4b Proxy server to inject shim (#178)
things to test:

- [x] allow real URL to open in new window
- [x] packaging in electron?
- [ ] does it work on windows?
- [x] make sure it works with older apps
- [x] what about cache / reuse? - maybe use a bigger range of ports??
2025-05-16 23:28:26 -07:00
Will Chen
f9f33596bd Smart files context (#184) 2025-05-16 22:21:45 -07:00
Will Chen
2455c554ee Add sonnet 3.5 (#182) 2025-05-16 11:06:43 -07:00
Will Chen
92fb4f9b27 useful utility for debugging raw LLM response (#181)
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
2025-05-16 11:06:27 -07:00
Will Chen
9a288fd82e Fix local models (#176)
Fixes #167
2025-05-15 16:46:29 -07:00
Will Chen
56900ebe9a More robust check of whether release notes exist (#175) 2025-05-15 16:45:46 -07:00
Will Chen
7bcb68e87d Fix model client gateway prefix check (openAI erroneously not using dyad gateway for dyad pro) (#174) 2025-05-15 16:31:52 -07:00
Will Chen
09fc028f94 Mark which models are eligible for turbo edits (#172) 2025-05-15 16:02:42 -07:00
Will Chen
16e1dd7fc4 Add Claude Haiku 3.5 (#171) 2025-05-15 15:41:14 -07:00