Coder Social home page Coder Social logo

Progress/status indicator about org-assistant HOT 3 CLOSED

walseb avatar walseb commented on August 19, 2024
Progress/status indicator

from org-assistant.

Comments (3)

tyler-dodge avatar tyler-dodge commented on August 19, 2024 1

Yeah, it'd be possible now with the streaming API / it does give some feedback that correlates with the states of the request like once the src block shows up, the server is necessarily connected

More work could be done via adding verbose flags to curl, and parsing the output. For the moment, I only intend to do the streaming implementation, since I think that gives it significantly more feedback than it had before.

from org-assistant.

tyler-dodge avatar tyler-dodge commented on August 19, 2024

The latest version has org-assistant-mode which is a minor mode that changes the mode line to including a queue that shows the individual requests.
It shows the first four letters of the UUID of each request in the [].

Below is the part of the mode-line-format I mentioned:

    (:eval (concat "[" (s-join "," (--map (substring it 0 4) org-assistant--inflight-request)) "]") )

Closing since I think this is already complete

from org-assistant.

walseb avatar walseb commented on August 19, 2024

Yes although the mode line only displays what jobs are currently running. It would be more useful to know exactly what stage they are in. E.g. connecting to API, waiting for reply, etc.

I'd imagine the mode line would then say something like [foo123(C)] for connecting, for instance.

It's less of an issue once the streaming branch is merged, but it could still be useful in case you have a slow internet connection/DNS issues.

But I'm quite unfamiliar with the interface for making web requests, do you have access to any of that information when making a request?

from org-assistant.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.