-
Notifications
You must be signed in to change notification settings - Fork 1
make simple ai chats the default, fix edit behavior for turns, fix system events going from agent ghosy #91
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
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
354c5c1
fixes
batuhan c12ceab
sync
batuhan 464268f
sync
batuhan c3cf6d7
Update metadata.go
batuhan 2a77207
heartbeat should only spawn if there is an agent that needs it
batuhan 5aee90e
Use agent map and clarify agent commands
batuhan 8207430
Revert Agents setting on save failure
batuhan dc438c3
Disable agents by default; refactor scheduling
batuhan 067fdc8
Send system notices using bridge bot
batuhan 6620f6e
Split heartbeat agent filters and add tests
batuhan 59c2e24
Place canonical final payload in m.new_content
batuhan 8760f66
Inline ConvertedEdit construction and remove helper
batuhan eee2264
Remove deprecated helpers and connector wrapper
batuhan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| package ai | ||
|
|
||
| import "testing" | ||
|
|
||
| func TestShouldEnsureDefaultChat(t *testing.T) { | ||
| enabled := true | ||
| disabled := false | ||
|
|
||
| tests := []struct { | ||
| name string | ||
| meta *UserLoginMetadata | ||
| want bool | ||
| }{ | ||
| { | ||
| name: "nil metadata", | ||
| meta: nil, | ||
| want: false, | ||
| }, | ||
| { | ||
| name: "new login with nil agents", | ||
| meta: &UserLoginMetadata{}, | ||
| want: true, | ||
| }, | ||
| { | ||
| name: "agents enabled", | ||
| meta: &UserLoginMetadata{Agents: &enabled}, | ||
| want: true, | ||
| }, | ||
| { | ||
| name: "agents disabled", | ||
| meta: &UserLoginMetadata{Agents: &disabled}, | ||
| want: false, | ||
| }, | ||
| } | ||
|
|
||
| for _, tc := range tests { | ||
| t.Run(tc.name, func(t *testing.T) { | ||
| if got := shouldEnsureDefaultChat(tc.meta); got != tc.want { | ||
| t.Fatalf("shouldEnsureDefaultChat() = %v, want %v", got, tc.want) | ||
| } | ||
| }) | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.