fix: address code review findings from Phase 2 final review
- ChatPanel: add 'chat-message ${role}' CSS classes to message wrappers
so .chat-message.user and .chat-message.assistant rules apply correctly
- LoginPage: rename className 'login-error' -> 'error' to match the
.login-card .error selector in globals.css
- MCPAppRenderer: verify event.source matches iframe contentWindow before
processing postMessage to close cross-window injection vector
- App: remove redundant await refresh() after createNew() since
createNew() already calls refresh() internally
- useArtifacts: wrap listArtifacts call in try/catch with console.error,
matching the error-handling pattern already used in useSessions
This commit is contained in:
@@ -31,7 +31,6 @@ function App() {
|
||||
onSelect={(id) => switchTo(id)}
|
||||
onCreate={async () => {
|
||||
await createNew()
|
||||
await refresh()
|
||||
}}
|
||||
onLogout={logout}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user