Commit graph

4018 commits

Author SHA1 Message Date
Paul Gauthier
5a01ba70a6 refactored parser, args 2024-04-28 13:15:14 -07:00
Paul Gauthier
221ddbb9ea cleanup unimplemented UI 2024-04-28 12:43:22 -07:00
Paul Gauthier
ca6349069c noop 2024-04-28 12:38:25 -07:00
Paul Gauthier
1ccc83f097 Merge branch 'main' into gui 2024-04-28 11:58:19 -07:00
Paul Gauthier
4efa97201f copy 2024-04-28 11:52:38 -07:00
Paul Gauthier
81b0415a90 info dict messages->content 2024-04-28 07:27:38 -07:00
Paul Gauthier
c0fec1d6ac persist the announce lines 2024-04-28 07:24:46 -07:00
Paul Gauthier
0f8efa3714 Coder.drop_rel_fname 2024-04-28 07:15:48 -07:00
Paul Gauthier
bfd9398f28 persist file add/drop messages 2024-04-28 07:12:46 -07:00
Paul Gauthier
ce5abf8c79 working undo 2024-04-27 16:47:07 -07:00
Paul Gauthier
d0d5326228 roughed in undo 2024-04-27 16:00:10 -07:00
Paul Gauthier
f822fd0554 put web content into a text box 2024-04-27 15:52:14 -07:00
Paul Gauthier
355e072de8 refactored self.prompt 2024-04-27 15:44:10 -07:00
Paul Gauthier
dcb6100ce9 Add web page 2024-04-27 15:28:08 -07:00
Paul Gauthier
6e5e195ea8 resend recent msg 2024-04-27 14:40:44 -07:00
Paul Gauthier
640d321b3e aider: Removed duplicates from the input history while preserving their order.
# Aider chat conversation:

USER: do the todo

ASSISTANT: To address the TODO comment in the code about making the `self.state.input_history` entries unique while keeping their order, we can modify the `initialize_state()` method in `aider/gui.py`.

Here are the changes:

aider/gui.py
```python
<<<<<<< SEARCH
        if "input_history" not in self.state.keys:
            self.state.input_history = list(self.coder.io.get_input_history())
            # TODO: make self.state.input_history entries unique, but keep their order
=======
        if "input_history" not in self.state.keys:
            input_history = list(self.coder.io.get_input_history())
            seen = set()
            self.state.input_history = [x for x in input_history if not (x in seen or seen.add(x))]
>>>>>>> REPLACE
```

Explanation:
1. We first store the input history from `self.coder.io.get_input_history()` in a variable called `input_history`.
2. We create an empty set called `seen` to keep track of entries we've already processed.
3. We use a list comprehension to build `self.state.input_history`. For each item `x` in `input_history`:
   - If `x` is not in `seen`, it's a new entry so we add it to `self.state.input_history` and add it to `seen`.
   - If `x` is already in `seen`, it's a duplicate so we skip it.

This preserves the original order of the input history while removing any duplicate entries.
2024-04-27 14:36:49 -07:00
Paul Gauthier
0b853204e4 Improved chat history handling by clearing history, storing input history, and appending new prompts to the input history. 2024-04-27 14:36:47 -07:00
Paul Gauthier
fb8e604fbe Clear chat history 2024-04-27 14:29:00 -07:00
Paul Gauthier
ddb8360608 Improved add/drop files 2024-04-27 14:13:23 -07:00
Paul Gauthier
594a6bd934 updated mocks of Coder.send() to fix tests 2024-04-27 14:08:21 -07:00
Paul Gauthier
e71cf03f36 self.coder.io.add_to_input_history 2024-04-27 13:55:44 -07:00
Paul Gauthier
0eb69716bc simplify recent_msgs logic 2024-04-27 13:53:12 -07:00
Paul Gauthier
b4d1a0a2a2 state as a resource 2024-04-27 13:40:57 -07:00
Paul Gauthier
1c43722221 disable buttons when a prompt is pending 2024-04-27 13:23:40 -07:00
Paul Gauthier
296a336d22 yield from 2024-04-27 11:47:18 -07:00
Paul Gauthier
c32666b1c5 hide previous undo button during streaming 2024-04-27 11:27:16 -07:00
Paul Gauthier
1b6f038590 prettier edit message 2024-04-27 08:13:50 -07:00
Paul Gauthier
701103a9cc chat works, with commits and reflected messages 2024-04-27 08:09:13 -07:00
Paul Gauthier
4c8d32601c wired up fnames 2024-04-27 06:37:57 -07:00
Paul Gauthier
89a721b386 noop 2024-04-26 16:16:02 -07:00
Paul Gauthier
86d7705166 restructured reflected messages 2024-04-26 16:02:45 -07:00
Paul Gauthier
15e6651e09 stream to gui 2024-04-26 15:41:47 -07:00
Paul Gauthier
98d2997035 refac 2024-04-26 14:59:02 -07:00
Paul Gauthier
d549d5ecab cleanup 2024-04-26 14:43:27 -07:00
Paul Gauthier
c3f48317c0 cleanup 2024-04-26 14:41:00 -07:00
Paul Gauthier
882e68c046 cleanup 2024-04-26 14:32:45 -07:00
Paul Gauthier
bf55573814 refac 2024-04-26 14:23:42 -07:00
Paul Gauthier
3f5cdb603c fixed announcements 2024-04-26 13:20:14 -07:00
Paul Gauthier
d21de778ff announcements 2024-04-26 11:24:42 -07:00
Paul Gauthier
0925c4b8b3 better 2024-04-26 06:13:40 -07:00
Paul Gauthier
e2d0a94d58 better 2024-04-26 06:12:07 -07:00
Paul Gauthier
7a6bce381e better 2024-04-26 06:11:56 -07:00
Paul Gauthier
6ebfd15a71 initial 2024-04-25 11:35:26 -07:00
Paul Gauthier
ed392205da Updated HISTORY 2024-04-24 17:21:46 -07:00
Paul Gauthier
4b68376695 set version to 0.30.2-dev 2024-04-24 17:20:51 -07:00
Paul Gauthier
d6bd563fc3 version bump to 0.30.1 2024-04-24 17:20:13 -07:00
Paul Gauthier
60d92feaa8 copy 2024-04-24 15:59:52 -07:00
Paul Gauthier
fe6257b513 copy 2024-04-24 14:13:21 -07:00
Paul Gauthier
80b4ebe6f7 include google-generativeai; bump all dep versions 2024-04-24 11:46:50 -07:00
Paul Gauthier
c6d6171da0 set version to 0.30.1-dev 2024-04-23 17:40:19 -07:00