assistant: Factor `RecentBuffersContext` logic out of `AssistantPanel` (#11876)

This PR factors some more code related to the `RecentBuffersContext` out
of the `AssistantPanel` and into the corresponding module.

We're trying to strike a balance between keeping this code easy to
evolve as we work on the Assistant, while also having some semblance of
separation/structure.

This also adds the missing functionality of updating the remaining token
count when the `CurrentProjectContext` is enabled/disabled.

Release Notes:

- N/A

---------

Co-authored-by: Max <max@zed.dev>
66e873942dMarshall Bowers committed on 5/15/2024, 8:16:10 PM· committed by GitHubparentcb430fc
4 files changedLine totals unavailable