Fix no signer error on git push to nostr remote

both from the terminal or chat interface
This commit is contained in:
DanConwayDev committed 2025-10-30 07:24:05 +00:00
1 parent 0b2003d9f8
commit 930ae56f40
5 files changed
+22 -5

No files matched your search

+1 -1
View File
@@ -154,7 +154,7 @@ export const ChatPane = forwardRef<ChatPaneRef, ChatPaneProps>(({
nostr_read_protocol: new NostrReadProtocolTool(),
nostr_read_nips_index: new NostrReadNipsIndexTool(),
nostr_generate_kind: new NostrGenerateKindTool(),
shell: new ShellTool(fs, cwd, git, projectsPath),
shell: new ShellTool(fs, cwd, git, projectsPath, user?.signer),
read_console_messages: new ReadConsoleMessagesTool(),
};
+4 -2
View File
@@ -7,6 +7,7 @@ import { ShellTool } from '@/lib/tools/ShellTool';
import { useFS } from '@/hooks/useFS';
import { useFSPaths } from '@/hooks/useFSPaths';
import { useGit } from '@/hooks/useGit';
import { useCurrentUser } from '@/hooks/useCurrentUser';
import { ansiToHtml, containsAnsiCodes } from '@/lib/ansiToHtml';
interface TerminalProps {
@@ -35,10 +36,11 @@ export function Terminal({ projectId, className }: TerminalProps) {
const { fs } = useFS();
const { projectsPath } = useFSPaths();
const { git } = useGit();
const { user } = useCurrentUser();
// Initialize ShellTool
useEffect(() => {
shellToolRef.current = new ShellTool(fs, `${projectsPath}/${projectId}`, git, projectsPath);
shellToolRef.current = new ShellTool(fs, `${projectsPath}/${projectId}`, git, projectsPath, user?.signer);
// Add welcome message
setLines([{
@@ -47,7 +49,7 @@ export function Terminal({ projectId, className }: TerminalProps) {
content: `Welcome to Shakespeare Terminal\nType 'help' to see available commands.`,
timestamp: new Date()
}]);
}, [projectId, fs, git, projectsPath]);
}, [projectId, fs, git, projectsPath, user?.signer]);
// Auto-scroll to bottom when new lines are added or execution state changes
useEffect(() => {