Since introducing the Task feature in replit , if you attempt to perform a GIT sync while in a task/agent view vs Main you get an authentication error.
This is clearly not a helpful message.
The message should be modified so the user is notified this is not allowed from the task/agent view context window and should tell the user to apply the changes to main and switch to the main session or prompt to automatically switch back to main and do the sync.