Skip to content
Open
Changes from 1 commit
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
f002923
docs: share test
jayair Aug 11, 2025
7438a36
```
nitishxyz Aug 3, 2025
25f9bcb
Feat: Add react-native-sse package
nitishxyz Aug 3, 2025
d92f8fd
Feat: Add API services for local and remote data
nitishxyz Aug 3, 2025
92a1ec0
Feat: Add basic app navigation with tabs and chat
nitishxyz Aug 3, 2025
146015a
Feat: Implement home page and server connection setup
nitishxyz Aug 3, 2025
7ffb388
Feat: Display and send messages in chat page
nitishxyz Aug 3, 2025
84054c5
Refactor: Integrate streaming service for real-time updates
nitishxyz Aug 3, 2025
004bcba
Refactor: Improve chat streaming and local storage
nitishxyz Aug 3, 2025
6b1c506
Chore: Upgrade bun version in EAS config
nitishxyz Aug 3, 2025
2f63d3b
Refactor: Improve home screen UI/UX with new components
nitishxyz Aug 3, 2025
f14c7a8
Style: Refine chat input styling
nitishxyz Aug 3, 2025
19a0bf1
Feat: Implement floating header and input with blur
nitishxyz Aug 3, 2025
9c9763a
Fix: Prevent keyboard from covering input on Android
nitishxyz Aug 3, 2025
c7cf202
Feat: Implement chat screen with message streaming
nitishxyz Aug 3, 2025
f93c57e
Feat: Improve chat scrolling and keyboard handling
nitishxyz Aug 3, 2025
9478017
Refactor: Use generic BottomSheet component
nitishxyz Aug 3, 2025
71bc8de
Feat: Enhance chat messages with tool outputs
nitishxyz Aug 3, 2025
090c8de
Refactor: Improve message display and session sync
nitishxyz Aug 3, 2025
3724499
Style: Improve chat message rendering styles
nitishxyz Aug 3, 2025
259b0c5
Feat: Add session management and switching
nitishxyz Aug 3, 2025
bc4892c
Refactor: Improve message rendering and structure
nitishxyz Aug 3, 2025
fa8334d
Refactor: Decouple search input from QuickActions
nitishxyz Aug 3, 2025
9ea68f8
Refactor: Remove session dialog and view all button
nitishxyz Aug 3, 2025
2184ccb
Fix: Truncate long filenames in chat renderers
nitishxyz Aug 3, 2025
4c49fb2
Feat: Implement back navigation in chat header
nitishxyz Aug 3, 2025
31d6f9a
Feat: Improve server connection reliability
nitishxyz Aug 3, 2025
4cdf058
Refactor: Simplify chat page with new architecture
nitishxyz Aug 4, 2025
177a249
Refactor: Improve chat page performance and stability
nitishxyz Aug 4, 2025
f853a2f
Refactor: Simplify chat screen and improve input UX
nitishxyz Aug 4, 2025
33c8219
Docs: Initial mobile app documentation and performance improvements
nitishxyz Aug 4, 2025
3c25657
Feat: Track session cost and token usage
nitishxyz Aug 4, 2025
bf3a611
Refactor: Improve chat session synchronization and updates
nitishxyz Aug 4, 2025
aab85e1
Feat: Implement build/plan mode toggle
nitishxyz Aug 4, 2025
e3e8ce2
Feat: Add BottomSheetInput component and enhance connection sheet
nitishxyz Aug 4, 2025
409354b
Perf: Optimize mobile chat rendering and database queries during stre…
nitishxyz Aug 4, 2025
e04e2b2
Feat: Enhance mobile chat UX with smart keyboard dismissal and mode s…
nitishxyz Aug 4, 2025
f191d6e
Refactor: Replace relative db imports with @/db aliases in mobile ser…
nitishxyz Aug 4, 2025
c9f8a13
Refactor: Simplify chat header by removing menu button and updating n…
nitishxyz Aug 4, 2025
db48141
Fix: Correct session ordering after REST API refresh
nitishxyz Aug 5, 2025
2a89fd6
feat: add skeleton loaders for projects and sessions lists
nitishxyz Aug 5, 2025
8c79c19
feat: restore mode switching on pull-to-refresh in chat
nitishxyz Aug 5, 2025
b0a5140
Refactor: Improve chat message sending and UI updates
nitishxyz Aug 5, 2025
6db1378
feat: add settings page and improve project management
nitishxyz Aug 5, 2025
8cc8b66
Refactor: Use render props for Button.Icon component
nitishxyz Aug 5, 2025
1fbb34a
Refactor: Centralize project connection logic
nitishxyz Aug 5, 2025
d699eec
Feat: Sync remote sessions on connection success
nitishxyz Aug 5, 2025
20e3bce
Refactor: Refactor home screen for performance
nitishxyz Aug 5, 2025
7e8dd64
Feat: Improve project connection flow and UI
nitishxyz Aug 5, 2025
e9119d0
Refactor: Stream message parts directly from database
nitishxyz Aug 5, 2025
c085175
Refactor: Format session time to be more readable
nitishxyz Aug 5, 2025
3771149
Refactor: Simplify StreamingMessageList component
nitishxyz Aug 5, 2025
3b2c6dc
Feat: Implement welcome screen for new users
nitishxyz Aug 5, 2025
fe33195
fix: update query invalidation key in chat state
nitishxyz Aug 5, 2025
85dfe66
Feat: Improve message loading and session handling
nitishxyz Aug 5, 2025
2137a2c
Feat: Align mobile app message handling with TUI
nitishxyz Aug 5, 2025
9ed5c7d
Refactor: Store message timestamps as milliseconds
nitishxyz Aug 5, 2025
45577e6
Feat: Enhance chat streaming message rendering
nitishxyz Aug 5, 2025
26bbe80
Feat: Add expandable generic tool output
nitishxyz Aug 5, 2025
59bf52d
fix: remove auto-scroll on response complete
nitishxyz Aug 5, 2025
8b6708c
feat: Add expandable command output in BashRenderer
nitishxyz Aug 5, 2025
374f5f8
Feat: Enhance chat UI with commands and model select
nitishxyz Aug 6, 2025
c9afb8b
Feat: Simplify chat page and streamline components
nitishxyz Aug 7, 2025
336001f
Refactor: Migrate to BottomSheetModal and refine UI
nitishxyz Aug 7, 2025
2e38d8d
Refactor: Refactor chat message rendering and simplify list
nitishxyz Aug 8, 2025
d6be57f
Feat: Add new renderers for tool outputs
nitishxyz Aug 8, 2025
f21d333
Refactor: Rename 'current_mode' to 'current_agent'
nitishxyz Aug 8, 2025
ccb1301
Feat: Add frequently used models to models sheet
nitishxyz Aug 8, 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: update query invalidation key in chat state
🤖 Generated with [opencode](https://opencode.ai)

Co-Authored-By: opencode <[email protected]>
  • Loading branch information
nitishxyz and opencode committed Aug 11, 2025
commit fe331955f74da27a7c72a1955b7d8f720ddbcabd
8 changes: 4 additions & 4 deletions packages/mobile/src/hooks/use-chat-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export const useChatState = (sessionId: string): ChatState => {
clearTimeout(updateThrottleRef.current)
}
updateThrottleRef.current = window.setTimeout(() => {
queryClient.invalidateQueries({ queryKey: queryKeys.local.messages.sessionParts(sessionId) })
queryClient.invalidateQueries({ queryKey: queryKeys.local.messages.listWithParts(sessionId) })
}, 100) // Backup update every 100ms
} catch (error) {}
},
Expand Down Expand Up @@ -226,7 +226,7 @@ export const useChatState = (sessionId: string): ChatState => {
streamingTimeoutRef.current = null
}
// Final update when streaming completes
queryClient.invalidateQueries({ queryKey: queryKeys.local.messages.sessionParts(sessionId) })
queryClient.invalidateQueries({ queryKey: queryKeys.local.messages.listWithParts(sessionId) })
break

case "message.updated":
Expand All @@ -240,7 +240,7 @@ export const useChatState = (sessionId: string): ChatState => {
}, 30000) // 30 second timeout

// Immediately invalidate query for real-time updates
queryClient.invalidateQueries({ queryKey: queryKeys.local.messages.sessionParts(sessionId) })
queryClient.invalidateQueries({ queryKey: queryKeys.local.messages.listWithParts(sessionId) })

// Handle message update directly from SSE data
handleMessageUpdated(event.properties)
Expand All @@ -257,7 +257,7 @@ export const useChatState = (sessionId: string): ChatState => {
}, 30000) // 30 second timeout

// Immediately invalidate query for real-time updates
queryClient.invalidateQueries({ queryKey: queryKeys.local.messages.sessionParts(sessionId) })
queryClient.invalidateQueries({ queryKey: queryKeys.local.messages.listWithParts(sessionId) })

// Handle part update directly from SSE data
handlePartUpdated(event.properties)
Expand Down