Paul Gauthier
2b4206fd57
paul-gauthier -> Aider-AI
2024-10-04 13:06:38 -07:00
Paul Gauthier
dff814a7a8
refactor: change tool_error to tool_warning for non-critical messages
2024-09-03 13:30:04 -07:00
Paul Gauthier
c5d93d7f0c
removed get_playwright_instructions
2024-07-14 20:04:27 +01:00
Paul Gauthier
87f4d25133
Added gui support for tool_error(log_only=True) #740
2024-06-27 10:58:48 -07:00
Paul Gauthier
5a3627de6e
finish removing aider: prefix
2024-06-18 08:37:13 -07:00
Paul Gauthier
4cbeb59bec
browser ver should stop after 3 reflections
2024-06-08 13:38:18 -07:00
Paul Gauthier
8d3a320ab3
log the announcements in the gui too
2024-06-08 13:31:40 -07:00
Paul Gauthier
1f1da4b1a2
refac all urls into urls.py
2024-06-08 12:53:54 -07:00
Paul Gauthier
0e5342fdb8
copy
2024-06-06 11:01:27 -07:00
Paul Gauthier
7c2e9a394c
browser blog post
2024-05-02 10:39:33 -07:00
Paul Gauthier
29f4d788a3
set streamlit config options
2024-04-29 10:19:22 -07:00
Paul Gauthier
3199a8f704
fix multiselect for 2nd,3rd,.. files
2024-04-29 06:24:14 -07:00
Paul Gauthier
b3225a4070
added warning
2024-04-28 15:18:53 -07:00
Paul Gauthier
0bf45c2cf6
added favicon
2024-04-28 14:28:50 -07:00
Paul Gauthier
d60b343274
layout
2024-04-28 13:44:04 -07:00
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
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
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
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
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