diff --git a/oauth/src/components/RecordTabs.jsx b/oauth/src/components/RecordTabs.jsx
index 72e9f9b..691af73 100644
--- a/oauth/src/components/RecordTabs.jsx
+++ b/oauth/src/components/RecordTabs.jsx
@@ -6,7 +6,11 @@ import LoadingSkeleton from './LoadingSkeleton.jsx'
import { logger } from '../utils/logger.js'
export default function RecordTabs({ langRecords, commentRecords, userComments, chatRecords, chatHasMore, onLoadMoreChat, userChatRecords, userChatLoading, baseRecords, apiConfig, pageContext, user = null, agent = null, onRecordDeleted = null }) {
- const [activeTab, setActiveTab] = useState('profiles')
+ // Simple detection: if the URL contains a date+hash pattern, it's likely an AI post
+ const isAiPost = !pageContext.isTopPage && pageContext.rkey &&
+ /^\d{4}-\d{2}-\d{2}-[a-f0-9]{8}$/.test(pageContext.rkey)
+
+ const [activeTab, setActiveTab] = useState(isAiPost ? 'collection' : 'profiles')
// Monitor activeTab changes
useEffect(() => {
@@ -145,6 +149,7 @@ export default function RecordTabs({ langRecords, commentRecords, userComments,
return (
+ {!isAiPost && (
+ )}
- {activeTab === 'lang' && (
+ {activeTab === 'lang' && !isAiPost && (
!langRecords ? (
) : (
@@ -203,7 +209,7 @@ export default function RecordTabs({ langRecords, commentRecords, userComments,
/>
)
)}
- {activeTab === 'comment' && (
+ {activeTab === 'comment' && !isAiPost && (
!commentRecords ? (
) : (
@@ -233,7 +239,7 @@ export default function RecordTabs({ langRecords, commentRecords, userComments,
/>
)
)}
- {activeTab === 'users' && (
+ {activeTab === 'users' && !isAiPost && (
!userComments ? (
) : (
@@ -248,7 +254,7 @@ export default function RecordTabs({ langRecords, commentRecords, userComments,
/>
)
)}
- {activeTab === 'profiles' && (
+ {activeTab === 'profiles' && !isAiPost && (
!baseRecords ? (
) : (
diff --git a/src/commands/interactive.rs b/src/commands/interactive.rs
index f2f320d..5167ba3 100644
--- a/src/commands/interactive.rs
+++ b/src/commands/interactive.rs
@@ -523,7 +523,8 @@ async fn post_to_atproto(
"slug": "",
"tags": [],
"title": title,
- "language": "ja"
+ "language": "ja",
+ "type": "ai"
},
"text": pair.question,
"type": "question",
@@ -548,7 +549,8 @@ async fn post_to_atproto(
"slug": "",
"tags": [],
"title": title,
- "language": "ja"
+ "language": "ja",
+ "type": "ai"
},
"text": pair.answer,
"type": "answer",