Comments (4)
That should no longer happen as of 5c1ab21
from org-assistant.
Unfortunately since it's using deferred for async, we can't rely on macro scope for the boundary since it doesn't rely on inner loops.
Overlays will work better for this since they do not affect undo history.
I'm no longer using the stream id in the header to avoid an extra undo step as well, so that the only insert that happens is when the response is finished.
This should make it so that an entire request is undoable, and that if a request is currently active, undoing will cancel it the next time it receives output from OpenAI.
from org-assistant.
Wow, that sounds amazing! I will try it out.
from org-assistant.
There is a bug right now with undoing where it's possible an overlay will be left over in the buffer. I'm working on a fix now, but if you run into it, you can remove the overlay at point with
(--map (delete-overlay it) (overlays-in (point) (point)))
from org-assistant.
Related Issues (20)
- Streaming output HOT 7
- Cancel all tasks HOT 2
- Enable markdown mode by default? HOT 1
- org-assistant-response-completed-hook should be called with text and prompt ID as arguments HOT 1
- Streaming id location HOT 3
- Noweb bug HOT 5
- Evaluating thread while streaming HOT 4
- SRC block escaped by org syntax HOT 3
- Evaluating a block that's currently streaming HOT 2
- Too much is escaped HOT 2
- Evaluating while queries are in queue HOT 2
- Errors when adding to queue HOT 2
- Accessing text field while it's being streamed in HOT 4
- Bug related to freezing prompt & cancelling blocks HOT 4
- Doesn't support indented org blocks HOT 1
- Freezing & overlay issue HOT 4
- /tmp memory leak HOT 2
- Noweb doesn't work for system prompts HOT 2
- Set model used per-block
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from org-assistant.