Merge pull request 'Preserve deterministic conversational drafts' (#308) from codex/chat-semantic-inventory into main
CI / test (push) Successful in 1m8s
CI / test (push) Successful in 1m8s
This commit was merged in pull request #308.
This commit is contained in:
@@ -571,6 +571,8 @@ func main() {
|
|||||||
semantic.Interpretation.Applicability = interaction.SemanticApplicable
|
semantic.Interpretation.Applicability = interaction.SemanticApplicable
|
||||||
semantic.Interpretation.Clarification = interaction.ClarificationNotRequired
|
semantic.Interpretation.Clarification = interaction.ClarificationNotRequired
|
||||||
}
|
}
|
||||||
|
deterministicSpeechAct := semantic.Interpretation.SpeechAct
|
||||||
|
deterministicReply := semantic.Reply
|
||||||
routePlan := buildChatRoutePlan(semantic)
|
routePlan := buildChatRoutePlan(semantic)
|
||||||
cognitiveAttempted := false
|
cognitiveAttempted := false
|
||||||
cognitiveAvailable := true
|
cognitiveAvailable := true
|
||||||
@@ -629,7 +631,7 @@ func main() {
|
|||||||
activeFocusName = previousFocus.ProjectDisplayName
|
activeFocusName = previousFocus.ProjectDisplayName
|
||||||
activeFocusProvenance = previousFocus.Provenance
|
activeFocusProvenance = previousFocus.Provenance
|
||||||
}
|
}
|
||||||
planningReply := semantic.Reply
|
planningReply := deterministicReply
|
||||||
workPlanned := false
|
workPlanned := false
|
||||||
needsCognition := semantic.NeedsCognition
|
needsCognition := semantic.NeedsCognition
|
||||||
projectID := ""
|
projectID := ""
|
||||||
@@ -802,7 +804,7 @@ func main() {
|
|||||||
ConfidenceMillis: semantic.Interpretation.ConfidenceMillis,
|
ConfidenceMillis: semantic.Interpretation.ConfidenceMillis,
|
||||||
})
|
})
|
||||||
cancelReview()
|
cancelReview()
|
||||||
stableSemanticReply := identityReply != "" || semantic.Interpretation.SpeechAct == interaction.SpeechActConversational || semantic.Interpretation.SpeechAct == interaction.SpeechActConfirmation || semantic.Interpretation.SpeechAct == interaction.SpeechActRejection
|
stableSemanticReply := identityReply != "" || deterministicSpeechAct == interaction.SpeechActConversational || deterministicSpeechAct == interaction.SpeechActConfirmation || deterministicSpeechAct == interaction.SpeechActRejection
|
||||||
if reviewErr != nil {
|
if reviewErr != nil {
|
||||||
log.Printf("cognitive response review unavailable: %v", reviewErr)
|
log.Printf("cognitive response review unavailable: %v", reviewErr)
|
||||||
} else if !stableSemanticReply {
|
} else if !stableSemanticReply {
|
||||||
|
|||||||
Reference in New Issue
Block a user