- 
                Notifications
    
You must be signed in to change notification settings  - Fork 12
 
fix: stop flashing Tildy assistant name when loading custom assistants #337
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
Conversation
| function RunFile() { | ||
| const [script, _setScript] = useState<string>( | ||
| useSearchParams().get('file') ?? tildy | ||
| useSearchParams().get('file') ?? '' | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changing this is really all I wanted to do. However, this caused a bunch of errors to start popping up on launch, staring with the getMe stuff.
Most of the other changes are resolving the errors that popped up as a result.
        
          
                contexts/chat.tsx
              
                Outdated
          
        
      | setThread(newThread.meta.id); | ||
| setSelectedThreadId(newThread.meta.id); | ||
| setWorkspaceDir(newThread.meta.workspace); | ||
| setWorkspaceDir(newThread.meta.workspace).then(); | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm what is this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will remove. This was just a to get rid of a squiggly line that was bothering me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
        
          
                contexts/chat.tsx
              
                Outdated
          
        
      | const newThread = await createThread( | ||
| script, | ||
| scriptDisplayName ?? defaultScriptName, | ||
| script !== '' ? script : tildy, | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can be script ? script : tildy? Are you specifially checking undefined option?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll update this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know it's already merged, but a slightly better solution could be script || tildy. in JavaScript '' is a falsy value
No need for change though
Signed-off-by: Donnie Adams <donnie@acorn.io>
No description provided.