Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Agent Mode #4743

Merged
merged 73 commits into from
Mar 23, 2025
Merged
Changes from 1 commit
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
cde4057
organize the input box folder
sestinj Mar 21, 2025
03d8982
organize TipTapEditor.tsx
sestinj Mar 21, 2025
ccd1933
organize keyHandlers
sestinj Mar 21, 2025
d72005b
refactor out webview listeners
sestinj Mar 21, 2025
15b6ccf
add tooltip delay
sestinj Mar 21, 2025
a1d8429
lump v1
sestinj Mar 21, 2025
a2dcf1c
toggle sections
sestinj Mar 21, 2025
db05eea
highlights
sestinj Mar 21, 2025
c3f9204
styles
sestinj Mar 21, 2025
46f4665
style
sestinj Mar 21, 2025
25f8264
refactor sections
sestinj Mar 21, 2025
1aca061
remove editorInset
sestinj Mar 21, 2025
bbff4f8
move model roles to lump
sestinj Mar 21, 2025
91873a9
Merge branch 'main' into nate/blocks-front-and-center
sestinj Mar 21, 2025
b527942
remove imports
sestinj Mar 21, 2025
f613b43
tool lump section
sestinj Mar 21, 2025
a49ac7b
styling of lump icons
sestinj Mar 21, 2025
171aa08
make tabs tabbable
sestinj Mar 21, 2025
a03eab7
styling dropdown
sestinj Mar 21, 2025
078b1e7
small screen breakpoint
sestinj Mar 21, 2025
0380675
listbox styling for models
sestinj Mar 21, 2025
d3fc2e5
ui polish in the models lump section
sestinj Mar 21, 2025
e49c276
height transition animation on lump
sestinj Mar 21, 2025
d4bf45b
move docs management to lump
sestinj Mar 21, 2025
35400e6
adjust docs ui
sestinj Mar 21, 2025
83dce65
make docs more compact
sestinj Mar 21, 2025
3b0cc0e
docs indexing style
sestinj Mar 21, 2025
cd5cbfd
action buttons on docs view
sestinj Mar 21, 2025
4081730
move more things around
sestinj Mar 22, 2025
03d608e
open link for add docs
sestinj Mar 22, 2025
804edc6
prompts section in lump
sestinj Mar 22, 2025
c7873fc
Merge branch 'pe/conversation-starters' into nate/blocks-front-and-ce…
sestinj Mar 22, 2025
77110a3
update placeholder
sestinj Mar 22, 2025
0090e4c
consolidate org switcher ui
sestinj Mar 22, 2025
12a347b
remove more page
sestinj Mar 22, 2025
a8555ef
refactor config page sections
sestinj Mar 22, 2025
64bf9cf
tabs
sestinj Mar 22, 2025
7ab3a06
nicer tab styling on settings page
sestinj Mar 22, 2025
01e40a9
sticky tabs
sestinj Mar 22, 2025
fb86531
styling of settings again
sestinj Mar 22, 2025
3b006df
move bookmarks to lump
sestinj Mar 22, 2025
debe6b8
condense MCP preview
sestinj Mar 22, 2025
21804ad
reorder mcp row
sestinj Mar 22, 2025
fdcd27c
clean up tool view
sestinj Mar 22, 2025
107a388
fix horizontal scroll in tools section
sestinj Mar 22, 2025
745d450
padding
sestinj Mar 22, 2025
bb37638
hover message on status dot for docs
sestinj Mar 22, 2025
193bd88
edit button in docs section
sestinj Mar 22, 2025
fca8f23
status dot to left to balance
sestinj Mar 22, 2025
9af934d
edit button for prompts
sestinj Mar 22, 2025
bc5ec28
mode select
sestinj Mar 22, 2025
45bbb79
fontSize function
sestinj Mar 23, 2025
0984398
font size
sestinj Mar 23, 2025
7672a05
agent mode use tools
sestinj Mar 23, 2025
1494b49
agent mode not supported
sestinj Mar 23, 2025
4be325e
style updates for rules
sestinj Mar 23, 2025
d0339ec
add block buttons
sestinj Mar 23, 2025
7cd8105
move cancel button to lump
sestinj Mar 23, 2025
1cc811b
bold modes
sestinj Mar 23, 2025
ec53073
style model select to match modeselect
sestinj Mar 23, 2025
dec06cb
no edit mode on jb
sestinj Mar 23, 2025
03e08d1
top toolbar experiment
sestinj Mar 23, 2025
fdb7e80
refactor block settings
sestinj Mar 23, 2025
15b4576
ellipsis
sestinj Mar 23, 2025
ee13913
persist block settings toolbar expanded and adjust padding to match l…
sestinj Mar 23, 2025
5ba06c5
remove max height on code blocks to make scrolling easier
sestinj Mar 23, 2025
7617cd1
adjust code block styles
sestinj Mar 23, 2025
fcf38c5
details
sestinj Mar 23, 2025
aa20cd9
save after accept/reject
sestinj Mar 23, 2025
5402453
blur old input boxes
sestinj Mar 23, 2025
62f3f7f
fix blur
sestinj Mar 23, 2025
657842e
bump
sestinj Mar 23, 2025
7ccf9d8
Merge branch 'main' into nate/blocks-front-and-center
sestinj Mar 23, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix blur
  • Loading branch information
sestinj committed Mar 23, 2025
commit 62f3f7fce0a6431ede9d2a381d1bc2d733bc6403
16 changes: 13 additions & 3 deletions gui/src/components/mainInput/tiptap/TipTapEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,14 +153,24 @@ function TipTapEditor(props: TipTapEditorProps) {
setActiveKey,
});

const handleBlur = (e: React.FocusEvent) => {
// Check if the new focus target is within our InputBoxDiv
const currentTarget = e.currentTarget;
const relatedTarget = e.relatedTarget as Node | null;

if (relatedTarget && currentTarget.contains(relatedTarget)) {
return;
}

setShouldHideToolbar(true);
};

return (
<InputBoxDiv
onFocus={() => {
setShouldHideToolbar(false);
}}
onBlur={() => {
setShouldHideToolbar(true);
}}
onBlur={handleBlur}
onKeyDown={handleKeyDown}
onKeyUp={handleKeyUp}
className={shouldHideToolbar ? "cursor-default" : "cursor-text"}
Expand Down
Loading